摘要: 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 阅读(736) 评论(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) 编辑

Launch CodeCogs Equation Editor