![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
比赛题解
精神小伙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 · 193 阅读 · 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 · 388 阅读 · 0 评论 -
ICPC Northeastern European Regional Contest 2018-总结题解
L题意:n, 输入两个数组, 由题意找出第一个数组中重复的数字 第二个数组对应第一个所花费的时间#include<algorithm>#include<iostream>#include<cstring>using namespace std;#define LL long longint n, k;struct P{ int job; int time;};bool cmp(const P &a, const P &b){原创 2020-08-04 17:07:18 · 407 阅读 · 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 · 316 阅读 · 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 · 139 阅读 · 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 · 209 阅读 · 0 评论