谁家孩子跑最慢*(数学很好做,直接输出结果) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<'W'; return 0;}…… 题解列表 2022年10月28日 0 点赞 2 评论 413 浏览 评分:7.3
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 评论 626 浏览 评分:9.9
-计算一个整数N的阶乘(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long int n,i,j=1; …… 题解列表 2022年10月28日 0 点赞 0 评论 484 浏览 评分:8.0
计算t=1+1/2+1/3+...+1/n(C++超级简单) 摘要:解题思路:注意事项:用float会出现精度问题,double更精确参考代码:#include<iostream> using namespace std; #include<iomanip> i…… 题解列表 2022年10月28日 0 点赞 0 评论 330 浏览 评分:9.9
算1~N之间所有奇数之和(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,s=0; cin>>n…… 题解列表 2022年10月28日 0 点赞 0 评论 389 浏览 评分:9.9
角谷猜想(C++简单递归) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int x) { if(x%2==0) { …… 题解列表 2022年10月28日 0 点赞 0 评论 632 浏览 评分:6.3
舍罕王的失算(简单C++) 摘要:解题思路:注意事项:数值很大,但是在usigned long long int范围里面,因此可以用其存储参考代码:#include<iostream> using namespace std; i…… 题解列表 2022年10月28日 0 点赞 0 评论 463 浏览 评分:9.9
自由落体问题(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int n…… 题解列表 2022年10月28日 0 点赞 0 评论 454 浏览 评分:9.9
自守数问题(C++) 摘要:解题思路:注意事项:int存不下,用long,题目要求两个空格隔开参考代码:using namespace std; #include<iostream> int main() { c…… 题解列表 2022年10月28日 1 点赞 0 评论 436 浏览 评分:9.9
素数问题(简单C++) 摘要:解题思路:素数只能被自己整除注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,j; …… 题解列表 2022年10月28日 0 点赞 0 评论 365 浏览 评分:9.9