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 18:51Sergey SamokhvalovSergey SamokhvalovScore: 27,254Success
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 18:5127,128253,049,175165,119,00060,043,0002,396,160
2Jul 3, 2021 18:5127,177281,162,336225,568,60102,248,704
3Jul 3, 2021 18:5127,184303,560,042225,631,10302,244,608
4Jul 3, 2021 18:5127,219255,508,793165,937,00059,977,0002,523,136
5Jul 3, 2021 18:5127,228310,630,859225,994,39302,244,608
6Jul 3, 2021 18:5127,246252,809,405160,098,00066,040,0002,383,872
7Jul 3, 2021 18:5127,254251,147,616169,155,00057,052,0002,392,064
8Jul 3, 2021 18:5127,343250,458,952164,963,00061,986,0002,523,136
9Jul 3, 2021 18:5127,347255,934,091171,986,00054,995,0002,265,088
10Jul 3, 2021 18:5127,458257,635,376170,927,00056,975,0002,392,064
11Jul 3, 2021 18:5127,491257,463,649174,136,00054,042,0002,260,992
12Jul 3, 2021 18:5127,514249,580,409173,279,00055,088,0002,523,136