不知道为什么不能用pow函数算,奇怪 摘要:解题思路:注意事项:要自己定义循环来算,用pow函数就会报错参考代码:#include<stdio.h>#include<math.h>intmain(void){…… 题解列表 2025年01月23日 0 点赞 0 评论 288 浏览 评分:0.0
很简单的做法 摘要:解题思路:定义数组,初始化为1,有人操作一次就把对应的数取一次反,最后检验哪些数为-1,便输出对应的序号数加1注意事项:这个输出格式太蛋疼了,循环输出就会多一个逗号,用"\b "空…… 题解列表 2025年01月23日 0 点赞 0 评论 551 浏览 评分:0.0
题解 1851: 求所给范围内水仙花数并排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){ int …… 题解列表 2025年01月23日 0 点赞 0 评论 178 浏览 评分:0.0
很新手的解题,想到什么就写什么,你绝对能看懂 摘要:解题思路:把输入的数的各个位数依次取出来存在数组里,再取出来组成反转的数注意事项:参考代码:#include<stdio.h>#include<math.h>int…… 题解列表 2025年01月23日 0 点赞 0 评论 221 浏览 评分:0.0
题解 1986: 鸡兔同笼 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,a,b; scanf("%d&…… 题解列表 2025年01月23日 0 点赞 0 评论 325 浏览 评分:0.0
题解 1981: 输出M到N的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,n; scanf("%d%d&…… 题解列表 2025年01月23日 0 点赞 0 评论 393 浏览 评分:0.0
1004: [递归]母牛的故事\\\\\\ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int mn(int a){ if(a==1||a==2||a==3) { …… 题解列表 2025年01月23日 6 点赞 0 评论 2071 浏览 评分:0.0
很新手的解题,想到什么就写什么,你绝对能看懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intexchange(intnum,int…… 题解列表 2025年01月23日 0 点赞 0 评论 252 浏览 评分:0.0
1998: 提成计算(c语言) 摘要:解题思路:if else解题就行注意事项:最后条件一定要加 else if(x>400000)不加不过参考代码:#include <stdi…… 题解列表 2025年01月23日 1 点赞 0 评论 234 浏览 评分:10.0
递归O(nlogn) 摘要:解题思路:其实我们研究的对象是兔子的末状态,所以不必把兔子移动过程展现出来。选用指针来表示兔子的移动方向,首先先确定两只“双向奔赴"兔子的位置,单向奔赴兔子的末位置与指向的兔子一样,用深搜扫…… 题解列表 2025年01月23日 7 点赞 0 评论 1236 浏览 评分:10.0