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 listJan 1, 2023 17:39Jack FrigaardJack FrigaardScore: 5,020Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 17:394,804109,753,71939,873,40102,203,648
2Jan 1, 2023 17:394,82498,714,76840,037,74102,211,840
3Jan 1, 2023 17:394,866108,611,84740,390,82602,199,552
4Jan 1, 2023 17:395,01571,693,07038,578,0003,045,0002,523,136
5Jan 1, 2023 17:395,01868,686,88239,615,0002,031,0002,523,136
6Jan 1, 2023 17:395,01872,603,16740,636,0001,015,0002,523,136
7Jan 1, 2023 17:395,01968,678,06539,626,0002,032,0002,523,136
8Jan 1, 2023 17:395,02073,579,32539,631,0002,032,0002,449,408
9Jan 1, 2023 17:395,02965,777,06739,751,0001,987,0002,523,136
10Jan 1, 2023 17:395,03968,563,14539,829,0001,991,0002,523,136
11Jan 1, 2023 17:395,04071,020,80538,841,0002,987,0002,523,136
12Jan 1, 2023 17:395,07066,265,62739,072,0003,005,0002,523,136
13Jan 1, 2023 17:395,07265,326,23539,094,0003,007,0002,523,136
14Jan 1, 2023 17:395,07763,169,00840,134,0002,006,0002,523,136
15Jan 1, 2023 17:395,10362,406,35439,333,0003,025,0002,523,136