上一页 1 2 3 4 5 6 ··· 26 下一页
摘要: #include<bits/stdc++.h> using namespace std; int main() { //1 - n int n , sum = 0; cin >> n; for(int i = 1; i <= n; i++) { if(i % 3 == 0 || i % 5 == 0 阅读全文
posted @ 2024-06-30 22:44 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 18:00 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int sum = 0; for(int i = 1;i <= n;i++) { int x; cin >> x; sum += x; //把每一个输 阅读全文
posted @ 2024-06-28 17:59 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:58 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:56 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:55 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:52 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:51 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 我比较喜欢解法二的for 解法1:while循环 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { int n, 阅读全文
posted @ 2024-06-28 17:47 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 主要就是让你学会如何循环范围、奇数范围、偶数范围 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { for(in 阅读全文
posted @ 2024-06-28 17:45 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 26 下一页