
codeforces补题
Baolar_Code
武汉科技大学计算机科学与技术在读。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【第一周推荐题】Educational Codeforces Round 87 (Rated for Div. 2) D. Multiset
Educational Codeforces Round 87 (Rated for Div. 2) D. Multiset https://codeforces.com/contest/1354/problem/D 题意:一个很有意思的题,空间限制28mb。给一个数组a,和q次操作p[i],p[i]>0时表示将p[i]插入到集合a中,p[i]<0时表示删除升序abs(p[i])位置的数,然后输出数组中任意一个数。 思路:Note that the memory limit is unusual原创 2020-07-11 20:13:40 · 447 阅读 · 0 评论 -
Educational Codeforces Round 87 (Rated for Div. 2) 补题 A~D include B.Ternary String、D.Multiset
A. Alarm Clock https://codeforces.com/contest/1354/problem/A 题意:模拟题。要睡a分钟,b分钟后闹钟响,如果响的时候没睡够a分钟,设c分钟后响,并花d分钟重新入睡,如果响的时候还没睡着,设c分钟后响,并花d分钟重新入睡,如果响的时候睡够了a分钟 起床,判断能否起床,如果能,什么时候起床。 #include <iostream> #include <cstdio> #include <algorithm> #inc原创 2020-07-09 21:42:25 · 334 阅读 · 0 评论 -
Codeforces Round #628 (Div. 2) Virtual participation
A. EhAb AnD gCd 题意:给一个整数x求任意一个a,b 使得gcd(a,b) + lcm(a,b) == x。 思路:因为1和一个数的最大公因数是1最小公倍数是那个数本身,所以输出1和x-1即可。 源代码: #include <bits/stdc++.h> using namespace std; int a[maxn]; int main() { int t...原创 2020-03-15 16:11:47 · 327 阅读 · 0 评论 -
【Codeforces Round #626 (Div. 2) 】B.Count Subrectangles
B. Count Subrectangles time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output You are given an array a of length n and array b of length m both consis...原创 2020-03-07 23:59:36 · 340 阅读 · 0 评论