Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listMay 25, 2024 14:03GraceGraceScore: 6,831Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 14:036,76486,075,82655,142,0001,002,0002,285,568
2May 25, 2024 14:036,77978,338,06055,263,0001,004,0002,269,184
3May 25, 2024 14:036,78282,697,86855,288,0001,005,0002,277,376
4May 25, 2024 14:036,80084,578,88055,431,0001,007,0002,265,088
5May 25, 2024 14:036,80680,459,62755,483,0001,008,0002,285,568
6May 25, 2024 14:036,80679,923,22056,492,00002,269,184
7May 25, 2024 14:036,80783,311,36855,490,0001,008,0002,285,568
8May 25, 2024 14:036,83184,884,75655,706,000994,0002,273,280
9May 25, 2024 14:036,88685,522,42855,145,0002,005,0002,285,568
10May 25, 2024 14:037,148125,994,11859,331,61102,297,856
11May 25, 2024 14:037,191138,861,99159,685,74802,285,568
12May 25, 2024 14:037,278129,153,69160,407,47702,285,568
13May 25, 2024 14:038,49291,483,85070,485,00002,285,568
14May 25, 2024 14:038,54194,207,64268,891,0001,996,0002,285,568
15May 25, 2024 14:038,54893,805,56468,949,0001,998,0002,285,568