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 listJun 6, 2024 10:47matsuoka-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
1Jun 6, 2024 10:4700000Error: expected "53691234388034054 ", got "2958399178506332615 1616732804583483490 2213515317553854735 -8715561091773712978 -3888758199931392543 -8830341188460635815 8339884718192740991 -5842962922081252074 -799487219077167872 8684678741725642936 -7853...stderr
2Jun 6, 2024 10:4800000Error: expected "53691180435448243 ", got "-963302511828685139 6395951089877917486 7789977141204464788 3742486891253672814 -6890299174120419698 -7768184219589878271 9081134430977579820 -2919327854713438516 5652879476162099483 3750607525568264135 -53378...stderr
3Jun 6, 2024 10:4800000Error: expected "53679573376219550 ", got "-5119150529140788695 -8088480326957665538 5317779735508126946 443341928342226518 8495637643588319846 6797309132687966873 2006875696974418435 1002085521649289867 6391371187095033546 -4552688510828328398 -321467...stderr