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 listDec 27, 2024 22:10Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 22:1000000Error: No answer to stdout. Died or killed?stderr
2Dec 27, 2024 22:0900000Error: No answer to stdout. Died or killed?stderr
3Dec 27, 2024 22:104,20859,895,55633,932,000998,0002,306,048
4Dec 27, 2024 22:094,22163,686,86732,035,0003,003,0002,535,424
5Dec 27, 2024 22:104,23060,478,82134,105,0001,003,0002,289,664
6Dec 27, 2024 22:104,23559,058,21432,139,0003,013,0002,306,048
7Dec 27, 2024 22:104,24570,441,14832,216,0003,020,0002,535,424
8Dec 27, 2024 22:104,24961,897,86033,254,0002,015,0002,535,424
9Dec 27, 2024 22:104,26457,175,91834,383,0001,011,0002,531,328
10Dec 27, 2024 22:104,27262,460,95133,431,0002,026,0002,314,240
11Dec 27, 2024 22:104,27563,097,45833,459,0002,027,0002,486,272
12Dec 27, 2024 22:104,28663,429,45534,560,0001,016,0002,531,328
13Dec 27, 2024 22:104,29661,758,79134,638,0001,018,0002,314,240
14Dec 27, 2024 22:094,31065,835,61435,774,00002,306,048
15Dec 27, 2024 22:104,31865,710,97432,851,0002,986,0002,314,240
16Dec 27, 2024 22:104,32263,485,56434,874,000996,0002,310,144
17Dec 27, 2024 22:104,32665,216,84434,907,000997,0002,314,240
18Dec 27, 2024 22:094,37465,212,45435,297,0001,008,0002,310,144
19Dec 27, 2024 22:104,40463,449,13033,505,0003,045,0002,531,328
20Dec 27, 2024 22:104,44165,440,22735,868,000996,0002,310,144