摘要: Running MedianTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 742Accepted: 354DescriptionFor this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the median (middle value) of the elements received so far.Inpu 阅读全文
posted @ 2012-05-03 15:56 w0w0 阅读(249) 评论(0) 推荐(0)
摘要: SOLDIERSTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 5599Accepted: 2090DescriptionN soldiers of the land Gridland are randomly scattered around the country. A position in Gridland is given by a pair (x,y) of integer coordinates. Soldiers can move - in one move, one soldier can go one uni 阅读全文
posted @ 2012-05-03 10:08 w0w0 阅读(112) 评论(0) 推荐(0)