题解 3012: 分苹果 摘要: #include using namespace std; int main(){ int a,b=1,c=0; cin>>a; f…… 题解列表 2023年11月12日 0 点赞 0 评论 163 浏览 评分:0.0
[编程入门]完数的判断 (C语言) 摘要:解题思路:在b<a的循环中,将所有被a%b=0的b累加,得到sum,如果sum=a,则证明a为完数。把a输出。然后用b=c,将b重新赋值为1,将b<a,然后a%b=0的步骤重新来一遍,把所有的b的值输…… 题解列表 2023年11月12日 0 点赞 0 评论 256 浏览 评分:0.0
[编程入门]有规律的数列求和 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,d,i,e; double sum,a,b,c; a=2; b=1; …… 题解列表 2023年11月12日 0 点赞 0 评论 167 浏览 评分:0.0
蛇形矩阵,找规律输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int temp=…… 题解列表 2023年11月12日 0 点赞 0 评论 226 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d %d", &x, &y); if(x>y) pri…… 题解列表 2023年11月12日 0 点赞 0 评论 199 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 1 点赞 0 评论 1079 浏览 评分:0.0
c代码记录之自定义函数字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void imp(char str[],char output[],int n) …… 题解列表 2023年11月13日 0 点赞 0 评论 165 浏览 评分:0.0
python编写a%b 摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a…… 题解列表 2023年11月13日 0 点赞 0 评论 239 浏览 评分:0.0
c代码记录之自定义函数数字分离-C 摘要:解题思路:注意事项:参考代码:#includevoid output(char num[]) { int i; for(i=0;i<4;i++) printf(…… 题解列表 2023年11月13日 0 点赞 0 评论 159 浏览 评分:0.0
链表报数问题(Python) 摘要:解题思路:注意事项:参考代码:def find_last_person(n): people = list(range(1, n + 1)) current = 0 # 当前报数人的…… 题解列表 2023年11月13日 0 点赞 0 评论 302 浏览 评分:0.0