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 listAug 24, 2023 03:06matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2023 03:1900000Error: expected "53690209466227462 ", got "53690209466227206 "stderr
2Aug 24, 2023 03:069,069138,051,34975,273,09002,277,376
3Aug 24, 2023 03:069,342130,115,47577,534,60202,273,280
4Aug 24, 2023 03:069,360131,782,62277,691,37402,273,280
5Aug 24, 2023 03:199,400154,430,80078,022,52502,277,376
6Aug 24, 2023 03:199,496155,358,94978,814,60802,269,184
7Aug 24, 2023 03:1910,015146,725,03983,127,93802,285,568