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 16:33Jack FrigaardJack FrigaardScore: 4,921Success
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 16:334,819111,015,08439,998,09802,199,552
2Jan 1, 2023 16:334,82298,178,58340,020,00002,195,456
3Jan 1, 2023 16:334,848114,888,59740,235,35102,215,936
4Jan 1, 2023 16:334,91671,972,28138,816,0001,990,0002,523,136
5Jan 1, 2023 16:334,91766,045,20837,825,0002,986,0002,465,792
6Jan 1, 2023 16:334,91871,636,28638,831,0001,991,0002,523,136
7Jan 1, 2023 16:334,92065,795,68439,840,000996,0002,318,336
8Jan 1, 2023 16:334,92169,262,34438,799,0002,042,0002,523,136
9Jan 1, 2023 16:334,92562,179,81338,885,0001,994,0002,453,504
10Jan 1, 2023 16:334,94364,183,85639,028,0002,001,0002,523,136
11Jan 1, 2023 16:334,94465,585,82539,037,0002,001,0002,449,408
12Jan 1, 2023 16:334,94766,482,09139,061,0002,003,0002,523,136
13Jan 1, 2023 16:334,95266,138,55138,095,0003,007,0002,523,136
14Jan 1, 2023 16:334,96971,066,75538,226,0003,017,0002,523,136
15Jan 1, 2023 16:334,97065,809,91638,237,0003,018,0002,453,504