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 listJul 16, 2022 17:05Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2022 17:0500000Error: expected "53689714522309354 ", got "53689711962309354 "
2Jul 16, 2022 17:0511,078115,284,55490,946,000999,0002,285,568
3Jul 16, 2022 17:0511,081117,111,27189,970,0001,999,0002,269,184
4Jul 16, 2022 17:0511,090114,949,04391,047,0001,000,0002,277,376
5Jul 16, 2022 17:0511,090115,192,89090,050,0002,001,0002,269,184
6Jul 16, 2022 17:0511,096115,961,71590,093,0002,002,0002,285,568
7Jul 16, 2022 17:0511,099115,426,83391,118,0001,001,0002,285,568
8Jul 16, 2022 17:0511,104120,788,69790,160,0002,003,0002,285,568
9Jul 16, 2022 17:0511,114117,471,26090,244,0002,005,0002,285,568
10Jul 16, 2022 17:0511,362118,975,06493,301,0001,003,0002,285,568
11Jul 16, 2022 17:0511,639161,119,74396,603,01702,277,376
12Jul 16, 2022 17:0511,793166,982,23597,878,72102,273,280
13Jul 16, 2022 17:0511,803155,451,38297,967,07302,273,280