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 25, 2023 11:51matsuoka-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 25, 2023 11:5100000Error: expected "53681463205240712 ", got "53681437605240712 "stderr
2Aug 25, 2023 11:5200000Error: expected "53685669244911181 ", got "53685643644911181 "stderr
3Aug 25, 2023 12:0800000Error: expected "53687575795199327 ", got "53687550195199327 "stderr
4Aug 25, 2023 12:0800000Error: expected "53688357744740857 ", got "53688332144740857 "stderr
5Aug 25, 2023 11:518,142131,718,21867,577,45502,269,184
6Aug 25, 2023 11:518,166133,073,57767,778,69502,277,376
7Aug 25, 2023 11:528,166134,049,37867,775,56402,273,280
8Aug 25, 2023 11:528,180132,169,93867,891,43002,277,376
9Aug 25, 2023 12:098,207127,865,05568,114,04102,269,184
10Aug 25, 2023 11:528,210128,061,55468,143,76502,273,280
11Aug 25, 2023 11:518,217130,641,28668,203,81002,265,088
12Aug 25, 2023 12:098,227134,272,53468,281,62502,277,376
13Aug 25, 2023 11:528,272127,124,45768,658,77702,277,376
14Aug 25, 2023 11:528,388137,547,80369,623,82102,273,280
15Aug 25, 2023 12:098,457130,392,59970,196,58102,269,184
16Aug 25, 2023 11:528,485124,887,77970,424,23002,269,184