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