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 listOct 22, 2023 21:52sliceteamsliceteamScore: 8,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 21:528,630138,476,77871,625,14402,269,184
2Oct 22, 2023 21:528,632145,374,14371,649,38002,273,280
3Oct 22, 2023 21:528,67698,332,18170,010,0002,000,0002,260,992
4Oct 22, 2023 21:528,68296,664,43770,063,0002,001,0002,260,992
5Oct 22, 2023 21:528,68298,684,60970,063,0002,001,0002,392,064
6Oct 22, 2023 21:528,688102,970,46270,108,0002,003,0002,260,992
7Oct 22, 2023 21:528,68998,780,99970,113,0002,003,0002,387,968
8Oct 22, 2023 21:528,69099,198,45971,128,0001,001,0002,523,136
9Oct 22, 2023 21:528,69297,858,96170,140,0002,004,0002,260,992
10Oct 22, 2023 21:528,69499,641,63271,161,0001,002,0002,506,752
11Oct 22, 2023 21:528,694100,963,20570,159,0002,004,0002,260,992
12Oct 22, 2023 21:528,70993,262,22872,287,00002,519,040
13Oct 22, 2023 21:528,776100,985,51771,847,000997,0002,375,680
14Oct 22, 2023 21:528,816133,981,95673,172,41402,240,512
15Oct 22, 2023 21:528,89696,577,61971,844,0001,995,0002,482,176