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 listFeb 16, 2024 11:02Huy Duc LeHuy Duc LeScore: 18,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2024 11:0217,650207,556,572146,494,62902,273,280
2Feb 16, 2024 11:0217,664204,715,782146,609,81402,289,664
3Feb 16, 2024 11:0217,671206,521,537146,666,11902,252,800
4Feb 16, 2024 11:0218,409178,871,881151,798,000998,0002,269,184
5Feb 16, 2024 11:0218,409179,221,924151,795,000998,0002,531,328
6Feb 16, 2024 11:0218,410179,897,343150,809,0001,997,0002,285,568
7Feb 16, 2024 11:0218,411182,990,572150,811,0001,997,0002,285,568
8Feb 16, 2024 11:0218,411179,257,205150,811,0001,997,0002,285,568
9Feb 16, 2024 11:0218,418180,675,959150,875,0001,998,0002,285,568
10Feb 16, 2024 11:0218,419181,865,574150,883,0001,998,0002,285,568
11Feb 16, 2024 11:0218,421179,006,343150,900,0001,998,0002,285,568
12Feb 16, 2024 11:0218,432180,207,965152,989,00002,285,568