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 28, 2024 15:28GraceGraceScore: 16,603Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 15:2816,524164,458,702135,144,0002,002,0002,260,992
2May 28, 2024 15:2816,533164,454,927135,220,0002,003,0002,383,872
3May 28, 2024 15:2816,535167,688,499136,238,0001,001,0002,260,992
4May 28, 2024 15:2816,536165,862,730137,252,00002,260,992
5May 28, 2024 15:2816,550165,660,347136,366,0001,002,0002,379,776
6May 28, 2024 15:2816,552163,949,498135,394,0001,991,0002,523,136
7May 28, 2024 15:2816,555164,043,152136,401,0001,002,0002,523,136
8May 28, 2024 15:2816,570163,265,764136,526,0001,003,0002,260,992
9May 28, 2024 15:2816,578163,590,791136,594,0001,004,0002,383,872
10May 28, 2024 15:2816,580164,274,058136,606,0001,004,0002,383,872
11May 28, 2024 15:2816,580163,047,453135,622,0001,994,0002,260,992
12May 28, 2024 15:2816,581169,727,835137,619,00002,260,992
13May 28, 2024 15:2816,603162,949,036136,805,000998,0002,523,136
14May 28, 2024 15:2816,604163,235,269137,815,00002,260,992
15May 28, 2024 15:2816,604168,455,823135,820,0001,997,0002,396,160
16May 28, 2024 15:2816,632160,590,705137,045,0001,000,0002,502,656
17May 28, 2024 15:2816,634160,872,471137,059,0001,000,0002,260,992
18May 28, 2024 15:2816,641167,891,493137,118,0001,000,0002,387,968
19May 28, 2024 15:2817,388203,643,268144,319,72102,281,472
20May 28, 2024 15:2817,395214,546,965144,380,44902,277,376
21May 28, 2024 15:2817,403202,022,682144,441,87002,273,280
22May 28, 2024 15:2817,411204,523,177144,515,19102,273,280
23May 28, 2024 15:2817,413200,957,052144,527,30002,273,280
24May 28, 2024 15:2817,623210,037,309146,274,75502,277,376