题解列表

筛选

不用数组,用for直接循环

摘要:解题思路:因为第一个数字开始往后数,在for循环语句中用两个变量啊a,b,a不变,从前往后小于b即可注意事项:一定要初始i,不然不得行参考代码:#include <stdio.h>#include <……

链队列/循环队列

摘要:解题思路:注意事项:参考代码://linkquene #include <iostream>#include <cstdlib>using namespace std;typedef struct q……

1093: 字符逆序

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>#include<algorithm>//导入algorith……

日期非结构解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, y, r; int h; int i; int sum=0; scanf("%d%d%d", &n……

暴力解法解决绝对值排序

摘要:解题思路:定义两个一样大小的数组,一个数组用来存放输入的数据,另一个数组则用来记录是否是负数的判断,然后对于第一个数组遍历,如果小于0,则转化为它的相反数,否则不做处理,然后使用冒泡排序或者选择排序(……

1477: 字符串输入输出函数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<string>using namespace std;int shu(string……