結果
問題 | No.740 幻の木 |
ユーザー | ddsyg1 |
提出日時 | 2019-01-15 10:26:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 87,120 KB |
実行使用メモリ | 76,220 KB |
最終ジャッジ日時 | 2023-09-06 13:24:12 |
合計ジャッジ時間 | 1,647 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 73 ms
71,088 KB |
testcase_02 | AC | 73 ms
71,324 KB |
testcase_03 | AC | 72 ms
71,248 KB |
testcase_04 | WA | - |
testcase_05 | AC | 73 ms
71,240 KB |
testcase_06 | WA | - |
testcase_07 | AC | 71 ms
71,620 KB |
testcase_08 | AC | 70 ms
71,332 KB |
ソースコード
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