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 02:48Steve HanSteve HanError
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 02:4900000Error: expected "53683054517097447 ", got "53371250535418087 "
2Apr 27, 2024 02:5232,625333,679,492270,788,90902,174,976
3Apr 27, 2024 02:5232,644335,308,450270,946,17702,289,664
4Apr 27, 2024 02:5232,733356,286,676271,680,81602,293,760
5Apr 27, 2024 02:5033,351334,628,510276,814,84502,285,568
6Apr 27, 2024 02:5033,371342,619,819276,978,69202,297,856
7Apr 27, 2024 02:5033,778335,891,691280,353,77102,293,760
8Apr 27, 2024 02:4838,062378,380,767315,914,26002,306,048
9Apr 27, 2024 02:4838,108375,861,310316,296,61202,301,952
10Apr 27, 2024 02:4838,234383,937,547317,344,32802,174,976