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 listApr 27, 2024 21:57Joad NacerJoad NacerScore: 10,545Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 21:5710,354147,945,21985,937,43302,285,568
2Apr 27, 2024 21:5710,375144,542,12586,113,61302,273,280
3Apr 27, 2024 21:5710,520109,724,21085,307,0002,007,0002,265,088
4Apr 27, 2024 21:5710,532111,042,53987,416,00002,527,232
5Apr 27, 2024 21:5710,542108,816,66086,492,0001,005,0002,285,568
6Apr 27, 2024 21:5710,542114,857,59386,496,0001,005,0002,285,568
7Apr 27, 2024 21:5710,545111,655,89287,521,00002,285,568
8Apr 27, 2024 21:5710,545116,415,75586,521,0001,006,0002,510,848
9Apr 27, 2024 21:5710,550114,700,61986,562,0001,006,0002,519,040
10Apr 27, 2024 21:5710,557117,427,79286,616,0001,007,0002,265,088
11Apr 27, 2024 21:5710,607148,615,64888,039,84502,273,280
12Apr 27, 2024 21:5710,678117,387,06788,627,00002,285,568
13Apr 27, 2024 21:5711,307116,052,13891,852,0001,996,0002,260,992
14Apr 27, 2024 21:5711,486118,077,29194,327,0001,003,0002,285,568
15Apr 27, 2024 21:5711,679121,549,10694,934,0001,998,0002,285,568