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 listNov 10, 2023 09:26matsuoka-601matsuoka-601Score: 10,046Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2023 09:2610,000106,059,73081,004,0002,000,0002,285,568
2Nov 10, 2023 09:2610,011106,897,15181,093,0002,002,0002,527,232
3Nov 10, 2023 09:2610,016105,856,48282,132,0001,001,0002,285,568
4Nov 10, 2023 09:2610,017108,868,38382,144,0001,001,0002,285,568
5Nov 10, 2023 09:2610,019107,436,35882,160,0001,001,0002,285,568
6Nov 10, 2023 09:2610,026108,481,99481,213,0002,005,0002,285,568
7Nov 10, 2023 09:2610,030109,825,15182,247,0001,003,0002,285,568
8Nov 10, 2023 09:2610,046112,967,22482,376,0001,004,0002,277,376
9Nov 10, 2023 09:2610,558115,044,54986,628,0001,007,0002,269,184
10Nov 10, 2023 09:2610,929116,353,52089,706,0001,007,0002,260,992
11Nov 10, 2023 09:2610,954118,233,82788,922,0001,998,0002,523,136
12Nov 10, 2023 09:2611,607124,106,60696,338,00002,277,376
13Nov 10, 2023 09:2611,868152,259,25798,501,22702,289,664
14Nov 10, 2023 09:2611,877161,716,24198,580,11902,281,472
15Nov 10, 2023 09:2612,017158,367,14799,737,50402,285,568