1127: C语言训练-尼科彻斯定理 摘要:```cpp #include using namespace std; int nkcs(int m){ int n=m*m*m,i; printf("%d*%d*%d=%d=",m,…… 题解列表 2024年08月01日 1 点赞 0 评论 226 浏览 评分:0.0
练练浮点数二分吧 摘要:#include<bits/stdc++.h>//浮点数二分 using namespace std; int main() { double x; cin>>x; double l…… 题解列表 2024年08月01日 0 点赞 0 评论 455 浏览 评分:0.0
方便的find查找 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,cnt=0; cin>>n; for…… 题解列表 2024年08月01日 0 点赞 0 评论 181 浏览 评分:0.0
1121: C语言训练-8除不尽的数 摘要:```cpp #include using namespace std; int n,a; int zrs(){ for(int i=0;;i++){ a=i/8/8/8; i…… 题解列表 2024年07月31日 0 点赞 0 评论 223 浏览 评分:9.9
最短代码解决奇偶数之和 摘要:解题思路:使用求和公式。偶数求和公式为(n / 2) * (n / 2 + 1),奇数求和公式为(n / 2) * (n / 2)或(n / 2) * (n / 2)+n。注意事项:奇数和与偶数和求和…… 题解列表 2024年07月31日 0 点赞 0 评论 181 浏览 评分:9.9
编写题解 1809: [编程基础]输入输出练习之精度控制2 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double x; cin >> x; printf(…… 题解列表 2024年07月31日 0 点赞 0 评论 197 浏览 评分:0.0
编写题解 1808: [编程基础]输入输出练习之精度控制1 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2024年07月31日 0 点赞 0 评论 229 浏览 评分:0.0
erase的大作用 摘要:#include<bits/stdc++.h> using namespace std; int main() { int t,i=0; cin>>t; while…… 题解列表 2024年07月31日 0 点赞 0 评论 164 浏览 评分:0.0
贼好用的erase,长也要记住 摘要:#include<bits/stdc++.h> using namespace std; int main() { string str; char t; cin>…… 题解列表 2024年07月31日 0 点赞 0 评论 128 浏览 评分:0.0
1119: C语言训练-"水仙花数"问题1 摘要:```cpp #include using namespace std; int a,b,c; int sxh(int n) { a=n/100; b=n/10%10; c=n%…… 题解列表 2024年07月30日 0 点赞 0 评论 287 浏览 评分:0.0