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 10, 2024 18:28Joad NacerJoad NacerScore: 7,919Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2024 18:287,595131,661,12363,035,80402,269,184
2Jun 10, 2024 18:287,612131,388,72263,180,83702,273,280
3Jun 10, 2024 18:287,701124,456,15363,916,71002,404,352
4Jun 10, 2024 18:287,89689,484,11864,529,0001,008,0002,265,088
5Jun 10, 2024 18:287,89987,863,42664,555,0001,008,0002,273,280
6Jun 10, 2024 18:287,90898,674,33064,626,0001,009,0002,273,280
7Jun 10, 2024 18:287,91090,622,87364,645,0001,010,0002,273,280
8Jun 10, 2024 18:287,91987,317,13164,735,000995,0002,285,568
9Jun 10, 2024 18:287,92897,776,16464,806,000997,0002,277,376
10Jun 10, 2024 18:287,92892,812,22063,808,0001,994,0002,285,568
11Jun 10, 2024 18:287,93290,117,82164,835,000997,0002,355,200
12Jun 10, 2024 18:287,96399,879,54465,095,0001,001,0002,273,280
13Jun 10, 2024 18:288,790100,858,49471,958,000999,0002,269,184
14Jun 10, 2024 18:288,834100,426,90071,311,0002,008,0002,269,184
15Jun 10, 2024 18:288,84997,304,61172,444,0001,006,0002,285,568