编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum,N; scanf("%d",&N); for(i=1;i<=N;i++) { …… 题解列表 2022年11月23日 0 点赞 0 评论 216 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[10],temp; for(i=0;i<10;i++) scanf("%d",&a[i]);…… 题解列表 2022年11月23日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyue(int n,int m){ int i; for(i=n;i>1;i--) { if(m%i==0 && n%i…… 题解列表 2022年11月23日 0 点赞 0 评论 229 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码: enum GAME{stone,paper,scissor}game; int main(){ int player1, player2,result; scanf("…… 题解列表 2022年11月23日 0 点赞 0 评论 246 浏览 评分:0.0
无循环纯递归 摘要:```c #include void An(int, int); void Sn(int); int n;//定义全局变量 int main(void) { scanf("%…… 题解列表 2022年11月23日 0 点赞 0 评论 339 浏览 评分:0.0
Pascal三角--C语言 摘要:解题思路:注意事项:参考代码:int main(){ int PASCAL[100][100] = { 0 }; int i, j,Length_space,row; scanf("%d", &row…… 题解列表 2022年11月23日 0 点赞 0 评论 295 浏览 评分:0.0
不用分类讨论c语言解决大神老白 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int n,i,a[100],s; while((scanf("%d",&n…… 题解列表 2022年11月23日 0 点赞 0 评论 317 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 453 浏览 评分:0.0
20221123字符逆序 摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){ int i,j…… 题解列表 2022年11月23日 0 点赞 0 评论 248 浏览 评分:0.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=…… 题解列表 2022年11月24日 0 点赞 0 评论 320 浏览 评分:0.0