利用·C++编写有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>int main(void){ int range; int fenzi=2,fenmu=1; double result=0; s…… 题解列表 2023年12月02日 0 点赞 0 评论 192 浏览 评分:0.0
利用C++完成完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define max 1000int range,array[max];int main(v…… 题解列表 2023年12月02日 0 点赞 0 评论 149 浏览 评分:0.0
2548: [CSP-J2020] 优秀的拆分 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];char a[…… 题解列表 2023年12月02日 0 点赞 0 评论 425 浏览 评分:0.0
计算邮资--ceil函数与printf函数之间的问题 摘要:解题思路:注意事项:ceil 函数不能直接嵌套在printf函数内使用,会出现错误参考代码:错误示例:#include<stdio.h>#include<math.h>int main(){ i…… 题解列表 2023年12月02日 0 点赞 0 评论 250 浏览 评分:0.0
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<stdio.h>void…… 题解列表 2023年12月02日 0 点赞 0 评论 524 浏览 评分:0.0
题解 2548: [CSP-J2020] 优秀的拆分 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int z[1000000]; int er(long long a)…… 题解列表 2023年12月02日 0 点赞 0 评论 271 浏览 评分:9.9
题解 2901: 查找特定的值 摘要: #include using namespace std; int c,b,d,sum=1; int a[200000]; int main(){ …… 题解列表 2023年12月02日 0 点赞 0 评论 224 浏览 评分:0.0
解法11111111111111 摘要:解题思路:注意事项:格式不要弄错参考代码:#include <stdio.h> int main(){ int n, k = 2, i = 0, q = 0; int a[10]; …… 题解列表 2023年12月02日 0 点赞 0 评论 259 浏览 评分:0.0
2946: 数制转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];int a[1…… 题解列表 2023年12月02日 0 点赞 0 评论 415 浏览 评分:8.0
按比例计算成绩 摘要:解题思路: 1.注意计算公式 2.考虑输出结果类型 提示中输出结果不含小数 也就是说 输出结果为整型(int) 3.考虑double型向int型的强制转换 需要用到 i…… 题解列表 2023年12月02日 0 点赞 0 评论 236 浏览 评分:0.0