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 16, 2022 05: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 16, 2022 05:5500000Error: expected "53690696532751228 ", got "53690696530191228 "
2Jul 16, 2022 05:5211,242116,698,42592,309,0001,003,0002,277,376
3Jul 16, 2022 05:5211,249120,016,26592,362,0001,003,0002,285,568
4Jul 16, 2022 05:5211,253116,984,33392,399,0001,004,0002,285,568
5Jul 16, 2022 05:5211,254120,561,48793,408,00002,285,568
6Jul 16, 2022 05:5211,255117,185,50892,416,0001,004,0002,277,376
7Jul 16, 2022 05:5211,257119,671,80892,427,0001,004,0002,285,568
8Jul 16, 2022 05:5211,494122,826,85395,401,00002,285,568
9Jul 16, 2022 05:5211,499117,792,86494,437,0001,004,0002,277,376
10Jul 16, 2022 05:5211,507121,891,93495,507,00002,285,568
11Jul 16, 2022 05:5211,743161,706,63897,466,26802,273,280
12Jul 16, 2022 05:5211,760158,726,61797,607,64602,269,184
13Jul 16, 2022 05:5211,764164,584,39697,639,07802,281,472