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 listJan 1, 2023 16:06Jack FrigaardJack FrigaardScore: 4,924Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:064,771106,153,22739,599,22602,199,552
2Jan 1, 2023 16:064,779103,301,53139,666,01002,203,648
3Jan 1, 2023 16:064,836106,323,21240,136,77202,203,648
4Jan 1, 2023 16:064,92067,949,24837,848,0002,988,0002,457,600
5Jan 1, 2023 16:064,92170,559,13738,849,0001,992,0002,523,136
6Jan 1, 2023 16:064,92166,347,45738,851,0001,992,0002,453,504
7Jan 1, 2023 16:064,92264,154,62138,861,0001,992,0002,523,136
8Jan 1, 2023 16:064,92468,474,36038,829,0002,043,0002,523,136
9Jan 1, 2023 16:064,92762,258,10738,896,0001,994,0002,297,856
10Jan 1, 2023 16:064,92865,712,92637,909,0002,992,0002,514,944
11Jan 1, 2023 16:064,96868,776,43740,228,0001,005,0002,523,136
12Jan 1, 2023 16:064,96963,569,27138,224,0003,017,0002,449,408
13Jan 1, 2023 16:064,97367,776,60338,260,0003,020,0002,523,136
14Jan 1, 2023 16:064,97763,819,60738,290,0003,022,0002,457,600
15Jan 1, 2023 16:064,98365,177,28038,333,0003,026,0002,523,136