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 listApr 16, 2024 15:52Matt StuchlikMatt StuchlikScore: 12,315Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 15:5211,990169,629,49199,513,42702,277,376
2Apr 16, 2024 15:5212,004171,672,61599,630,84802,269,184
3Apr 16, 2024 15:5212,064162,789,990100,133,45902,281,472
4Apr 16, 2024 15:5212,265127,039,14099,804,0001,996,0002,285,568
5Apr 16, 2024 15:5212,300124,774,131100,085,0002,001,0002,285,568
6Apr 16, 2024 15:5212,308127,314,135100,151,0002,003,0002,285,568
7Apr 16, 2024 15:5212,315128,550,378100,207,0002,004,0002,519,040
8Apr 16, 2024 15:5212,323125,171,040100,274,0002,005,0002,531,328
9Apr 16, 2024 15:5212,330124,381,467100,334,0002,006,0002,273,280
10Apr 16, 2024 15:5212,387133,969,082100,816,0001,996,0002,285,568
11Apr 16, 2024 15:5212,396128,096,559100,892,0001,997,0002,285,568
12Apr 16, 2024 15:5212,422131,286,551101,098,0002,001,0002,285,568