摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instanc... 阅读全文
posted @ 2012-03-16 18:41 Gavin Lipeng Ma 阅读(620) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB It is said that 90% of frosh expect to be above average in their class. You are to provide a reality check. Input The first line of standard inpu... 阅读全文
posted @ 2012-03-16 16:18 Gavin Lipeng Ma 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer. This problem ... 阅读全文
posted @ 2012-03-16 16:08 Gavin Lipeng Ma 阅读(213) 评论(0) 推荐(0) 编辑