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 03:13Steve 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 03:1300000Error: expected "53682878935868978 ", got "53682878935868722 "
2Apr 27, 2024 03:1453,160510,921,418441,231,16702,301,952
3Apr 27, 2024 03:1453,170507,337,746441,308,16602,301,952
4Apr 27, 2024 03:1353,214500,999,622441,678,31302,306,048
5Apr 27, 2024 03:1353,248511,785,970441,954,72902,297,856
6Apr 27, 2024 03:1353,264508,439,800442,092,03502,297,856
7Apr 27, 2024 03:1453,308503,857,229442,454,79902,179,072