Codeforces Round #267 (Div. 2) A...
分类:
其他好文 时间:
2014-09-19 10:16:05
阅读次数:
233
Codeforces Round #267 (Div. 2) B...
分类:
其他好文 时间:
2014-09-19 10:15:55
阅读次数:
230
Codeforces Round #267 (Div. 2) C...
分类:
其他好文 时间:
2014-09-19 10:15:45
阅读次数:
294
George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered the university. Now they are moving into a dormitory.
George and...
分类:
其他好文 时间:
2014-09-19 10:14:05
阅读次数:
290
闲着没事就水了一发DIV2,本来想新注册一个小小号来着。结果验证码一直显示不出来。于是就用小号做。
结果rank44,但是没有rating.
以下均不解释题意了。
A:O(n)脑残模拟。
Code:
#include
int main() {
int n, a, b;
scanf("%d", &n);
int res = 0;
whil...
分类:
其他好文 时间:
2014-09-19 10:10:55
阅读次数:
216
Codeforces Round #267 (Div. 2)(C和D的题解单独写)AGeorge and Accommodation题意:给出宿舍各个寝室住了多少人、最多能住多少人,求有多少个寝室能住进这两个人……代码: 1 //#pragma comment(linker, "/STACK:102...
分类:
其他好文 时间:
2014-09-19 08:47:25
阅读次数:
239
QAQAQAQAQD题sb题没写出来(大雾)QAQAQAQ差点掉ratingQAQc题我能再wa多次吗,就打错个max的转移啊!QAQA.George and Accommodation题意:给你a和b,问你a是否小于等于b-2这。。。#include #include #include #incl...
分类:
其他好文 时间:
2014-09-19 06:38:14
阅读次数:
245
题目地址:Round Numbers题目大意: “Round Numbers” 是一个十进制的数转化为二进制,如果在二进制中 “0”的个数不小于“1”的个数,就称为“Round Numbers” 。本题求出n到m区间(闭区间)的“Round Numbers” 有多少个。解题思路: 排列组合的公式.....
分类:
其他好文 时间:
2014-09-18 22:04:04
阅读次数:
145
当要求递推数列的第n项且n很大时,怎么快速求得第n项呢?可以用矩阵快速幂来加速计算。我们可以用矩阵来表示数列递推公式比如fibonacci数列 可以表示为 [f(n) f(n-1)] = [f(n-1) f(n-2)] [ 1 1 ] [...
分类:
其他好文 时间:
2014-09-18 18:21:54
阅读次数:
203
Peter had a cube with non-zero length of a side. He put the cube into three-dimensional space in such a way that its vertices lay at integer points (it is possible that the cube's sides are not parall...
分类:
其他好文 时间:
2014-09-18 16:36:44
阅读次数:
196