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 listJun 12, 2023 17:54Dmitry MakarovDmitry MakarovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 17:5600000Error: No answer to stdout. Died or killed?
2Jun 12, 2023 17:5656,977534,392,053472,907,36902,605,056
3Jun 12, 2023 17:5656,980523,783,067472,937,82602,609,152
4Jun 12, 2023 17:5657,046534,286,842473,483,39202,580,480
5Jun 12, 2023 17:5357,104532,651,259473,963,78802,277,376
6Jun 12, 2023 17:5557,122537,505,589474,109,11102,334,720
7Jun 12, 2023 17:5757,152548,874,964474,360,85102,265,088
8Jun 12, 2023 17:5557,171565,231,035474,521,74702,338,816
9Jun 12, 2023 17:5457,201562,936,362474,770,95102,310,144
10Jun 12, 2023 17:5357,211547,993,107474,852,76502,273,280
11Jun 12, 2023 17:5457,216552,815,823474,889,59902,306,048
12Jun 12, 2023 17:5357,271536,841,259475,353,22902,281,472
13Jun 12, 2023 17:5757,284546,563,781475,458,90102,285,568
14Jun 12, 2023 17:5557,285556,428,080475,464,50302,330,624
15Jun 12, 2023 17:5757,316545,846,295475,724,88402,285,568
16Jun 12, 2023 17:5457,469541,474,147476,988,56702,301,952
17Jun 12, 2023 17:5557,659550,812,011478,572,06102,285,568
18Jun 12, 2023 17:5557,664554,655,462478,612,00802,297,856
19Jun 12, 2023 17:5557,675549,085,865478,699,57402,289,664
20Jun 12, 2023 17:5457,788544,460,644479,638,16802,203,648
21Jun 12, 2023 17:5457,829539,692,640479,984,20402,195,456
22Jun 12, 2023 17:5457,829546,554,398479,981,88302,203,648