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 listAug 27, 2023 04:04Matthew DowneyMatthew DowneyScore: 53,966Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 27, 2023 19:3353,912510,427,323447,466,00702,203,648
2Aug 27, 2023 04:0453,926512,328,804447,587,22602,203,648
3Aug 27, 2023 19:3353,942534,119,313447,715,84302,207,744
4Aug 27, 2023 04:0453,966515,680,226447,913,96602,199,552
5Aug 27, 2023 19:3353,966526,109,107447,920,12302,207,744
6Aug 27, 2023 04:0454,023518,974,240448,389,30602,207,744