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 19:18Sergey SamokhvalovSergey SamokhvalovScore: 27,078Success
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 19:1827,009284,426,446224,177,41702,195,456
2Jul 3, 2021 19:1827,012253,612,709177,157,00047,041,0002,371,584
3Jul 3, 2021 19:1827,033270,032,766224,371,31002,195,456
4Jul 3, 2021 19:1827,057250,536,610168,427,00056,142,0002,379,776
5Jul 3, 2021 19:1827,059290,648,608224,590,22402,199,552
6Jul 3, 2021 19:1827,076251,636,780164,803,00059,928,0002,289,664
7Jul 3, 2021 19:1827,078252,732,672178,799,00045,948,0002,379,776
8Jul 3, 2021 19:1827,125245,431,838172,104,00053,032,0002,289,664
9Jul 3, 2021 19:1827,159246,931,769162,303,00063,118,0002,375,680
10Jul 3, 2021 19:1827,178251,282,827170,437,00055,141,0002,289,664
11Jul 3, 2021 19:1827,285254,475,670164,336,00062,127,0002,375,680
12Jul 3, 2021 19:1827,341250,814,713162,948,00063,979,0002,379,776