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 22, 2022 02:46zhiayangzhiayangScore: 41,943Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 22, 2022 02:4640,986403,775,338340,183,31302,273,280
2Aug 22, 2022 02:4641,930410,612,300348,016,04502,277,376
3Aug 22, 2022 02:4641,934411,750,901348,051,88002,273,280
4Aug 22, 2022 02:4641,943417,596,254348,125,65302,293,760
5Aug 22, 2022 02:4641,945406,880,911348,147,18102,281,472
6Aug 22, 2022 02:4641,953423,985,645348,206,85402,265,088