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 listJun 10, 2024 18:29Joad NacerJoad NacerScore: 7,943Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2024 18:297,593136,533,75563,023,05402,277,376
2Jun 10, 2024 18:297,609134,208,58963,157,02202,289,664
3Jun 10, 2024 18:297,615141,986,51163,204,58902,265,088
4Jun 10, 2024 18:297,89888,249,20164,546,0001,008,0002,277,376
5Jun 10, 2024 18:297,90092,637,75565,568,00002,285,568
6Jun 10, 2024 18:297,90790,671,12364,620,0001,009,0002,285,568
7Jun 10, 2024 18:297,91397,500,05764,668,0001,010,0002,285,568
8Jun 10, 2024 18:297,94389,107,64663,931,0001,997,0002,285,568
9Jun 10, 2024 18:297,97890,069,60864,215,0002,006,0002,273,280
10Jun 10, 2024 18:297,97993,675,32164,219,0002,006,0002,269,184
11Jun 10, 2024 18:298,33691,950,10167,184,0002,005,0002,273,280
12Jun 10, 2024 18:298,45492,790,55668,167,0002,004,0002,285,568
13Jun 10, 2024 18:298,83095,431,78572,286,0001,003,0002,285,568
14Jun 10, 2024 18:298,83294,747,06671,299,0002,008,0002,285,568
15Jun 10, 2024 18:298,85696,169,19072,502,0001,006,0002,285,568