07 2024 档案

摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,sum = 0,cnt = 0; //sum求和,cnt正数个数 cin >> n; for(int i = 1; i <= n; i++) { int x; cin >> 阅读全文
posted @ 2024-07-03 16:58 CRt0729 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main() { int a,b,maxx = 0,ans; //maxx是最大上课时间,ans是最不开心的一天 for(int i = 1; i <= 7; i++) { cin >> a >> b; 阅读全文
posted @ 2024-07-03 16:46 CRt0729 阅读(10) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,minn = 9999999; //公理:求最小值时,要初始化最大 cin >> n; for(int i = 1; i <= n; i++) //循环n次 { int a 阅读全文
posted @ 2024-07-03 16:45 CRt0729 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main() { int x,maxx = 0; //公理:求最大值时,要初始化最小 for(int i = 1; i <= 5; i++) //循环5次 { cin >> x; if(x > maxx 阅读全文
posted @ 2024-07-03 16:42 CRt0729 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main() { int m,t,s; //m个苹果,t分钟吃一个,总时间s cin >> m >> t >> s; int n = s / t; //理论上s分钟吃了n个 if(s % t != 0) 阅读全文
posted @ 2024-07-03 16:40 CRt0729 阅读(78) 评论(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-07-03 16:36 CRt0729 阅读(33) 评论(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-07-03 16:35 CRt0729 阅读(41) 评论(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-07-03 16:33 CRt0729 阅读(5) 评论(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-07-03 16:31 CRt0729 阅读(26) 评论(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-07-03 16:30 CRt0729 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; int main() { int n; cin >> n; if(n % 2 == 0)cout << "even"; else cout << "odd"; return 0; } 阅读全文
posted @ 2024-07-03 16:28 CRt0729 阅读(7) 评论(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-07-03 16:27 CRt0729 阅读(45) 评论(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-07-03 16:25 CRt0729 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { int a,b,c,d; cin >> a >> b >> c 阅读全文
posted @ 2024-07-03 16:20 CRt0729 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; int main(){ int t; cin >> t; int h = t / 3600; //先算t秒得到h小时 t -= h * 3600; //减去h小时的秒数 int m = t / 60; //再算t秒得到 阅读全文
posted @ 2024-07-03 16:19 CRt0729 阅读(65) 评论(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-07-03 16:17 CRt0729 阅读(6) 评论(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-07-03 16:15 CRt0729 阅读(18) 评论(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-07-03 16:14 CRt0729 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { char c; cin >> c; cout << " " < 阅读全文
posted @ 2024-07-03 16:11 CRt0729 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { int a,b,c,d; cin >> a >> b >> c 阅读全文
posted @ 2024-07-03 16:05 CRt0729 阅读(33) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示