摘要:
Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M 10 8 2 3 20 4 5 1 6 7 8 9 S 阅读全文
摘要:
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc 阅读全文
摘要:
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non increasing order, and 阅读全文
摘要:
Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam 阅读全文
摘要:
```
int gcd(int a, int b){ return a%b==0?b:gcd(b,a%b);
}
``` 阅读全文
摘要:
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input file contains o 阅读全文