結果

問題 No.740 幻の木
ユーザー kawacchukawacchu
提出日時 2019-10-10 19:49:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 7,920 KB
最終ジャッジ日時 2023-08-14 01:49:03
合計ジャッジ時間 1,469 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,732 KB
testcase_01 AC 16 ms
7,920 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,792 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,780 KB
testcase_06 WA -
testcase_07 AC 15 ms
7,848 KB
testcase_08 AC 14 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,P,Q = map(int,input().split())

ans = 0
c = 0
while N > 0 :
    ans += 1
    c += 1
    if c > 12 :
        c -= 12
    if P <= c <= Q :
        N -= 2*M
    else :
        N -= M
print(ans)
0