
比赛题解
精神小伙mqpm
这个作者很懒,什么都没留下…
展开
-
10-1练习赛C2 2nd
A - Park Lighting CodeForces - 1358A 题意 思路:没啥好说的n*m/2向上取整即可 代码: #include<iostream> #include<queue> #include<stack> #include<cstring> #include<stdlib.h> #include<cstdio> #include<iostream> #include<algorithm>原创 2020-10-02 16:55:40 · 233 阅读 · 0 评论 -
ICPC Pacific Northwest Regional Contest 2017题解报告
A. Odd Palindrome 题意 : 回文子串长度为奇数 输出Odd 否则 输出Ornot 思路 : 实际上若字符串长度为奇数输出Odd 偶数出Or not 代码: #include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin >>s){ if(s.size() % 2 != 0) cout <<"Odd." &l原创 2020-08-08 11:45:49 · 435 阅读 · 0 评论 -
ICPC Northeastern European Regional Contest 2018-总结题解
L 题意:n, 输入两个数组, 由题意找出第一个数组中重复的数字 第二个数组对应第一个所花费的时间 #include<algorithm> #include<iostream> #include<cstring> using namespace std; #define LL long long int n, k; struct P{ int job; int time; }; bool cmp(const P &a, const P &b){原创 2020-08-04 17:07:18 · 435 阅读 · 0 评论 -
German Collegiate Programming Contest 2019总结
H: Jazz Enthusiast 题意: 将给出的时间相加运算即可 #include<bits/stdc++.h> using namespace std; int h[10001]; int m[10001]; int s[10001]; int hh, mm, ss; int T; int main(){ int n, c; cin >>n >>c; mm = 0; ss = 0; hh = 0; char c原创 2020-08-01 21:14:01 · 356 阅读 · 0 评论 -
7.29日训练赛总结 题解
A 模拟 需要考虑的是 gcd互相加的过程中最大公约数并不便 所以加上y之后直接算就行 不用再模拟m-n步 #include<bits/stdc++.h> #define For(i, s, e) for(int i = s; i < e; i++) #define For_(i, s, e) for(int i = s; i > e; i++) #define sd1(i) scanf("%d", &i) #define sd2(i, j) scanf("%d%d", &a原创 2020-07-30 20:30:56 · 176 阅读 · 0 评论 -
2020 年百度之星·程序设计大赛 - 初赛三题解1,2,3,4
A 直接按样例写即可 代码: #include<bits/stdc++.h> #define For(i, s, e) for(int i = s; i < e; i++) #define For_(i, s, e) for(int i = s; i > e; i++) #define sd1(i) scanf("%d", &i) #define sf1(i) scanf("%lf", &i) #define sl1(i) scanf("%lld", &i)原创 2020-07-30 19:13:52 · 238 阅读 · 0 评论