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 listNov 20, 2024 01:50zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 01:4900000Error: expected "53688499262914094 ", got "53688499262919592 "stderr
2Nov 20, 2024 01:503,49751,569,86527,024,0002,001,0002,527,232
3Nov 20, 2024 01:503,50951,291,77427,113,0002,008,0002,273,280
4Nov 20, 2024 01:503,51052,664,25527,123,0002,009,0002,523,136
5Nov 20, 2024 01:503,51249,204,04627,140,0002,010,0002,379,776
6Nov 20, 2024 01:503,51656,053,80228,179,0001,006,0002,392,064
7Nov 20, 2024 01:503,51952,840,92327,197,0002,014,0002,523,136
8Nov 20, 2024 01:503,52059,545,03027,203,0002,015,0002,527,232
9Nov 20, 2024 01:503,52753,851,13727,252,0002,018,0002,387,968
10Nov 20, 2024 01:503,53048,096,55227,280,0002,020,0002,473,984
11Nov 20, 2024 01:503,65156,466,59329,292,0001,010,0002,277,376
12Nov 20, 2024 01:503,71457,735,30328,840,0001,989,0002,277,376
13Nov 20, 2024 01:503,71652,075,78128,852,0001,989,0002,408,448