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:20Steve 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:2000000Error: expected "53680393224079392 ", got "53680393198453792 "
2Apr 27, 2024 03:2032,946329,794,587273,448,35602,301,952
3Apr 27, 2024 03:1932,970331,003,190273,650,12102,306,048
4Apr 27, 2024 03:1932,991329,506,141273,823,77602,301,952
5Apr 27, 2024 03:1933,009341,747,453273,977,71702,297,856
6Apr 27, 2024 03:2033,012331,064,922273,999,04002,301,952
7Apr 27, 2024 03:2033,099338,266,052274,725,21402,297,856