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 30, 2021 21:28Yuriy 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
1Jun 30, 2021 21:2800000Error: expected "53688993063362485 ", got "53688993063362229 "
2Jun 30, 2021 21:2814,476430,782,258120,154,57002,265,088
3Jun 30, 2021 21:2814,481440,110,140120,193,26002,260,992
4Jun 30, 2021 21:2814,488428,454,756120,252,74702,273,280
5Jun 30, 2021 21:2814,707398,057,799121,065,0001,000,0002,260,992
6Jun 30, 2021 21:2814,708391,175,518120,077,0002,001,0002,260,992
7Jun 30, 2021 21:2814,709398,878,368121,085,0001,000,0002,392,064
8Jun 30, 2021 21:2814,711398,399,107122,105,00002,260,992
9Jun 30, 2021 21:2814,719393,255,408121,167,0001,001,0002,392,064
10Jun 30, 2021 21:2814,719395,894,618121,166,0001,001,0002,260,992
11Jun 30, 2021 21:2814,728395,197,372122,245,00002,387,968
12Jun 30, 2021 21:2814,738394,784,750122,326,00002,260,992
13Jun 30, 2021 21:2814,738397,285,645121,323,0001,002,0002,392,064