2013年9月21日

Codeforces 347A A. Difference Row

摘要: A. Difference Rowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou want to arrangenintegersa1, a2, ..., anin some order in a row. Let's define the value of an arrangement as the sum of differences between all pairs of adjacent integers.More 阅读全文

posted @ 2013-09-21 14:20 天使是一个善良的神 阅读(270) 评论(0) 推荐(0) 编辑

Codeforces 347B B. Fixed Points

摘要: B. Fixed Pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA permutation of lengthnis an integer sequence such that each integer from 0 to(n - 1)appears exactly once in it. For example, sequence[0, 2, 1]is a permutation of length 3 while both 阅读全文

posted @ 2013-09-21 13:11 天使是一个善良的神 阅读(350) 评论(0) 推荐(0) 编辑

Codeforces 372B B. Hungry Sequence

摘要: B. Hungry Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub and Iahubina went to a date at a luxury restaurant. Everything went fine until paying for the food. Instead of money, the waiter wants Iahub to write a Hungry sequence consist 阅读全文

posted @ 2013-09-21 12:18 天使是一个善良的神 阅读(274) 评论(0) 推荐(0) 编辑

HDU 1476 Sudoku Killer

摘要: Sudoku KillerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3367Accepted Submission(s): 1063 Problem Description自从2006年3月10日至11日的首届数独世界锦标赛以后,数独这项游戏越来越受到人们的喜爱和重视。 据说,在2008北京奥运会上,会将数独列为一个单独的项目进行比赛,冠军将有可能获得的一份巨大的奖品———HDU免费七日游外加lcy亲笔签名以及同hdu acm team 阅读全文

posted @ 2013-09-21 01:07 天使是一个善良的神 阅读(169) 评论(0) 推荐(0) 编辑

导航