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 31, 2022 17:05Jack FrigaardJack FrigaardScore: 4,967Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:054,87762,855,11138,456,0002,024,0002,457,600
2Dec 31, 2022 17:054,88568,706,97538,520,0002,027,0002,453,504
3Dec 31, 2022 17:054,90070,858,84838,641,0002,033,0002,289,664
4Dec 31, 2022 17:054,91866,842,31637,832,0002,986,0002,523,136
5Dec 31, 2022 17:054,91968,877,61037,839,0002,987,0002,523,136
6Dec 31, 2022 17:054,93961,890,10737,994,0002,999,0002,461,696
7Dec 31, 2022 17:054,95563,574,07938,120,0003,009,0002,523,136
8Dec 31, 2022 17:054,96763,783,85038,210,0003,016,0002,514,944
9Dec 31, 2022 17:054,96972,143,24539,233,0002,011,0002,523,136
10Dec 31, 2022 17:054,97860,798,36839,305,0002,015,0002,449,408
11Dec 31, 2022 17:054,97966,057,24838,300,0003,023,0002,523,136
12Dec 31, 2022 17:054,988104,907,81041,402,22302,211,840
13Dec 31, 2022 17:054,99164,321,46638,394,0003,031,0002,523,136
14Dec 31, 2022 17:054,997115,221,96541,475,13502,207,744
15Dec 31, 2022 17:055,017107,239,78941,638,49402,207,744