python-输出正反三角形 摘要:解题思路:注意事项:参考代码:def f(n,m): for i in range(1,n+1): print('{:>{}}{:>{}}'.for…… 题解列表 2022年01月23日 0 点赞 0 评论 437 浏览 评分:0.0
2072: [STL训练]寻梦 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { int n,i; …… 题解列表 2022年01月23日 0 点赞 0 评论 304 浏览 评分:0.0
解决通过读取字符时,既判度换行判断结尾 摘要:#include#include#includeint main(){ int a; char c = 0;//按字符读. int state; int flag = 0;//是否为真…… 题解列表 2022年01月23日 0 点赞 0 评论 318 浏览 评分:0.0
无穷大也可以算,不需要数组 摘要:int main(){ char c; int state = 0; int sum = 0; while((state = scanf("%c", &c)) != EOF){ …… 题解列表 2022年01月23日 0 点赞 0 评论 382 浏览 评分:0.0
python-阮小二买彩票 摘要:解题思路:一楼已经有了很简单的题解,这里发一些递归的思路。递归思路。可以看成一棵树进行递归。以3121举例来说。递归遍历出所有结果。当然结果中有很多不符合条件的数,比如说3111,因此我们需要对递归后…… 题解列表 2022年01月23日 0 点赞 0 评论 440 浏览 评分:0.0
整除的尾数整除的尾数 摘要:解题思路: 可以参考这位大佬的整除的尾数-题解(C语言代码)觉得他写的还不错,我的格式跟他的差不多。注意事项:行末没有空格参考代码:#include<stdio.h>#include<math.…… 题解列表 2022年01月23日 0 点赞 0 评论 321 浏览 评分:0.0
纯粹c语言,不要什么函数之类的 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ char arr[] = { '~&#…… 题解列表 2022年01月23日 0 点赞 0 评论 243 浏览 评分:0.0
去重,然后用插入排序 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ int n; int state = sc…… 题解列表 2022年01月23日 0 点赞 0 评论 383 浏览 评分:0.0
要初始化数组,且长度与下标差一个,gets丢弃换行符,加入结尾符,但统计不包含结尾符 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ char ch[255] = {0}; i…… 题解列表 2022年01月23日 0 点赞 0 评论 271 浏览 评分:0.0
最简单的for循环问题 摘要:解题思路:利用for循环注意事项:%作为运算符是用来取余的,/是除法运算。参考代码:#include<stdio.h>int main(){ int i=100,a,b,c; for(i=…… 题解列表 2022年01月23日 0 点赞 0 评论 288 浏览 评分:0.0