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 listAug 23, 2023 16:42matsuoka-601matsuoka-601Score: 9,687Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2023 16:428,72095,464,04770,367,0002,010,0002,260,992
2Aug 23, 2023 16:428,744101,296,49871,566,0001,007,0002,285,568
3Aug 23, 2023 16:428,85697,274,45172,501,0001,006,0002,285,568
4Aug 23, 2023 16:429,439110,714,63178,345,00002,277,376
5Aug 23, 2023 16:429,509142,526,11478,923,26702,277,376
6Aug 23, 2023 16:429,590112,335,41778,588,0001,007,0002,519,040
7Aug 23, 2023 16:429,619113,669,59177,843,0001,995,0002,285,568
8Aug 23, 2023 16:429,687106,591,57279,401,0001,005,0002,285,568
9Aug 23, 2023 16:429,702110,389,76179,524,0001,006,0002,285,568
10Aug 23, 2023 16:429,714108,679,35679,623,0001,007,0002,285,568
11Aug 23, 2023 16:429,778103,907,54979,157,0002,003,0002,285,568
12Aug 23, 2023 16:429,911153,891,58882,258,59502,269,184
13Aug 23, 2023 16:429,959153,538,30382,662,36002,281,472
14Aug 23, 2023 16:4210,319118,838,50784,637,0001,007,0002,260,992
15Aug 23, 2023 16:4212,775134,800,308104,029,0002,000,0002,285,568