题解 2901: 查找特定的值 摘要: #include using namespace std; int c,b,d,sum=1; int a[200000]; int main(){ …… 题解列表 2023年12月02日 0 点赞 0 评论 264 浏览 评分:0.0
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<stdio.h>void…… 题解列表 2023年12月02日 0 点赞 0 评论 568 浏览 评分:0.0
计算邮资--ceil函数与printf函数之间的问题 摘要:解题思路:注意事项:ceil 函数不能直接嵌套在printf函数内使用,会出现错误参考代码:错误示例:#include<stdio.h>#include<math.h>int main(){ i…… 题解列表 2023年12月02日 0 点赞 0 评论 312 浏览 评分: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 评论 586 浏览 评分:0.0
利用C++完成完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define max 1000int range,array[max];int main(v…… 题解列表 2023年12月02日 0 点赞 0 评论 195 浏览 评分:0.0
利用·C++编写有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>int main(void){ int range; int fenzi=2,fenmu=1; double result=0; s…… 题解列表 2023年12月02日 0 点赞 0 评论 231 浏览 评分:0.0
利用C++完成自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(void){ int totalHeight…… 题解列表 2023年12月02日 0 点赞 0 评论 284 浏览 评分:0.0
求1~a之和+1~b平方和+1~c倒数之和 摘要:解题思路:求1~a之和:A0 = 0; A1 = A0 + 1 A2 = A1 + 2 A3 = …… 题解列表 2023年12月02日 0 点赞 0 评论 238 浏览 评分:0.0
我看了很多题解,就是感觉为啥他们都写得那么复杂 摘要:解题思路:注意事项:直接定义int可能不够用·参考代码:#include<stdio.h>int main(){ long n,sum=0; while (scanf("%ld", &n) !=EOF…… 题解列表 2023年12月02日 0 点赞 0 评论 383 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:def get_factorial(number): son = [1] for i in range(2, int(number ** 0.5) +…… 题解列表 2023年12月02日 0 点赞 0 评论 257 浏览 评分:0.0