#15359: 範例問題?


hshua (hshua)

學校 : 新北市立林口高級中學
編號 : 52506
來源 : [125.228.147.181]
最後登入時間 :
2024-11-19 08:27:35
c036. 00573 - The Snail -- UVa573 | From: [61.219.36.96] | 發表日期 : 2018-09-30 15:41

範例第三筆測資

50 5 3 14  ---> 答案: failure on day 7

我的測試結果:

H=50 U=5 D=3 H=14

day 1 -> high=5.00 U=5.00
night 1 -> high=2.00 U=4.30

day 2 -> high=6.30 U=4.30
night 2 -> high=3.30 U=3.70

day 3 -> high=7.00 U=3.70
night 3 -> high=4.00 U=3.18

day 4 -> high=7.18 U=3.18
night 4 -> high=4.18 U=2.74

day 5 -> high=6.91 U=2.74
night 5 -> high=3.91 U=2.35

day 6 -> high=6.27 U=2.35
night 6 -> high=3.27 U=2.02

day 7 -> high=5.29 U=2.02
night 7 -> high=2.29 U=1.74

day 8 -> high=4.03 U=1.74
night 8 -> high=1.03 U=1.50

day 9 -> high=2.52 U=1.50
night 9 -> high=-0.48 U=1.29
failure on day 9

請問哪裡錯了???


 
#22893: Re:範例問題?


s10711123@mail2.blsh.tp.edu.tw (Ritsuki)

學校 : 臺北市立百齡高級中學
編號 : 110747
來源 : [101.136.241.255]
最後登入時間 :
2021-02-03 16:26:58
c036. 00573 - The Snail -- UVa573 | From: [101.137.247.191] | 發表日期 : 2020-10-09 11:05

範例第三筆測資

50 5 3 14  ---> 答案: failure on day 7

我的測試結果:

H=50 U=5 D=3 H=14

day 1 -> high=5.00 U=5.00
night 1 -> high=2.00 U=4.30

day 2 -> high=6.30 U=4.30
night 2 -> high=3.30 U=3.70

day 3 -> high=7.00 U=3.70
night 3 -> high=4.00 U=3.18

day 4 -> high=7.18 U=3.18
night 4 -> high=4.18 U=2.74

day 5 -> high=6.91 U=2.74
night 5 -> high=3.91 U=2.35

day 6 -> high=6.27 U=2.35
night 6 -> high=3.27 U=2.02

day 7 -> high=5.29 U=2.02
night 7 -> high=2.29 U=1.74

day 8 -> high=4.03 U=1.74
night 8 -> high=1.03 U=1.50

day 9 -> high=2.52 U=1.50
night 9 -> high=-0.48 U=1.29
failure on day 9

請問哪裡錯了???


U每天都是減U(原本的)*F/100

 
ZeroJudge Forum