码迷,mamicode.com
首页 >  
搜索关键字:div2    ( 813个结果
codeforces #585 div2 ABCD
A. Yellow Cards Description Solution 最小值:先给每个人k-1张黄牌,剩下再判断。 最大值:先给k值最小的安排满,再考虑k小的组。 B. The Number of Products Description 给出一个长为n的序列a。 求所有的字串$a[l,r]$满 ...
分类:其他好文   时间:2019-11-09 20:03:52    阅读次数:96
【codeforces 19/11/06 div2】D. 0-1 MST
1 #include<iostream> 2 #include<set> 3 #include<map> 4 #include<queue> 5 #include<algorithm> 6 using namespace std; 7 8 const int maxn = 100010; 9 int ...
分类:其他好文   时间:2019-11-09 09:57:48    阅读次数:90
【codeforces 19/11/06 div2】C. Tile Painting
1 #include <iostream> 2 using namespace std; 3 4 typedef long long LL; 5 6 LL gcd(LL a, LL b) 7 { 8 if (!b) return a; 9 return gcd(b, a % b); 10 } 11 ...
分类:其他好文   时间:2019-11-09 00:27:42    阅读次数:109
【codeforces 19/11/06 div2】A. Maximum Square
1 #include<iostream> 2 #include<algorithm> 3 #include<map> 4 using namespace std; 5 6 map<int, int>cnt; 7 8 int main() 9 { 10 int T; 11 cin >> T; 12 w ...
分类:其他好文   时间:2019-11-07 12:53:58    阅读次数:65
Codeforces #594 div1 C/div2 E – Queue in the Train
题目链接:https://codeforces.com/contest/1239/problem/C 题意:火车上有n位乘客,按照1到n编号,编号为i的人会在ti分钟想去打水。水箱只能供一位乘客使用,每位乘客会使用p分钟。当一位乘客想要去打水时,他会先看编号在他前面的乘客是不是都在座位上,如果有人没 ...
分类:其他好文   时间:2019-11-06 22:45:32    阅读次数:125
codeforces - 1245 (div2)
A - Good ol' Numbers Coloring 直接判断两个数是否互质 #include <stdio.h> #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <qu ...
分类:其他好文   时间:2019-11-05 17:02:02    阅读次数:110
codeforces597 div2 F 数位dp
codeforces597 div2 F 数位dp 题意: 求[L,R]中a&b==0的“对数” 思路: 一个典型的求“对数”的数位dp,对比普通的数位dp,共用一个pos,维护两个limit。剩下的就是“暴搜”了,当然注意去重,因为是求对数就不是简单的$ans_{R} ans_{L 1}$了。还有 ...
分类:其他好文   时间:2019-11-04 21:46:55    阅读次数:96
codeforces educational round 73 div2 ABCD
codeforces educational round 73 div2 ABCD ...
分类:其他好文   时间:2019-11-03 17:58:47    阅读次数:80
JavaScript寻找对象方式
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body> <div id="div1">hello <div class="div2">hello 2</div> <d ...
分类:编程语言   时间:2019-10-30 18:36:11    阅读次数:109
codeforces #591 div2 ABCD
A. CME Description Solution B. Strings Equalization Description Solution C. Save the Nature Description 给出一个长为n序列A,A[i]=x表示第i次卖出的物品的价值为x,你可以任意交换其中的值。 ...
分类:其他好文   时间:2019-10-29 21:24:45    阅读次数:81
813条   上一页 1 ... 8 9 10 11 12 ... 82 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!