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 listDec 29, 2022 10:54Bernard TeoBernard TeoScore: 6,507Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 10:546,48879,507,52851,860,0001,994,0002,404,352
2Dec 29, 2022 10:546,49277,214,63251,889,0001,995,0002,273,280
3Dec 29, 2022 10:546,49979,139,39852,944,000998,0002,273,280
4Dec 29, 2022 10:546,49975,264,98251,946,0001,997,0002,273,280
5Dec 29, 2022 10:546,50075,870,03451,950,0001,998,0002,396,160
6Dec 29, 2022 10:546,50279,948,47151,971,0001,998,0002,273,280
7Dec 29, 2022 10:546,50578,033,66452,991,000999,0002,273,280
8Dec 29, 2022 10:546,50776,036,40753,007,0001,000,0002,396,160
9Dec 29, 2022 10:546,50773,285,35552,012,0002,000,0002,404,352
10Dec 29, 2022 10:546,50983,643,41553,021,0001,000,0002,273,280
11Dec 29, 2022 10:546,51381,808,92752,056,0002,002,0002,273,280
12Dec 29, 2022 10:546,51776,546,49652,086,0002,003,0002,273,280
13Dec 29, 2022 10:547,566131,290,98962,794,15502,281,472
14Dec 29, 2022 10:547,567124,832,81562,804,10202,256,896
15Dec 29, 2022 10:547,567143,674,79862,808,35202,256,896