编写题解 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 评论 233 浏览 评分: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 评论 227 浏览 评分: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 评论 240 浏览 评分:0.0
斐波那契数列(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1001];int main(){ int n; cin>>…… 题解列表 2022年11月23日 0 点赞 0 评论 294 浏览 评分:9.9
剪刀石头布 摘要:解题思路:注意事项:参考代码: enum GAME{stone,paper,scissor}game; int main(){ int player1, player2,result; scanf("…… 题解列表 2022年11月23日 0 点赞 0 评论 257 浏览 评分:0.0
无循环纯递归 摘要:```c #include void An(int, int); void Sn(int); int n;//定义全局变量 int main(void) { scanf("%…… 题解列表 2022年11月23日 0 点赞 0 评论 355 浏览 评分:0.0
二分+并查集 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>/*其实这一题自己最大的收获是数学等价,来回跳2x次等价于单向跳2x次,证明:假设可以来回跳2x次,那么按回来的跳的石头正着…… 题解列表 2022年11月23日 0 点赞 0 评论 1236 浏览 评分:9.9
Pascal三角--C语言 摘要:解题思路:注意事项:参考代码:int main(){ int PASCAL[100][100] = { 0 }; int i, j,Length_space,row; scanf("%d", &row…… 题解列表 2022年11月23日 0 点赞 0 评论 306 浏览 评分: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 评论 331 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 473 浏览 评分:0.0