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 listMay 31, 2024 05:03GraceGraceScore: 5,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 05:035,507111,383,97845,705,07002,281,472
2May 31, 2024 05:035,51195,897,58845,740,48002,273,280
3May 31, 2024 05:035,519113,966,43145,805,07502,281,472
4May 31, 2024 05:035,537115,089,69045,958,90202,289,664
5May 31, 2024 05:035,552114,424,77246,085,07102,281,472
6May 31, 2024 05:035,552107,028,39546,085,17102,281,472
7May 31, 2024 05:035,554103,692,83646,095,78102,285,568
8May 31, 2024 05:035,556111,533,23046,114,34002,281,472
9May 31, 2024 05:035,571119,228,03946,237,74802,273,280
10May 31, 2024 05:035,583112,372,78446,340,90902,281,472
11May 31, 2024 05:035,588110,332,31746,378,29002,277,376
12May 31, 2024 05:035,693116,216,03747,251,61102,285,568
13May 31, 2024 05:035,695107,481,47547,269,70902,289,664
14May 31, 2024 05:035,703123,778,17847,336,21102,273,280
15May 31, 2024 05:035,715109,470,69347,436,06302,281,472