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 6, 2023 19:07AliAliError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2023 19:0700000Error: expected "53681146887889536 ", got "33905219 308795047 242997183 1016587276 1468432520 194963675 1582658353 794018246 740007456 1691474349 83541295 50000000 53681146887889536 "
2Aug 6, 2023 19:0700000Error: expected "53690613499499674 ", got "1682142490 148691362 1579940310 1514419185 1903033916 1396576156 1467661634 138281371 483365877 643671139 311784046 50000000 53690613499499674 "
3Aug 6, 2023 19:0700000Error: expected "53681287190138575 ", got "2059550474 1381778486 454302891 1868072366 1367686651 1866392594 1364930114 782731076 1343426719 1139784164 337881206 50000000 53681287190138575 "