摘要: 循环结构参考资料:https://blog.csdn.net/m0_56945138/article/details/118929416需要掌握:1.for循环用法2.while循环用法3.continue跳过 和 break终止 题号 题目名称 题解链接 3067 输出范围内的整数 https:/ 阅读全文
posted @ 2024-06-30 22: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 = 阅读全文
posted @ 2024-06-30 22: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 = 0x3f 阅读全文
posted @ 2024-06-30 22:53 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-30 22:50 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-30 22:49 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-30 22:49 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-30 22:48 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; map<ll,ll> ma; ll n,x; int main() { cin >> n 阅读全文
posted @ 2024-06-30 22:46 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-30 22:45 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main(){ int n; cin >> n; int sum = 0; //统计位数 while(n != 0) { sum++; n /= 10; //每分割一位数就统计位数+1 } cout << su 阅读全文
posted @ 2024-06-30 22:45 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑