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 5, 2024 23:36Steve HanSteve HanScore: 10,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 23:379,821141,742,30181,511,60502,269,184
2May 5, 2024 23:379,860138,750,04781,838,11202,269,184
3May 5, 2024 23:379,862171,028,37881,858,24802,277,376
4May 5, 2024 23:389,863134,963,99881,863,95702,277,376
5May 5, 2024 23:409,865144,740,85681,882,92402,281,472
6May 5, 2024 23:399,867137,867,92681,892,82002,260,992
7May 5, 2024 23:399,872159,482,43781,940,37602,265,088
8May 5, 2024 23:3610,027151,220,17883,224,55302,281,472
9May 5, 2024 23:4010,050145,858,37983,415,43402,265,088
10May 5, 2024 23:3910,051169,299,59483,423,22202,273,280
11May 5, 2024 23:3910,055148,674,47083,458,97602,265,088
12May 5, 2024 23:3610,057156,647,45183,469,53902,273,280
13May 5, 2024 23:4010,060145,877,14483,496,74602,277,376
14May 5, 2024 23:4010,060146,583,16683,500,95402,269,184
15May 5, 2024 23:3910,062145,559,81583,511,74602,265,088
16May 5, 2024 23:3610,064147,078,96583,527,37802,256,896
17May 5, 2024 23:4010,076164,278,71983,630,54602,260,992
18May 5, 2024 23:3710,099147,374,14083,821,05802,269,184
19May 5, 2024 23:3810,118160,469,66083,975,58902,277,376
20May 5, 2024 23:3710,118144,915,04183,975,91602,269,184
21May 5, 2024 23:3910,120144,145,28683,997,00602,265,088
22May 5, 2024 23:4010,121151,756,88584,003,30702,273,280
23May 5, 2024 23:3710,122141,105,87684,009,82302,260,992
24May 5, 2024 23:3810,125148,558,51884,035,59502,269,184