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 listApr 12, 2024 12:01Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2024 12:0000000Error: expected "53691820869373729 ", got "53691820869373473 "
2Apr 12, 2024 12:0116,799218,734,563139,434,12102,285,568
3Apr 12, 2024 12:0116,806216,344,704139,486,05102,301,952
4Apr 12, 2024 12:0116,812209,960,114139,538,91902,293,760
5Apr 12, 2024 12:0117,100164,295,446139,933,0001,999,0002,273,280
6Apr 12, 2024 12:0117,105168,567,825139,974,0001,999,0002,285,568
7Apr 12, 2024 12:0117,110164,954,639141,009,0001,000,0002,269,184
8Apr 12, 2024 12:0117,110167,632,483141,010,0001,000,0002,285,568
9Apr 12, 2024 12:0117,110164,734,218141,016,0001,000,0002,273,280
10Apr 12, 2024 12:0117,112167,506,886140,026,0002,000,0002,277,376
11Apr 12, 2024 12:0117,113169,060,906141,042,0001,000,0002,277,376
12Apr 12, 2024 12:0117,115166,067,594140,058,0002,000,0002,285,568
13Apr 12, 2024 12:0117,118169,949,860140,079,0002,001,0002,285,568