1092: A+B for Input-Output Practice 摘要:```cpp #include using namespace std; int main() { int n,en,x,sum; cin>>n; for(int…… 题解列表 2022年08月31日 0 点赞 0 评论 283 浏览 评分:9.9
1093: 字符逆序 摘要:要注意,a数组是一个字符串数组,输入后最后一项是‘\0’,因此第8行的strlen(a)还要-1 ```cpp #include #include using namespace std; …… 题解列表 2022年08月31日 0 点赞 0 评论 298 浏览 评分:9.9
1094: 字符串的输入输出处理 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; getchar(); …… 题解列表 2022年08月31日 0 点赞 0 评论 530 浏览 评分:9.9
1095: The 3n + 1 problem 摘要:```cpp #include using namespace std; int main() { int m,n,max; while(cin>>m>>n) {…… 题解列表 2022年08月31日 0 点赞 0 评论 473 浏览 评分:9.9
1096: Minesweeper 摘要:```cpp #include #include using namespace std; const int maxn=101; int n,m,x[maxn],y[maxn],vist[…… 题解列表 2022年08月31日 0 点赞 0 评论 347 浏览 评分:9.9
1097: 蛇行矩阵 摘要:```cpp #include using namespace std; int main() { int x,cnt=1,mat[100][100]; for(int j…… 题解列表 2022年08月31日 0 点赞 0 评论 285 浏览 评分:9.9
1098: 陶陶摘苹果 摘要:```cpp #include using namespace std; int main() { int a[10],n,sum=0; for(int i=0;i>a[i…… 题解列表 2022年08月31日 0 点赞 0 评论 362 浏览 评分:9.9
贪心+for+if求解 摘要: **本题主要用来贪心的思想。试想一下,我们怎么能使所发工资人民币的张数最小,是不是我们要尽可能的让程序猿领到最大面额的那几张,例如有一个程序猿的工资是3元,那么人民币张数最小的配法就是 2+1=3…… 题解列表 2022年09月01日 0 点赞 0 评论 432 浏览 评分:9.9
选择排序(更简单直观的排序算法,更稳定的时间复杂度) 摘要:算法思路:选择排序的原理是:首先在未排序的序列中找到一个最小(大)的元素,存放到序列的开头;然后从剩下的元素中继续找到最小(大)的元素,将其接在已排序列的末尾;反复迭代上述过程,直到所有元素排序完毕。…… 题解列表 2022年09月01日 0 点赞 1 评论 436 浏览 评分:9.9