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 listMay 9, 2024 21:55Joad NacerJoad NacerScore: 8,288Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:558,24896,188,93668,461,00002,273,280
2May 9, 2024 21:558,25096,556,05067,467,0001,006,0002,269,184
3May 9, 2024 21:558,25393,648,20767,496,0001,007,0002,281,472
4May 9, 2024 21:558,25395,345,08268,504,00002,281,472
5May 9, 2024 21:558,25493,633,05867,502,0001,007,0002,281,472
6May 9, 2024 21:558,26593,839,24068,600,00002,281,472
7May 9, 2024 21:558,26699,168,54568,604,00002,531,328
8May 9, 2024 21:558,28898,945,22367,793,000996,0002,535,424
9May 9, 2024 21:558,29096,237,05367,812,000997,0002,265,088
10May 9, 2024 21:558,363133,310,26069,414,47202,265,088
11May 9, 2024 21:558,379140,107,46169,546,64702,265,088
12May 9, 2024 21:558,512134,271,00870,651,18202,269,184
13May 9, 2024 21:559,115103,082,61874,647,0001,008,0002,269,184
14May 9, 2024 21:559,353104,450,00276,620,0001,008,0002,523,136
15May 9, 2024 21:5510,128110,354,43782,060,0002,001,0002,281,472