B. Creating the Contest time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Creating the C ...
分类:
其他好文 时间:
2018-08-28 15:29:15
阅读次数:
407
C. Rectangles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Rectangles time limit p ...
分类:
其他好文 时间:
2018-08-28 14:27:05
阅读次数:
139
从左到右一共n个数,数字下标从1到n编号。 一共m次询问,每次询问是否能从第L个到第R个数中(包括第L个和第R个数)选出一些数使得他们异或为K。 数据量比较大。 输入请用快速读入 输出请用puts 输出请用puts 输出请用puts Input Output Input示例 Output示例 ...
分类:
其他好文 时间:
2018-08-26 11:49:04
阅读次数:
104
Description Input Output Data Constraint 做法:考虑贪心使得mina*minb最大,先以a为关键字排序,然后枚举删除最小的0~m个ai,对应删除最小的bi,然后更新答案。 1 #include <cstdio> 2 #include <cstring> 3 # ...
分类:
其他好文 时间:
2018-08-26 00:06:01
阅读次数:
159
B. Creating the Contest time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Creating the C ...
分类:
其他好文 时间:
2018-08-25 14:17:13
阅读次数:
192
C. Maximal Intersection time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output C. Maximal Inter ...
分类:
其他好文 时间:
2018-08-25 14:03:15
阅读次数:
126
Input Output Sample Input Sample Output 同类题目:HDU1358 #include <bits/stdc++.h> using namespace std; int n; char a[1000005]; int nxt[1000005]; void getn ...
分类:
其他好文 时间:
2018-08-24 17:25:11
阅读次数:
187
这个题有点意思,一开始没想到用dp,没啥思路,后来看题解才恍然大悟:k才1~100,直接枚举每个-1点的k取值进行dp就行了。先预处理出来sz[i][j] i左边的比j大的数,lz[i][j] i右边比j小的数。然后就没啥了。 题干: Description Input Output Sample ...
分类:
其他好文 时间:
2018-08-23 19:15:55
阅读次数:
152
"原题462. Minimum Moves to Equal Array Elements II" 题目大意: 给你一串数字,对于每个数字,一次性可以移动一步(数值增加1或者减小1),请问如何在最小的步伐数内使所有的数字都相等 Example Input: [1,2,3] Output: 2 Exp ...
分类:
其他好文 时间:
2018-08-21 21:44:54
阅读次数:
144
B. Weakened Common Divisor time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output B. Weakened ...
分类:
其他好文 时间:
2018-08-20 11:32:25
阅读次数:
429