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 listOct 14, 2024 16:24Joad NacerJoad NacerScore: 4,474Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 16:244,34158,347,55235,031,0001,000,0002,301,952
2Oct 14, 2024 16:244,34959,243,89133,091,0003,008,0002,273,280
3Oct 14, 2024 16:244,38363,741,55335,373,0001,010,0002,273,280
4Oct 14, 2024 16:244,39758,927,64536,494,00002,531,328
5Oct 14, 2024 16:244,43957,959,28935,850,000995,0002,535,424
6Oct 14, 2024 16:244,44258,647,06234,877,0001,992,0002,531,328
7Oct 14, 2024 16:244,47260,515,22436,111,0001,003,0002,531,328
8Oct 14, 2024 16:244,47465,296,54635,127,0002,007,0002,273,280
9Oct 14, 2024 16:244,48458,217,26936,212,0001,005,0002,314,240
10Oct 14, 2024 16:244,53663,979,23437,645,00002,531,328
11Oct 14, 2024 16:244,56262,237,33137,868,00002,301,952
12Oct 14, 2024 16:244,67865,695,21237,830,000995,0002,535,424
13Oct 14, 2024 16:244,73361,778,74938,279,0001,007,0002,306,048
14Oct 14, 2024 16:244,91869,108,45639,828,000995,0002,301,952
15Oct 14, 2024 16:244,99464,181,60140,439,0001,010,0002,531,328