摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文