题解 2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a=0; cin>>n; f…… 题解列表 2024年01月08日 0 点赞 0 评论 188 浏览 评分:0.0
题解 1151: 计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a=1; cin>>n; f…… 题解列表 2024年01月08日 0 点赞 0 评论 171 浏览 评分:0.0
2777: 计算2的幂(超级简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 201 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 201 浏览 评分:0.0
3010: 奇偶数之和(超简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 194 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; double b=0…… 题解列表 2024年01月08日 0 点赞 0 评论 254 浏览 评分:0.0
排队打水问题贪心求解 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 510; in…… 题解列表 2024年01月08日 0 点赞 0 评论 275 浏览 评分:0.0
面向结果编程 摘要: #include using namespace std; typedef struct fff { int num; int…… 题解列表 2024年01月08日 0 点赞 0 评论 216 浏览 评分:0.0
111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(in…… 题解列表 2024年01月08日 0 点赞 0 评论 235 浏览 评分:0.0
N以内累加求和 2544 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int n;int main(){cin>>n;int s=(1+n)*n/2;cout<<s;}注意事…… 题解列表 2024年01月08日 0 点赞 0 评论 274 浏览 评分:0.0