結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
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-1 and month <= p+q-1):
            m -= n
        #print(m)
        if m <= 0:
            print(cnt, '  (break)')
            break
0