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 10, 2024 22:16Matt StuchlikMatt StuchlikScore: 30,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 22:1624,669271,075,533204,751,24002,285,568
2Apr 10, 2024 22:1624,669263,478,798204,750,90902,289,664
3Apr 10, 2024 22:1624,752260,529,237205,439,13902,297,856
4Apr 10, 2024 22:1630,187279,223,816249,548,0001,002,0002,269,184
5Apr 10, 2024 22:1630,508275,904,839251,217,0002,001,0002,273,280
6Apr 10, 2024 22:1630,516278,837,680251,284,0002,002,0002,285,568
7Apr 10, 2024 22:1630,529280,760,175252,390,0001,001,0002,285,568
8Apr 10, 2024 22:1630,533282,101,216253,422,00002,277,376
9Apr 10, 2024 22:1630,540277,066,931252,478,0001,001,0002,285,568
10Apr 10, 2024 22:1630,548284,894,289252,548,0001,002,0002,285,568
11Apr 10, 2024 22:1630,555282,327,567252,603,0001,002,0002,285,568
12Apr 10, 2024 22:1630,598280,381,698251,966,0001,999,0002,273,280