舍罕王的失算(简单C++) 摘要:解题思路:注意事项:数值很大,但是在usigned long long int范围里面,因此可以用其存储参考代码:#include<iostream> using namespace std; i…… 题解列表 2022年10月28日 0 点赞 0 评论 601 浏览 评分:9.9
角谷猜想(C++简单递归) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int x) { if(x%2==0) { …… 题解列表 2022年10月28日 0 点赞 0 评论 758 浏览 评分:6.3
算1~N之间所有奇数之和(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,s=0; cin>>n…… 题解列表 2022年10月28日 0 点赞 0 评论 485 浏览 评分:9.9
计算t=1+1/2+1/3+...+1/n(C++超级简单) 摘要:解题思路:注意事项:用float会出现精度问题,double更精确参考代码:#include<iostream> using namespace std; #include<iomanip> i…… 题解列表 2022年10月28日 0 点赞 0 评论 426 浏览 评分:9.9
-计算一个整数N的阶乘(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long int n,i,j=1; …… 题解列表 2022年10月28日 0 点赞 0 评论 580 浏览 评分:8.0
t=1-1/(2*2)-1/(3*3)-...-1/(m*m)(C++简单代码) 摘要:解题思路:注意事项:用double更加精确参考代码:#include<iostream> using namespace std; #include<iomanip> int main() {…… 题解列表 2022年10月28日 0 点赞 0 评论 754 浏览 评分:9.9
谁家孩子跑最慢*(数学很好做,直接输出结果) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<'W'; return 0;}…… 题解列表 2022年10月28日 0 点赞 2 评论 521 浏览 评分:7.3
邮票组合问题*(数学做,直接编结果) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ cout<<"19"; return 0;}…… 题解列表 2022年10月28日 0 点赞 0 评论 591 浏览 评分:7.3
2923: 病人排队 摘要:解题思路:注意事项:参考代码://插入排序与字符串交换 #include <stdio.h> #include <string.h> int main() { int n = 0, …… 题解列表 2022年10月28日 0 点赞 2 评论 423 浏览 评分:9.9
1872:春夏秋冬判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int month; while(scanf("%d",&month)!=EOF) { if(month>=…… 题解列表 2022年10月29日 0 点赞 0 评论 475 浏览 评分:0.0