結果

問題 No.740 幻の木
ユーザー ddsyg1ddsyg1
提出日時 2019-01-15 10:32:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 75,980 KB
最終ジャッジ日時 2023-09-06 13:50:53
合計ジャッジ時間 1,792 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,392 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 63 ms
71,308 KB
testcase_04 AC 62 ms
71,264 KB
testcase_05 AC 61 ms
71,372 KB
testcase_06 AC 86 ms
75,980 KB
testcase_07 AC 62 ms
71,420 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

m,n,p,q = map(int, input().split())
cnt = 0

while m > 0:
    for month in range(12):
        cnt += 1
        m -= n
        if(month >= p and month <= p+q-1):
            m -= n
        #print(m)
        if m <= 0:
            print(cnt)
            break
0