判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); if(n>-1000000 …… 题解列表 2024年08月04日 0 点赞 0 评论 528 浏览 评分:9.9
编写题解 1808: [编程基础]输入输出练习之精度控制1 摘要:解题思路:常规解题思路注意事项:精度位数,中英文符号。参考代码:#include<stdio.h>main(){ float a; scanf("%f",&a); printf("%.3f",a); …… 题解列表 2024年08月05日 2 点赞 0 评论 472 浏览 评分:9.9
2790:分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { float N; scanf("%f",&N); if(0<=N && N<20) { …… 题解列表 2024年08月05日 0 点赞 0 评论 420 浏览 评分:9.9
2841: 大整数加法 摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string…… 题解列表 2024年08月05日 0 点赞 0 评论 503 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i=0; …… 题解列表 2024年08月06日 0 点赞 0 评论 416 浏览 评分:9.9
输出结果是“inf”的看过来 摘要: 结果不管输入什么都是inf 那是因为计算阶乘的时候,累乘的那个数如果没有初始…… 题解列表 2024年08月06日 0 点赞 0 评论 715 浏览 评分:9.9
1072: 汽水瓶 包你看懂,公式解(c语言代码) 摘要:```c #include int main() { int n,meihe=0,he=0,count=0;//这里的变量是拼音,meihe就是没喝,he就是喝,count是负责计数的 …… 题解列表 2024年08月06日 1 点赞 0 评论 276 浏览 评分:9.9
宏定义秒了 摘要:解题思路:注意事项:宏定义的变量尽量用(),防止误运算参考代码:#include <stdio.h>#define MAX(a,b) ((a)>(b)?(a):(b))int main() { …… 题解列表 2024年08月06日 1 点赞 0 评论 222 浏览 评分:9.9
最直观的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void big(double a, double b,double c);void equal(d…… 题解列表 2024年08月06日 0 点赞 0 评论 390 浏览 评分:9.9
【超级详细】新手小白都能看懂的解题思路 摘要:解题思路:这道题求阶乘和数不难,但是要对结果按字典序排列需要用到一点小技巧。阶乘和数就是把数字拆分成每一位后对应的阶乘等于它本身,只需要先把数字挨个拆分,然后对拆分后的数字挨个求阶乘,最后对每一个阶乘…… 题解列表 2024年08月07日 1 点赞 0 评论 516 浏览 评分:9.9