decimal system |
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) |
Total Submission(s): 5321 Accepted Submission(s): 2226 |
Problem Description As we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the value that 3 plus 9, we just import 3 and 9.after calculation of computer, we will get the result of 12.
|
Input There will be several cases. The first line of each case contains one integers N, and N means there will be N numbers to import, then there will be N numbers at the next N lines, each line contains a number with such form : X1….Xn.(Y), and 0<=Xi<Y, 1<Y<=10. I promise you that the sum will not exceed the 100000000, and there will be at most 100 cases and the 0<N<=1000.
|
Output There is only one line output case for each input case, which is the sum of all the number. The sum must be expressed using the decimal system.
|
Sample Input
|
Sample Output 代码如下:
|
HDOJ decimal system
最新推荐文章于 2019-06-11 11:52:24 发布