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 14:44matsuoka-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 15:0200000Error: expected "53681688913281445 ", got "63216599238426071"
2Jun 6, 2024 14:5200000Error: expected "53687711066058790 ", got "80064088439028290"
3Jun 6, 2024 14:4600000Error: expected "53689457008004054 ", got "53689454587573806"
4Jun 6, 2024 14:4500000Error: expected "53686583287369209 ", got "53686580866938961"
5Jun 6, 2024 14:4400000Error: expected "53690503292200791 ", got "53690500871770543"
6Jun 6, 2024 15:0322,691244,489,819188,332,53802,248,704
7Jun 6, 2024 15:0322,714243,592,495188,528,19002,248,704
8Jun 6, 2024 15:0322,724248,258,267188,607,52802,248,704
9Jun 6, 2024 15:0322,749250,281,068188,813,62702,244,608
10Jun 6, 2024 14:4522,773257,535,265189,012,77202,248,704
11Jun 6, 2024 14:4422,844244,917,112189,603,12002,236,416
12Jun 6, 2024 14:4422,877242,546,715189,877,12002,252,800
13Jun 6, 2024 15:0322,930253,851,662190,317,85602,240,512
14Jun 6, 2024 14:4423,319252,887,243193,550,77502,248,704
15Jun 6, 2024 15:0323,494256,367,781195,001,54602,248,704
16Jun 6, 2024 14:4523,512258,197,046195,150,38502,240,512
17Jun 6, 2024 14:4528,155295,423,422233,685,16702,248,704