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 2, 2023 16:51Bernard TeoBernard TeoScore: 6,392Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:516,37481,298,99150,906,0001,996,0002,400,256
2Jan 2, 2023 16:516,37976,861,87850,945,0001,997,0002,400,256
3Jan 2, 2023 16:516,38271,400,76050,969,0001,998,0002,273,280
4Jan 2, 2023 16:516,38477,691,76851,991,000999,0002,273,280
5Jan 2, 2023 16:516,38576,409,73750,994,0001,999,0002,400,256
6Jan 2, 2023 16:516,38578,195,22450,998,0001,999,0002,273,280
7Jan 2, 2023 16:516,38773,020,10151,013,0002,000,0002,400,256
8Jan 2, 2023 16:516,39277,731,82952,052,0001,001,0002,273,280
9Jan 2, 2023 16:516,39378,469,69652,063,0001,001,0002,273,280
10Jan 2, 2023 16:516,39477,983,28352,068,0001,001,0002,273,280
11Jan 2, 2023 16:516,39684,433,43453,083,00002,387,968
12Jan 2, 2023 16:516,40277,753,13751,129,0002,005,0002,273,280
13Jan 2, 2023 16:516,639120,072,23555,106,63502,281,472
14Jan 2, 2023 16:516,640120,809,01655,110,77302,273,280
15Jan 2, 2023 16:516,644117,262,56255,148,03802,281,472