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 22:35Joad NacerJoad NacerScore: 8,924Success
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 22:358,573135,847,45171,159,82502,269,184
2Apr 27, 2024 22:358,574147,026,68171,165,70102,269,184
3Apr 27, 2024 22:358,791131,271,39372,965,24202,269,184
4Apr 27, 2024 22:358,91594,864,84471,992,0001,999,0002,265,088
5Apr 27, 2024 22:358,91697,308,28973,001,0001,000,0002,285,568
6Apr 27, 2024 22:358,92099,522,30772,036,0002,001,0002,285,568
7Apr 27, 2024 22:358,92196,821,49372,042,0002,001,0002,285,568
8Apr 27, 2024 22:358,92495,975,19073,069,0001,000,0002,265,088
9Apr 27, 2024 22:358,97098,685,02173,448,0001,006,0002,523,136
10Apr 27, 2024 22:359,08497,805,07473,386,0002,010,0002,285,568
11Apr 27, 2024 22:359,104101,424,89875,566,00002,285,568
12Apr 27, 2024 22:359,498106,458,63776,840,0001,995,0002,260,992
13Apr 27, 2024 22:359,983105,949,91180,866,0001,996,0002,285,568
14Apr 27, 2024 22:3510,003104,859,42481,024,0002,000,0002,265,088
15Apr 27, 2024 22:3510,402111,078,47785,337,0001,003,0002,514,944