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 18, 2024 12:41Matt StuchlikMatt StuchlikScore: 14,062Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 12:4111,533173,735,07395,723,71202,236,416
2Apr 18, 2024 12:4111,540171,161,48395,785,37602,232,320
3Apr 18, 2024 12:4111,552164,466,11995,881,37402,224,128
4Apr 18, 2024 12:4113,914138,399,713114,480,0001,004,0002,490,368
5Apr 18, 2024 12:4113,947144,925,991113,768,0001,995,0002,285,568
6Apr 18, 2024 12:4113,975143,144,396113,997,0001,999,0002,285,568
7Apr 18, 2024 12:4114,062137,864,433112,722,0003,990,0002,285,568
8Apr 18, 2024 12:4114,069144,618,581112,783,0003,992,0002,478,080
9Apr 18, 2024 12:4114,070141,672,268114,784,0001,996,0002,486,272
10Apr 18, 2024 12:4114,093138,126,702112,973,0003,999,0002,486,272
11Apr 18, 2024 12:4114,162144,279,000114,530,0003,013,0002,482,176
12Apr 18, 2024 12:4114,163145,541,401113,531,0004,018,0002,478,080