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:56Jack FrigaardJack FrigaardScore: 5,047Success
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:565,009108,618,19841,570,86902,199,552
2Jan 1, 2023 16:565,019115,949,49341,661,77602,203,648
3Jan 1, 2023 16:565,03968,508,22440,829,000995,0002,449,408
4Jan 1, 2023 16:565,04274,642,99839,855,0001,992,0002,523,136
5Jan 1, 2023 16:565,04270,300,91438,860,0002,989,0002,461,696
6Jan 1, 2023 16:565,04366,510,37539,860,0001,993,0002,523,136
7Jan 1, 2023 16:565,04367,371,71338,867,0002,989,0002,449,408
8Jan 1, 2023 16:565,04770,844,79938,896,0002,992,0002,523,136
9Jan 1, 2023 16:565,05174,262,07039,925,0001,996,0002,523,136
10Jan 1, 2023 16:565,05268,479,13138,934,0002,994,0002,523,136
11Jan 1, 2023 16:565,069101,659,31142,075,84302,207,744
12Jan 1, 2023 16:565,07865,145,71239,141,0003,010,0002,523,136
13Jan 1, 2023 16:565,09466,157,91840,271,0002,013,0002,457,600
14Jan 1, 2023 16:565,10167,648,07039,314,0003,024,0002,457,600
15Jan 1, 2023 16:565,11167,182,17740,401,0002,020,0002,453,504