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 listJul 19, 2022 20:48Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 20:4800000Error: expected "53691244378793357 ", got "53691244378793101 "
2Jul 19, 2022 20:4818,363176,023,461151,411,0001,002,0002,428,928
3Jul 19, 2022 20:4818,406183,675,284150,763,0002,010,0002,334,720
4Jul 19, 2022 20:4818,410181,177,260150,803,0001,997,0002,433,024
5Jul 19, 2022 20:4818,411176,059,521151,815,000998,0002,363,392
6Jul 19, 2022 20:4818,446180,290,510150,100,0003,002,0002,326,528
7Jul 19, 2022 20:4818,496210,215,939153,517,69602,211,840
8Jul 19, 2022 20:4818,559178,593,326152,039,0002,000,0002,502,656
9Jul 19, 2022 20:4818,582214,596,584154,234,41002,273,280
10Jul 19, 2022 20:4818,858184,207,473155,517,0001,003,0002,392,064
11Jul 19, 2022 20:4818,974219,422,410157,484,88802,224,128
12Jul 19, 2022 20:4819,260185,459,553156,857,0002,997,0002,502,656
13Jul 19, 2022 20:4819,276187,983,716157,989,0001,999,0002,363,392