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 31, 2022 13:52Yuriy 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 31, 2022 13:5200000Error: expected "53680517066161911 ", got "53680491466161911 "
2Jul 31, 2022 13:527,651129,044,30463,506,78902,228,224
3Jul 31, 2022 13:527,65784,286,61660,524,0003,026,0002,306,048
4Jul 31, 2022 13:527,69188,996,55758,848,0004,987,0002,510,848
5Jul 31, 2022 13:527,70791,811,83760,974,0002,998,0002,506,752
6Jul 31, 2022 13:527,70890,122,25661,975,0001,999,0002,412,544
7Jul 31, 2022 13:527,71386,314,82262,017,0002,000,0002,310,144
8Jul 31, 2022 13:527,71387,595,08959,020,0005,001,0002,510,848
9Jul 31, 2022 13:527,71486,400,50458,021,0006,002,0002,289,664
10Jul 31, 2022 13:527,729116,383,27164,147,75002,224,128
11Jul 31, 2022 13:527,734122,853,02664,192,10502,248,704
12Jul 31, 2022 13:527,75390,368,87459,320,0005,027,0002,318,336
13Jul 31, 2022 13:527,89792,183,70463,528,0002,016,0002,322,432