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 listJun 6, 2024 14:55matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 14:5800000Error: expected "53692308532780808 ", got "0000 0000 0010 0010 0000 0000 1000 0000 70453669962139237"stderr
2Jun 6, 2024 14:5700000Error: expected "53693138714683540 ", got "0000 0000 0010 0010 0000 0000 1000 0000 67681659330331342"stderr
3Jun 6, 2024 14:5500000Error: expected "53689821218225035 ", got "53689818797794787"stderr
4Jun 6, 2024 14:5922,627253,102,532187,804,30302,248,704
5Jun 6, 2024 15:0022,641258,217,845187,920,48702,244,608
6Jun 6, 2024 14:5922,696244,456,658188,379,08002,248,704
7Jun 6, 2024 15:0022,706253,424,170188,459,28102,256,896
8Jun 6, 2024 15:0022,738269,658,308188,726,88502,248,704
9Jun 6, 2024 14:5922,741243,101,141188,748,28602,248,704
10Jun 6, 2024 15:0022,775243,858,087189,033,07602,260,992
11Jun 6, 2024 15:0022,777257,036,340189,051,88102,252,800
12Jun 6, 2024 14:5922,793247,049,017189,184,86202,265,088
13Jun 6, 2024 15:0023,189271,860,358192,465,81002,252,800
14Jun 6, 2024 14:5923,242249,941,839192,909,20002,252,800
15Jun 6, 2024 15:0023,299249,523,313193,380,36902,260,992
16Jun 6, 2024 14:5923,345244,161,595193,764,12302,252,800
17Jun 6, 2024 15:0023,446254,940,548194,605,63202,248,704
18Jun 6, 2024 15:0023,489260,548,212194,956,20002,260,992
19Jun 6, 2024 14:5923,604282,774,918195,917,27202,265,088
20Jun 6, 2024 14:5923,657254,165,313196,355,80502,244,608
21Jun 6, 2024 14:5924,004277,635,096199,234,12002,244,608