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 listAug 22, 2023 11:38matsuoka-601matsuoka-601Score: 11,181Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 22, 2023 11:3810,290110,255,75983,402,0002,009,0002,285,568
2Aug 22, 2023 11:3810,347113,045,48683,879,0001,997,0002,265,088
3Aug 22, 2023 11:3810,440113,619,29785,645,0001,007,0002,285,568
4Aug 22, 2023 11:3811,048151,214,88191,701,29302,277,376
5Aug 22, 2023 11:3811,060152,255,98191,794,10602,273,280
6Aug 22, 2023 11:3811,118152,241,79392,279,36902,256,896
7Aug 22, 2023 11:3811,147115,334,50491,517,0001,005,0002,519,040
8Aug 22, 2023 11:3811,181117,612,75691,806,000997,0002,260,992
9Aug 22, 2023 11:3811,205118,953,58391,002,0002,000,0002,285,568
10Aug 22, 2023 11:3811,221119,135,45691,134,0002,002,0002,519,040
11Aug 22, 2023 11:3811,228122,488,18592,192,0001,002,0002,269,184
12Aug 22, 2023 11:3811,283125,150,56692,644,0001,007,0002,285,568
13Aug 22, 2023 11:3811,360117,363,05293,285,0001,003,0002,285,568
14Aug 22, 2023 11:3811,424125,583,30193,819,000998,0002,265,088
15Aug 22, 2023 11:3811,524122,833,63494,646,0001,006,0002,285,568