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 5, 2024 16:05GraceGraceScore: 4,505Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 16:054,41362,275,08634,596,0002,035,0002,490,368
2Jun 5, 2024 16:054,43861,368,88934,845,0001,991,0002,273,280
3Jun 5, 2024 16:054,43966,472,73935,852,000995,0002,273,280
4Jun 5, 2024 16:054,44161,240,55133,874,0002,988,0002,273,280
5Jun 5, 2024 16:054,45156,021,09033,951,0002,995,0002,490,368
6Jun 5, 2024 16:054,45559,900,49134,981,0001,998,0002,486,272
7Jun 5, 2024 16:054,45959,057,55834,010,0003,000,0002,273,280
8Jun 5, 2024 16:054,46862,265,34834,081,0003,007,0002,338,816
9Jun 5, 2024 16:054,47568,149,69734,134,0003,011,0002,351,104
10Jun 5, 2024 16:054,47760,163,32835,147,0002,008,0002,482,176
11Jun 5, 2024 16:054,48064,440,34534,170,0003,015,0002,273,280
12Jun 5, 2024 16:054,48363,468,15034,192,0003,016,0002,482,176
13Jun 5, 2024 16:054,48669,687,06935,219,0002,012,0002,482,176
14Jun 5, 2024 16:054,49464,298,55336,294,0001,008,0002,453,504
15Jun 5, 2024 16:054,50359,156,17536,367,0001,010,0002,273,280
16Jun 5, 2024 16:054,50562,994,75634,363,0003,032,0002,486,272
17Jun 5, 2024 16:054,50667,482,34036,393,0001,010,0002,273,280
18Jun 5, 2024 16:054,51560,991,18636,463,0001,012,0002,273,280
19Jun 5, 2024 16:054,55463,214,54834,817,0002,984,0002,482,176
20Jun 5, 2024 16:054,57466,346,34835,970,0001,998,0002,486,272
21Jun 5, 2024 16:054,57898,227,66437,996,54202,236,416
22Jun 5, 2024 16:054,60362,336,44635,188,0003,016,0002,473,984
23Jun 5, 2024 16:054,620102,704,82738,349,14202,244,608
24Jun 5, 2024 16:054,64263,757,98736,504,0002,028,0002,482,176
25Jun 5, 2024 16:054,649116,249,34038,586,06502,236,416
26Jun 5, 2024 16:054,674131,619,77638,795,98902,232,320
27Jun 5, 2024 16:054,67866,879,66535,841,0002,986,0002,506,752
28Jun 5, 2024 16:054,694104,177,71138,959,90402,248,704
29Jun 5, 2024 16:054,746107,088,42539,391,77902,240,512
30Jun 5, 2024 16:054,77873,034,02638,640,0001,016,0002,273,280