题解列表

筛选

字符串的输入输出处理 (C语言代码)

摘要:解题思路:前N行原样输出即可,后面的字符可用scanf("%s",a)来自动切割字符串(因为scanf遇到空格键自动结束输入),然后输出注意事项:注意格式!每输出一行要再空一行!参考代码:#inclu……

P1005 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[1001];int main(){ int t,m; int i,j,k,l; int sj[101],jz[101]; s……

P1022 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <cstdio>   #include <vector>   #include <algorithm>   #include <cstring> ……

P1017 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>   using namespace std;   int pre[1001];   int sum;   int find(……