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 25, 2024 13:50GraceGraceScore: 6,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 13:516,76678,880,11954,156,0002,005,0002,285,568
2May 25, 2024 13:516,78676,917,92354,312,0002,011,0002,285,568
3May 25, 2024 13:506,78779,609,32554,317,0002,011,0002,285,568
4May 25, 2024 13:506,78886,183,72054,326,0002,012,0002,285,568
5May 25, 2024 13:516,79177,623,97155,363,0001,006,0002,273,280
6May 25, 2024 13:506,79877,790,01555,418,0001,007,0002,273,280
7May 25, 2024 13:506,80076,335,20255,436,0001,007,0002,277,376
8May 25, 2024 13:516,80279,488,86755,452,0001,008,0002,285,568
9May 25, 2024 13:516,81082,579,89955,516,0001,009,0002,273,280
10May 25, 2024 13:506,81480,154,77255,545,0001,009,0002,285,568
11May 25, 2024 13:506,81481,561,27755,544,0001,009,0002,269,184
12May 25, 2024 13:516,81783,868,88355,572,0001,010,0002,285,568
13May 25, 2024 13:516,82083,541,66855,597,0001,010,0002,285,568
14May 25, 2024 13:516,82283,733,86355,609,0001,011,0002,273,280
15May 25, 2024 13:516,83086,068,09655,673,0001,012,0002,527,232
16May 25, 2024 13:506,83979,210,55354,772,0001,991,0002,285,568
17May 25, 2024 13:506,86279,842,82954,954,0001,998,0002,277,376
18May 25, 2024 13:506,95386,265,57455,722,0001,990,0002,269,184
19May 25, 2024 13:507,155120,425,55359,388,86002,289,664
20May 25, 2024 13:517,159118,907,88759,423,79602,285,568
21May 25, 2024 13:517,164130,663,75159,464,92402,297,856
22May 25, 2024 13:517,172132,970,06559,531,66502,289,664
23May 25, 2024 13:507,186125,977,19159,640,20302,301,952
24May 25, 2024 13:507,296132,692,26860,558,53902,285,568
25May 25, 2024 13:508,41993,407,20767,884,0001,996,0002,371,584
26May 25, 2024 13:518,50594,931,45469,580,0001,008,0002,269,184
27May 25, 2024 13:518,52895,416,21069,787,000996,0002,265,088
28May 25, 2024 13:508,534101,951,56468,841,0001,995,0002,277,376
29May 25, 2024 13:518,53797,979,04068,864,0001,996,0002,285,568
30May 25, 2024 13:508,542102,507,32768,898,0001,997,0002,269,184