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 listJul 20, 2022 16:26Robert BurkeRobert BurkeScore: 8,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:268,13188,022,45867,491,00002,277,376
2Jul 20, 2022 16:268,13888,934,27766,541,0001,008,0002,273,280
3Jul 20, 2022 16:268,14290,340,07966,584,000993,0002,428,928
4Jul 20, 2022 16:268,14693,342,23267,615,00002,277,376
5Jul 20, 2022 16:268,14791,897,10167,624,00002,277,376
6Jul 20, 2022 16:268,15294,292,74066,651,0001,009,0002,539,520
7Jul 20, 2022 16:268,15693,160,59566,688,0001,010,0002,277,376
8Jul 20, 2022 16:268,16989,526,42465,812,0001,994,0002,428,928
9Jul 20, 2022 16:268,17097,110,52266,816,000997,0002,277,376
10Jul 20, 2022 16:268,17599,768,47166,859,000997,0002,277,376
11Jul 20, 2022 16:268,17690,852,91466,860,000997,0002,519,040
12Jul 20, 2022 16:268,18789,675,48466,951,000999,0002,539,520
13Jul 20, 2022 16:269,716140,333,25080,640,46002,174,976
14Jul 20, 2022 16:269,718146,388,70980,660,11402,170,880
15Jul 20, 2022 16:269,725148,962,55080,717,64502,252,800