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:09Jack FrigaardJack FrigaardScore: 4,933Success
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:094,87661,281,98638,449,0002,023,0002,453,504
2Dec 31, 2022 17:094,87965,045,91838,471,0002,024,0002,457,600
3Dec 31, 2022 17:094,89069,067,87538,562,0002,029,0002,523,136
4Dec 31, 2022 17:094,89467,825,58138,590,0002,031,0002,453,504
5Dec 31, 2022 17:094,89668,623,30938,604,0002,031,0002,523,136
6Dec 31, 2022 17:094,92170,339,03837,856,0002,988,0002,523,136
7Dec 31, 2022 17:094,92862,083,26837,907,0002,992,0002,523,136
8Dec 31, 2022 17:094,93363,829,93637,945,0002,995,0002,445,312
9Dec 31, 2022 17:094,93763,556,03237,979,0002,998,0002,523,136
10Dec 31, 2022 17:094,949101,415,81641,074,39202,207,744
11Dec 31, 2022 17:094,974115,949,07241,287,19102,220,032
12Dec 31, 2022 17:094,98771,731,26439,374,0002,019,0002,523,136
13Dec 31, 2022 17:094,99563,242,77139,439,0002,022,0002,289,664
14Dec 31, 2022 17:095,022102,331,38341,679,09102,203,648
15Dec 31, 2022 17:095,04168,422,02438,849,0002,988,0002,523,136