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 listSep 5, 2021 09:56Sergey StreminSergey StreminScore: 26,689Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2021 09:5626,436275,982,357219,416,12002,236,416
2Sep 5, 2021 09:5626,444276,525,263219,482,04202,224,128
3Sep 5, 2021 09:5626,444292,323,614219,487,68002,232,320
4Sep 5, 2021 09:5626,449281,089,034219,526,41702,228,224
5Sep 5, 2021 09:5626,480290,323,706219,784,82302,240,512
6Sep 5, 2021 09:5626,504273,380,806219,980,34802,220,032
7Sep 5, 2021 09:5626,648243,619,823219,178,0002,001,0002,371,584
8Sep 5, 2021 09:5626,658242,197,927221,265,00002,281,472
9Sep 5, 2021 09:5626,667244,108,084220,336,0001,001,0002,367,488
10Sep 5, 2021 09:5626,672243,892,678221,377,00002,281,472
11Sep 5, 2021 09:5626,682250,903,966221,458,00002,281,472
12Sep 5, 2021 09:5626,687251,176,217219,506,0001,995,0002,465,792
13Sep 5, 2021 09:5626,689247,493,967220,516,0001,002,0002,281,472
14Sep 5, 2021 09:5626,723247,373,723219,802,0001,998,0002,281,472
15Sep 5, 2021 09:5626,757245,370,363220,079,0002,000,0002,371,584
16Sep 5, 2021 09:5626,761246,577,324221,119,0001,000,0002,367,488
17Sep 5, 2021 09:5626,780243,482,989220,275,0002,002,0002,367,488
18Sep 5, 2021 09:5626,800247,405,000222,439,00002,281,472
19Sep 5, 2021 09:5626,870245,102,076222,021,0001,000,0002,281,472
20Sep 5, 2021 09:5629,287264,301,658241,081,0002,000,0002,281,472
21Sep 5, 2021 09:5629,320265,023,797243,355,00002,281,472
22Sep 5, 2021 09:5629,320269,285,123242,359,0001,001,0002,281,472
23Sep 5, 2021 09:5629,327272,049,127243,411,00002,375,680
24Sep 5, 2021 09:5629,333271,697,423243,464,00002,367,488