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 3, 2024 04:23GraceGraceScore: 6,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 04:236,08976,819,79949,532,0001,010,0002,273,280
2Jun 3, 2024 04:236,10479,484,54449,647,0001,013,0002,392,064
3Jun 3, 2024 04:236,12478,239,32448,835,0001,993,0002,273,280
4Jun 3, 2024 04:236,12772,778,03248,864,0001,994,0002,396,160
5Jun 3, 2024 04:236,12781,065,93148,863,0001,994,0002,273,280
6Jun 3, 2024 04:236,13172,566,02350,890,00002,404,352
7Jun 3, 2024 04:236,13175,452,78548,889,0001,995,0002,400,256
8Jun 3, 2024 04:236,13879,422,36249,945,000998,0002,273,280
9Jun 3, 2024 04:236,14772,839,36850,023,0001,000,0002,387,968
10Jun 3, 2024 04:236,14877,044,72450,032,0001,000,0002,400,256
11Jun 3, 2024 04:236,24782,699,23651,853,00002,273,280
12Jun 3, 2024 04:236,26278,835,38049,977,0001,999,0002,273,280
13Jun 3, 2024 04:236,380114,204,40352,953,46102,289,664
14Jun 3, 2024 04:236,398111,398,83453,099,59902,277,376
15Jun 3, 2024 04:236,408117,738,79253,188,56802,281,472