关闭
当前搜索:

Codeforces 148D. Bag of mice(概率DP)

传送门The dragon and the princess are arguing about what to do on the New Year’s Eve. The dragon suggests flying to the mountains to watch fairies dancing in the moonlight, while the princess thinks they...
阅读(176) 评论(0)

Codeforces 716 B. Complete the Word(暴力)——Codeforces Round #372 (Div. 2)

传送门B. Complete the Word time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output ZS the Coder loves to read the dictionary. He thinks that a word is nic...
阅读(300) 评论(0)

51NOD 1509 加长棒 && Codeforces 571 A. Lengthening Sticks(组合数学 + 挡板法)

[传送门](http://codeforces.com/contest/571/problem/A)A. Lengthening Stickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given three sticks wi...
阅读(932) 评论(0)

Codeforces 711 E. ZS and The Birthday Paradox(数学)——Codeforces Round #369 (Div. 2)

[传送门](http://codeforces.com/contest/711/problem/E) E. ZS and The Birthday Paradoxtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder has r...
阅读(944) 评论(0)

Codeforces 710 C. Magic Odd Square(构造)——Educational Codeforces Round 16

传送门Find an n × nn × n matrix with different numbers from 11 to n2n^2, so the sum in each row, column and both main diagonals are odd.Input The only line contains odd integer n(1 ≤ n ≤ 49).n (1 ≤ n ≤...
阅读(801) 评论(0)

Codeforces 707 C. Pythagorean Triples(找规律)——Codeforces Round #368 (Div. 2)

传送门Katya studies in a fifth grade. Recently her class studied right triangles and thePythagorean theorem. It appeared, that there are triples of positive integers such that youcan construct a right tri...
阅读(972) 评论(0)

51NOD 1421 最大MOD值&&Codeforces 484 B. Maximum Value(筛法 + 二分)

传送门B. Maximum Valuetime limit per test1 secondmemory limit per test256 megabytesYou are given a sequence a consisting of n integers. Find the maximum possible value of(integer remainder of ai divided b...
阅读(537) 评论(0)

Codeforces 140 A. New Year Table(计算几何)

传送门 A. New Year Table time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Gerald is setting the New Year table. The table has the form of a c...
阅读(601) 评论(2)

Codeforces 702 B. Powers of Two(二分)

传送门 B. Powers of Two time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given n integers a1, a2, …, an. Find the number of pairs o...
阅读(1110) 评论(0)

CodeForces 558 C. Amr and Chemistry && 51NOD 1483 化学变换(暴力 + 贪心)

传送门 Amr loves Chemistry, and specially doing experiments. He is preparing for a new interesting experiment.Amr has n different types of chemicals. Each chemical i has an initial volume of ai liters. F...
阅读(869) 评论(0)

Codeforces 678 D. Iterated Linear Function(构造矩阵)

传送门 D. Iterated Linear Function time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Consider a linear function f(x) = Ax + B. Let’s define g(0...
阅读(1849) 评论(2)

Codeforces 678 C. Joty and Chocolate

传送门C. Joty and Chocolate time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Little Joty has got a task to do. She has a line of n tiles indexe...
阅读(2123) 评论(0)

Educational Codeforces Round 13 A.Johny Likes Numbers && B. The Same Calendar

传送门 A. Johny Likes Numbers time limit per test0.5 seconds memory limit per test256 megabytes inputstandard input outputstandard output Johny likes numbers n and k very much. Now Johny wants to fi...
阅读(2259) 评论(0)

Codeforces Round #354 (Div. 2)(A && B && C)

Codeforces Round #354 (Div. 2) A, B, C解题报告...
阅读(648) 评论(0)

CodeForces 659 D. Bicycle Race(计算几何 + 数学公式)

传送门 D. Bicycle Race time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Maria participates in a bicycle race.The speedway takes place on the s...
阅读(1480) 评论(0)
97条 共7页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:482141次
    • 积分:11059
    • 等级:
    • 排名:第1625名
    • 原创:635篇
    • 转载:5篇
    • 译文:0篇
    • 评论:93条
    博客专栏