摘要: A Binarize It 一个for循环暴力查找即可 #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cou 阅读全文
posted @ 2021-03-14 20:19 SyrupWRLD 阅读(55) 评论(0) 推荐(0)
摘要: CodeForces - 1166C #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); 阅读全文
posted @ 2021-03-07 16:32 SyrupWRLD 阅读(46) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);/*题意;判断是否放一个炸弹能炸掉所有 阅读全文
posted @ 2021-02-21 21:05 SyrupWRLD 阅读(80) 评论(0) 推荐(0)
摘要: C - C CodeForces - 991C 二分查找 #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);co 阅读全文
posted @ 2021-02-07 22:23 SyrupWRLD 阅读(58) 评论(0) 推荐(0)
摘要: CodeForces - 879A #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);/ 阅读全文
posted @ 2021-01-27 16:37 SyrupWRLD 阅读(82) 评论(0) 推荐(0)
摘要: B - Escape #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);/**/int 阅读全文
posted @ 2020-12-27 11:51 SyrupWRLD 阅读(106) 评论(0) 推荐(0)
摘要: K - Tokitsukaze and Mahjong 题意是有三种麻将(1-9)s、(1-9)m、(1-9)p,主角的手里最初有三个牌(如1s、2s、3s),现有两种可以出的牌:一种是三个相同的(1p、1p、1p),一种是三个连续的(1s、2s、3s)。如果不满足可以添加牌来凑出这两种牌(任意一种 阅读全文
posted @ 2020-12-26 17:02 SyrupWRLD 阅读(96) 评论(0) 推荐(0)
摘要: B - Lucky Mask CodeForces - 146B #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0 阅读全文
posted @ 2020-12-20 19:51 SyrupWRLD 阅读(54) 评论(0) 推荐(0)
摘要: L2-1 简单计算器 (25分) 这个题会用栈就能做出来了。按题目要求写就行,比赛没做全对。 #include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ stack<int>s1; stack<char>s2; 阅读全文
posted @ 2020-12-06 21:04 SyrupWRLD 阅读(196) 评论(0) 推荐(0)
摘要: C - Trains #include<bits/stdc++.h>#define ll long longusing namespace std;#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);/**/int 阅读全文
posted @ 2020-12-05 16:25 SyrupWRLD 阅读(109) 评论(0) 推荐(0)