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 19:44Joad NacerJoad NacerScore: 7,950Success
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 19:447,647130,304,46463,472,56302,273,280
2Jun 4, 2024 19:447,656121,869,13063,548,02202,265,088
3Jun 4, 2024 19:447,864133,669,73465,270,29302,273,280
4Jun 4, 2024 19:447,94190,690,35863,910,0001,997,0002,281,472
5Jun 4, 2024 19:447,94386,790,34863,930,0001,997,0002,277,376
6Jun 4, 2024 19:447,94591,554,81864,946,000999,0002,265,088
7Jun 4, 2024 19:447,94889,747,75663,971,0001,999,0002,269,184
8Jun 4, 2024 19:447,95092,653,51563,990,0001,999,0002,269,184
9Jun 4, 2024 19:447,95093,792,40963,990,0001,999,0002,281,472
10Jun 4, 2024 19:447,95191,994,96463,992,0001,999,0002,281,472
11Jun 4, 2024 19:447,97689,302,48865,197,0001,003,0002,265,088
12Jun 4, 2024 19:448,23890,099,40368,372,00002,281,472
13Jun 4, 2024 19:448,891104,876,32172,797,000997,0002,281,472
14Jun 4, 2024 19:448,905100,811,96872,913,000998,0002,523,136
15Jun 4, 2024 19:448,92397,713,08672,062,0002,001,0002,273,280