摘要:
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 阅读全文
posted @ 2018-02-03 15:55
A-Little-Nut
阅读(160)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-02-03 15:28
A-Little-Nut
阅读(140)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-02-03 15:20
A-Little-Nut
阅读(144)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-02-03 12:45
A-Little-Nut
阅读(276)
评论(0)
推荐(0)
摘要:
```
int gcd(int a, int b){ return a%b==0?b:gcd(b,a%b);
}
``` 阅读全文
posted @ 2018-02-03 11:23
A-Little-Nut
阅读(139)
评论(0)
推荐(0)
摘要:
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input file contains o 阅读全文
posted @ 2018-02-03 11:22
A-Little-Nut
阅读(135)
评论(0)
推荐(0)

浙公网安备 33010602011771号