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 02:18zielajzielajError
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 02:1700000Error: expected "53691270046801927 ", got "53691263297588642 "stderr
2Nov 20, 2024 02:153,52051,580,13427,203,0002,015,0002,387,968
3Nov 20, 2024 02:153,52250,998,80927,215,0002,015,0002,383,872
4Nov 20, 2024 02:183,52648,749,65027,248,0002,018,0002,383,872
5Nov 20, 2024 02:183,53249,110,80528,303,0001,010,0002,527,232
6Nov 20, 2024 02:153,53549,147,95128,326,0001,011,0002,387,968
7Nov 20, 2024 02:183,54555,557,33028,411,0001,014,0002,527,232
8Nov 20, 2024 02:153,67550,891,53029,483,0001,016,0002,277,376
9Nov 20, 2024 02:153,68459,099,63729,558,0001,019,0002,392,064
10Nov 20, 2024 02:183,68859,436,47129,589,0001,020,0002,531,328
11Nov 20, 2024 02:183,71354,762,94529,826,000994,0002,498,560
12Nov 20, 2024 02:183,71654,173,11829,847,000994,0002,400,256
13Nov 20, 2024 02:153,71754,119,35128,857,0001,990,0002,531,328