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 2, 2024 14:16GraceGraceScore: 7,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 14:167,81392,780,04363,855,000997,0002,400,256
2Jun 2, 2024 14:167,83389,145,46664,012,0001,000,0002,273,280
3Jun 2, 2024 14:167,84692,976,84864,117,0001,001,0002,273,280
4Jun 2, 2024 14:167,85686,657,29263,202,0002,006,0002,273,280
5Jun 2, 2024 14:167,86187,871,40363,239,0002,007,0002,400,256
6Jun 2, 2024 14:167,86290,641,82464,250,0001,003,0002,400,256
7Jun 2, 2024 14:167,86689,201,11064,284,0001,004,0002,396,160
8Jun 2, 2024 14:167,86984,202,40965,310,00002,273,280
9Jun 2, 2024 14:167,86989,669,79164,309,0001,004,0002,400,256
10Jun 2, 2024 14:167,88193,050,54865,409,00002,273,280
11Jun 2, 2024 14:168,04693,329,89164,791,0001,993,0002,273,280
12Jun 2, 2024 14:168,07588,313,97166,021,0001,000,0002,273,280
13Jun 2, 2024 14:169,112138,793,06475,626,82202,285,568
14Jun 2, 2024 14:169,155146,662,94675,985,33502,281,472
15Jun 2, 2024 14:169,196145,889,15176,327,06902,285,568