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 listJun 4, 2024 03:46GraceGraceScore: 5,352Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 03:465,11663,115,20841,455,0001,011,0002,273,280
2Jun 4, 2024 03:465,12066,263,37742,496,00002,273,280
3Jun 4, 2024 03:465,12569,487,98641,523,0001,012,0002,400,256
4Jun 4, 2024 03:465,12765,112,81642,550,00002,273,280
5Jun 4, 2024 03:465,12971,958,62341,557,0001,013,0002,273,280
6Jun 4, 2024 03:465,13469,938,70341,597,0001,014,0002,396,160
7Jun 4, 2024 03:465,13471,570,11941,599,0001,014,0002,392,064
8Jun 4, 2024 03:465,13570,144,95641,604,0001,014,0002,404,352
9Jun 4, 2024 03:465,16071,536,27940,837,0001,992,0002,273,280
10Jun 4, 2024 03:465,352118,958,05344,417,66002,281,472
11Jun 4, 2024 03:465,359119,236,01244,483,13502,281,472
12Jun 4, 2024 03:465,364111,187,21844,519,00302,289,664
13Jun 4, 2024 03:465,371111,107,25744,579,94702,289,664
14Jun 4, 2024 03:465,375130,510,03344,611,47702,277,376
15Jun 4, 2024 03:465,385115,457,83244,696,66002,277,376
16Jun 4, 2024 03:466,03373,409,42248,068,0002,002,0002,273,280
17Jun 4, 2024 03:466,04374,923,38049,153,0001,003,0002,396,160
18Jun 4, 2024 03:466,04475,934,58650,166,00002,273,280