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 listJul 15, 2022 04:38Robert BurkeRobert BurkeScore: 9,104Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 04:389,009148,200,86174,772,82402,297,856
2Jul 15, 2022 04:389,034143,543,97274,984,34602,170,880
3Jul 15, 2022 04:389,036148,856,87774,999,28502,297,856
4Jul 15, 2022 04:389,08096,265,14273,354,0002,009,0002,531,328
5Jul 15, 2022 04:389,100107,560,61675,528,00002,531,328
6Jul 15, 2022 04:389,100106,090,54475,526,00002,510,848
7Jul 15, 2022 04:389,101102,963,39575,538,00002,527,232
8Jul 15, 2022 04:389,104106,736,38575,567,00002,416,640
9Jul 15, 2022 04:389,109100,637,67775,602,00002,424,832
10Jul 15, 2022 04:389,110101,527,66875,612,00002,428,928
11Jul 15, 2022 04:389,113105,391,21875,637,00002,269,184
12Jul 15, 2022 04:389,113103,750,91975,635,00002,527,232
13Jul 15, 2022 04:389,11697,075,09674,655,0001,008,0002,269,184
14Jul 15, 2022 04:389,13398,896,94974,803,000997,0002,420,736
15Jul 15, 2022 04:389,133102,972,15074,804,000997,0002,531,328