原来不难,就只有第一个单词特殊啊 摘要:#include<bits/stdc++.h> using namespace std; int main() { string s; while(getline(cin,s)) {…… 题解列表 2024年08月08日 0 点赞 0 评论 228 浏览 评分:0.0
辗转相除最终归纳! 摘要:1.c++写#include<bits/stdc++.h> using namespace std; int _gcd(int a,int b) { while(b!=0)//可以简写…… 题解列表 2024年08月08日 0 点赞 0 评论 314 浏览 评分:0.0
Python的辗转相除 摘要:def gcd(a,b): while b: a,b=b,a%b return a a=int(input()) b=int(input()) print(…… 题解列表 2024年08月08日 0 点赞 0 评论 273 浏览 评分:0.0
虽然这是java的题目,但是,我用了c语言,船新版本 摘要: ```c #include #include #include #define MAX 1000001 typedef struct { char ch;//存储字母 …… 题解列表 2024年08月08日 0 点赞 0 评论 545 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { int letters = 0, digit…… 题解列表 2024年08月08日 1 点赞 0 评论 382 浏览 评分:0.0
奖学金:结构体多关键字排序 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; struct st{ int sn,…… 题解列表 2024年08月08日 2 点赞 0 评论 415 浏览 评分:0.0
------------走一走-----------看一看---------------整数奇偶排序--------- 摘要:解题思路:注意事项:/*这里的 EOF 是一个在 <stdio.h> 头文件中定义的宏,它表示文件结束符(End Of File)。 在标准输入中,通常通过按下 Ctrl+D(在 Unix/Linu…… 题解列表 2024年08月08日 0 点赞 0 评论 371 浏览 评分:9.9
Jam的计数法C++ 摘要:解题思路: 如果字符串的第一个字母已经是最大可能的字母退出循环;否则从最后一个字母开始遍历, 如果当前字母已经是最大可能字母, 退出循环; 否则, 当前字母加 1, 该字母之后的每一个字母,依据当前…… 题解列表 2024年08月08日 0 点赞 0 评论 465 浏览 评分:9.9
多种方法解决,不使用string头文件的解法也有(c语言代码) 摘要:**1)不使用数组,这种做法其实不符合题意,因为你没有连接,你的原数组没有变化** ```c #include #include int main(){ char s[50]; …… 题解列表 2024年08月08日 0 点赞 0 评论 453 浏览 评分:9.9
多种方法,总有一种你没有见过(c语言代码) 摘要:##1)常规解法 输入字符串,获取长度,再逐个判断 ```c #include #include int main(){ char s[80]; gets(s); …… 题解列表 2024年08月08日 0 点赞 0 评论 374 浏览 评分:9.9