题解列表
1145自由落体问题(分类讨论可得规律)
摘要:解题思路:第一次只有下落,没有上升,从第二次开始两者都有了。注意事项:参考代码:#include<iostream>using namespace std;int main(){ double N; ……
1146舍罕王的失算(模拟乘法)
摘要:解题思路:模拟乘法,这道题用求和公式可得是2的64次方-1。注意事项:可以直接输出 18446744073709551615 就可以过,不过没必要参考代码:#include<iostream>usin……
1147角谷猜想(while循环)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; while (N != 1) { ……
1148计算1977!*(模拟乘法)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10000] = { 1 };//从第一个数 1 开始……
1149计算1~N之间所有奇数之和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; long long sum = 0;……
1173 计算球的体积
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;#define PI 3.1415926int main(){ ……