shyyhs
shyyhs
全部文章
题解
DP专题(52)
图论(4)
多校补题(2)
数据结构(27)
数论(4)
日记(14)
未归档(38)
归档
标签
去牛客网
登录
/
注册
shyyhs的博客
全部文章
/ 题解
(共24篇)
Educational Codeforces Round 100 (Rated for Div. 2)(A~E)
来自专栏
A. Dungeon 对于每次到7,它都会增加两点伤害,题目问什么时候同时死,你直接模拟它们死光需要多少轮,以及是不是在这些轮里有人提前死了,判断一下就好了. #include <bits/stdc++.h> using namespace std; int main() { i...
题解
2020-12-20
7
1061
Codeforces Round #690 (Div. 3)
来自专栏
A. Favorite Sequence 观察发现前一半大概是2i-1分布,后一半是n-2i分布.然后代码如下: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=2e5+50;...
题解
2020-12-16
6
659
两场Codeforces E题
来自专栏
https://codeforc.es/contest/1443/problem/E 观察q是1e5,x是1e5,所以最多后移15位,所以我们暴力模拟这个进位过程以及修改前缀和即可,老实说代码挺难写的.代码如下: #include <bits/stdc++.h> using namesp...
题解
2020-11-03
4
605
题解.
来自专栏
b:直接模拟从左到右这个过程即可.空格操作和不进行空格操作进行一次比较. #include <bits/stdc++.h> using namespace std; vector<int>ans1,ans2; int main() { int T; scanf...
题解
2020-09-26
7
712
首页
上一页
1
2
3
下一页
末页