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 27, 2024 13:11GraceGraceScore: 6,995Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:126,91080,681,86455,341,0002,012,0002,277,376
2May 27, 2024 13:106,93283,138,82956,530,0001,009,0002,277,376
3May 27, 2024 13:106,93587,547,25356,549,0001,009,0002,285,568
4May 27, 2024 13:116,94082,663,94356,590,0001,010,0002,265,088
5May 27, 2024 13:126,94092,374,22756,596,0001,010,0002,273,280
6May 27, 2024 13:126,94582,467,64856,629,0001,011,0002,285,568
7May 27, 2024 13:116,94983,242,69656,662,0001,011,0002,531,328
8May 27, 2024 13:126,96383,501,93256,798,000996,0002,285,568
9May 27, 2024 13:106,96488,135,53655,806,0001,993,0002,273,280
10May 27, 2024 13:126,96483,798,40755,810,0001,993,0002,265,088
11May 27, 2024 13:106,96681,001,98156,800,0001,014,0002,285,568
12May 27, 2024 13:106,96688,903,65755,828,0001,993,0002,269,184
13May 27, 2024 13:106,96785,273,09756,831,000997,0002,277,376
14May 27, 2024 13:126,96883,415,05755,839,0001,994,0002,277,376
15May 27, 2024 13:106,96984,675,18556,847,000997,0002,285,568
16May 27, 2024 13:116,97085,894,64056,856,000997,0002,285,568
17May 27, 2024 13:106,97080,829,97155,859,0001,994,0002,285,568
18May 27, 2024 13:116,97190,232,84855,863,0001,995,0002,273,280
19May 27, 2024 13:116,97382,083,16355,884,0001,995,0002,285,568
20May 27, 2024 13:116,97982,587,46555,929,0001,997,0002,277,376
21May 27, 2024 13:126,98680,650,17655,983,0001,999,0002,371,584
22May 27, 2024 13:106,98781,273,01255,991,0001,999,0002,269,184
23May 27, 2024 13:116,99580,325,13256,055,0002,001,0002,285,568
24May 27, 2024 13:116,99985,412,75757,091,0001,001,0002,531,328
25May 27, 2024 13:127,01481,972,02056,212,0002,007,0002,285,568
26May 27, 2024 13:127,02981,950,81157,338,0001,005,0002,269,184
27May 27, 2024 13:117,14983,363,29357,324,0002,011,0002,265,088
28May 27, 2024 13:127,549129,525,94462,660,41702,277,376
29May 27, 2024 13:107,572135,871,51362,850,96202,289,664
30May 27, 2024 13:107,621128,487,45963,250,61202,293,760
31May 27, 2024 13:127,624124,282,65463,277,91002,301,952
32May 27, 2024 13:117,667126,861,63963,638,54802,179,072
33May 27, 2024 13:117,719127,792,23564,071,51402,293,760
34May 27, 2024 13:127,739128,051,03864,233,47102,293,760
35May 27, 2024 13:107,740125,058,22964,239,59902,285,568
36May 27, 2024 13:117,752121,819,57064,343,28602,297,856
37May 27, 2024 13:128,42692,803,53568,940,000999,0002,285,568
38May 27, 2024 13:128,536102,049,20669,849,000997,0002,269,184
39May 27, 2024 13:108,56496,455,95569,081,0002,002,0002,269,184
40May 27, 2024 13:108,57094,094,19869,131,0002,003,0002,277,376
41May 27, 2024 13:128,58394,185,07469,237,0002,006,0002,285,568
42May 27, 2024 13:118,60093,545,00271,376,00002,285,568
43May 27, 2024 13:118,62693,862,93870,590,0001,008,0002,269,184
44May 27, 2024 13:118,65098,103,25069,803,0001,994,0002,285,568
45May 27, 2024 13:108,655107,663,42469,840,0001,995,0002,265,088