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 listDec 27, 2024 21:47Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 21:4700000Error: expected "53684052651458265 ", got "53684054371158266 "stderr
2Dec 27, 2024 21:474,31959,738,49035,850,00002,310,144
3Dec 27, 2024 21:474,33956,985,76334,012,0002,000,0002,535,424
4Dec 27, 2024 21:474,34062,061,55835,024,0001,000,0002,293,760
5Dec 27, 2024 21:474,34059,148,09734,023,0002,001,0002,535,424
6Dec 27, 2024 21:474,39856,137,84334,477,0002,028,0002,306,048
7Dec 27, 2024 21:474,40556,758,45434,529,0002,031,0002,531,328
8Dec 27, 2024 21:474,41959,270,86336,675,00002,531,328
9Dec 27, 2024 21:474,46663,608,93436,068,0001,001,0002,273,280
10Dec 27, 2024 21:474,53768,143,37637,660,00002,535,424