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 21, 2022 08:05Robert BurkeRobert BurkeScore: 8,253Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2022 08:058,17092,685,78266,816,000997,0002,433,024
2Jul 21, 2022 08:058,17092,679,35065,820,0001,994,0002,277,376
3Jul 21, 2022 08:058,17193,749,65066,819,000997,0002,424,832
4Jul 21, 2022 08:058,23390,922,79767,330,0001,004,0002,433,024
5Jul 21, 2022 08:058,24790,876,34867,443,0001,006,0002,539,520
6Jul 21, 2022 08:058,25091,089,76968,478,00002,277,376
7Jul 21, 2022 08:058,25287,991,09268,491,00002,539,520
8Jul 21, 2022 08:058,25389,441,79768,500,00002,277,376
9Jul 21, 2022 08:058,25695,018,69668,523,00002,539,520
10Jul 21, 2022 08:058,25993,387,14867,557,000993,0002,277,376
11Jul 21, 2022 08:058,26089,844,63166,570,0001,987,0002,277,376
12Jul 21, 2022 08:058,27390,575,26666,677,0001,990,0002,277,376
13Jul 21, 2022 08:058,678127,276,76472,026,42702,301,952
14Jul 21, 2022 08:058,708131,932,64372,277,17102,179,072
15Jul 21, 2022 08:058,710141,793,34272,289,14102,301,952