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 listJun 6, 2024 12:36Joad NacerJoad NacerScore: 8,954Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 12:368,094132,224,45767,181,11102,273,280
2Jun 6, 2024 12:368,192129,199,75967,996,24602,256,896
3Jun 6, 2024 12:368,440124,788,01670,048,69502,269,184
4Jun 6, 2024 12:368,897102,410,65171,854,0001,995,0002,281,472
5Jun 6, 2024 12:368,92797,379,43572,095,0002,002,0002,269,184
6Jun 6, 2024 12:368,93099,939,82972,112,0002,003,0002,277,376
7Jun 6, 2024 12:368,94996,723,32572,267,0002,007,0002,281,472
8Jun 6, 2024 12:368,95495,729,15972,309,0002,008,0002,514,944
9Jun 6, 2024 12:368,97296,647,10873,465,0001,006,0002,273,280
10Jun 6, 2024 12:368,97396,585,38772,464,0002,012,0002,281,472
11Jun 6, 2024 12:369,196102,879,54574,317,0002,008,0002,531,328
12Jun 6, 2024 12:369,255102,598,25775,818,000997,0002,265,088
13Jun 6, 2024 12:3610,110107,498,28781,915,0001,997,000417,792
14Jun 6, 2024 12:3610,162109,830,26781,334,0003,012,0002,277,376
15Jun 6, 2024 12:3610,261111,627,42584,163,0001,001,000417,792