Safe Landing Problem 165

Back to Problem Solutions forum

Igor Shapovalov     2020-11-13 02:43:16

I get correct results with first example(where if fuel=0 every time), but incorrect with second example(it give me 2007 m\s). I think that problem in dv formula, but i can't find it. Help me please.

UPDATE: I solved my problem with some strange thing. We have dt=0.1, commands about fuel every 10 seconds, and fuel at 0.1 must be calculated like if fuel=100 then FuelPerDt=100/10*0.1=1 kg per 0.1 sec.

But i could solve this problem only when I did FuelPerDt=100*0.1=10 per 0.1 second (that incorrect). Is it problem with my understanding or with checker? It's late night so my brains can bad understand situation, but i checked it 10 times before posting :)

https://www.codeabbey.com/index/task_solution?task=safe-landing&user=karrikatyralst&lang=C%2FC%2B%2B My solving

Igor Shapovalov     2020-11-13 11:12:38

Oh, I read, this is settings for each second, sorry fo my mistake

Please login and solve 5 problems to be able to post at forum