上一页 1 ··· 16 17 18 19 20
摘要: B. Jury Sizetime limit per test1 secondmemory limit per test256 megabytesinputinput.txtoutputoutput.txtIn 2013, the writers of Berland State University should prepare problems fornOlympiads. We will assume that the Olympiads are numbered with consecutive integers from 1 ton. For each Olympiad we kno 阅读全文
posted @ 2012-12-09 20:25 yefeng1627 阅读(274) 评论(0) 推荐(0) 编辑
摘要: A. Cards with Numberstime limit per test1 secondmemory limit per test256 megabytesinputinput.txtoutputoutput.txtPetya has got2ncards, each card contains some integer. The numbers on the cards can be the same. Let's index all cards by consecutive integers from1to2n. We'll denote the number th 阅读全文
posted @ 2012-12-09 20:23 yefeng1627 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Power NetworkTime Limit:2000MSMemory Limit:32768KTotal Submissions:19147Accepted:10099DescriptionA power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) >= 0 of power, may produce an amount 0 &l 阅读全文
posted @ 2012-12-09 16:02 yefeng1627 阅读(167) 评论(0) 推荐(0) 编辑
摘要: C. Text Editortime limit per test1 secondmemory limit per test256 megabytesVasya is pressing the keys on the keyboard reluctantly, squeezing out his ideas on the classical epos depicted in Homer's Odysseus... How can he explain to his literature teacher that he isn't going to become a writer 阅读全文
posted @ 2012-12-08 20:21 yefeng1627 阅读(328) 评论(0) 推荐(0) 编辑
摘要: B. Physics Practicaltime limit per test1 secondmemory limit per test256 megabytesOne day Vasya was on a physics practical, performing the task on measuring the capacitance. He followed the teacher's advice and did as much asnmeasurements, and recorded the results in the notebook. After that he w 阅读全文
posted @ 2012-12-08 20:17 yefeng1627 阅读(252) 评论(0) 推荐(0) 编辑
摘要: A. Boys and Girlstime limit per test1 secondmemory limit per test256 megabytesThere arenboys andmgirls studying in the class. They should stand in a line so that boys and girls alternated there as much as possible. Let's assume that positions in the line are indexed from left to right by numbers 阅读全文
posted @ 2012-12-08 20:10 yefeng1627 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 1019: PalindromeTime Limit:1 SecMemory Limit:128 MBDescriptionNow we have a long long string, and we will have two kinds of operation on it.C i y: change the ith letter to y;Q i j: check whether the substring from ith letter to jth letter is a palindrome.InputThere are multiple test cases.The first 阅读全文
posted @ 2012-12-08 17:12 yefeng1627 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1014: Dice Dice DiceTime Limit:10 SecMemory Limit:128 MBDescriptionThere are 1111 ways in which five 6-sided dice (sides numbered 1 to 6) can be rolled so that the top three numbers sum to 15. Some examples are:D1,D2,D3,D4,D5 = 4,3,6,3,5D1,D2,D3,D4,D5 = 4,3,3,5,6D1,D2,D3,D4,D5 = 3,3,3,6,6D1,D2,D3,D4 阅读全文
posted @ 2012-12-08 15:59 yefeng1627 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20

Launch CodeCogs Equation Editor