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 >>
阅读全文
摘要:#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;
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文
摘要:#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)
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#include <iostream> using namespace std; int main() { int n; cin >> n; if(n % 2 == 0)cout << "even"; else cout << "odd"; return 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;
阅读全文
摘要:#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;
阅读全文
摘要:#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
阅读全文
摘要:#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秒得到
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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 << " " <
阅读全文
摘要:#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
阅读全文