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 31, 2024 04:18GraceGraceScore: 5,595Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 04:185,550100,289,42946,063,72402,277,376
2May 31, 2024 04:185,558109,098,74646,131,66102,289,664
3May 31, 2024 04:185,559104,119,09846,142,24702,289,664
4May 31, 2024 04:185,560107,829,09146,144,03202,281,472
5May 31, 2024 04:185,560105,940,81546,147,24402,289,664
6May 31, 2024 04:185,560111,253,41946,151,55002,285,568
7May 31, 2024 04:185,562107,572,35146,168,38602,285,568
8May 31, 2024 04:185,566115,426,16746,196,69102,273,280
9May 31, 2024 04:185,583112,054,53346,337,76202,293,760
10May 31, 2024 04:185,595117,572,74146,435,17602,281,472
11May 31, 2024 04:185,597117,295,47846,458,14002,289,664
12May 31, 2024 04:185,601134,579,14246,489,90902,285,568
13May 31, 2024 04:185,611116,260,13246,572,75202,281,472
14May 31, 2024 04:185,622113,526,50146,666,34002,285,568
15May 31, 2024 04:185,625104,040,80946,684,45202,293,760
16May 31, 2024 04:185,656129,649,23446,941,58802,285,568
17May 31, 2024 04:185,727111,888,71447,536,43502,273,280
18May 31, 2024 04:185,850108,512,13148,554,56102,281,472