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 20, 2023 17:28gchebanovgchebanovScore: 16,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 17:2816,784166,333,660128,287,00011,024,0002,322,432
2Jul 20, 2023 17:2816,785162,177,402127,290,00012,027,0002,506,752
3Jul 20, 2023 17:2816,791163,803,688119,316,00020,053,0002,445,312
4Jul 20, 2023 17:2816,799165,318,565122,376,00017,052,0002,445,312
5Jul 20, 2023 17:2816,816172,559,875125,514,00014,057,0002,375,680
6Jul 20, 2023 17:2816,835167,542,998124,762,00014,971,0002,318,336
7Jul 20, 2023 17:2816,839168,385,636126,783,00012,977,0002,441,216
8Jul 20, 2023 17:2816,840170,059,434121,798,00017,970,0002,273,280
9Jul 20, 2023 17:2816,842211,483,415139,792,12702,199,552
10Jul 20, 2023 17:2816,854163,842,568127,897,00011,990,0002,441,216
11Jul 20, 2023 17:2816,876226,946,119140,069,58702,195,456
12Jul 20, 2023 17:2816,890200,301,283140,183,71502,203,648