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 20, 2024 14:56Huy Duc LeHuy Duc LeScore: 14,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 14:5614,067143,084,272114,764,0001,995,0002,273,280
2Feb 20, 2024 14:5614,072141,405,900114,800,0001,996,0002,273,280
3Feb 20, 2024 14:5614,163143,271,600116,546,0001,004,0002,506,752
4Feb 20, 2024 14:5614,199146,045,553115,856,0001,997,0002,273,280
5Feb 20, 2024 14:5614,202149,635,239115,883,0001,997,0002,273,280
6Feb 20, 2024 14:5614,205141,503,678114,905,0002,997,0002,510,848
7Feb 20, 2024 14:5614,212150,790,297114,962,0002,999,0002,273,280
8Feb 20, 2024 14:5614,216147,894,710114,996,0002,999,0002,273,280
9Feb 20, 2024 14:5614,314150,502,841114,812,0003,993,0002,273,280
10Feb 20, 2024 14:5616,283196,021,590135,152,96002,297,856
11Feb 20, 2024 14:5616,292207,577,734135,223,36202,301,952
12Feb 20, 2024 14:5616,580209,808,658137,617,83102,293,760