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 3, 2021 21:43Sergey SamokhvalovSergey SamokhvalovScore: 26,840Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2021 21:4326,689253,606,030159,372,00062,145,0002,392,064
2Jul 3, 2021 21:4326,706259,771,256221,662,84702,220,032
3Jul 3, 2021 21:4326,743261,929,188221,964,78102,215,936
4Jul 3, 2021 21:4326,784243,820,299159,223,00063,088,0002,265,088
5Jul 3, 2021 21:4326,795273,729,522222,402,12102,224,128
6Jul 3, 2021 21:4326,838256,286,589173,811,00048,946,0002,396,160
7Jul 3, 2021 21:4326,840251,691,774161,559,00061,212,0002,523,136
8Jul 3, 2021 21:4326,861250,581,487171,956,00050,987,0002,523,136
9Jul 3, 2021 21:4326,881251,726,630164,081,00059,029,0002,379,776
10Jul 3, 2021 21:4326,887245,858,539168,125,00055,041,0002,265,088
11Jul 3, 2021 21:4326,979248,909,187185,940,00037,987,0002,396,160
12Jul 3, 2021 21:4327,096252,795,391168,920,00055,973,0002,392,064