結果
問題 | No.740 幻の木 |
ユーザー |
![]() |
提出日時 | 2019-10-10 19:54:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 368 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-21 19:53:46 |
合計ジャッジ時間 | 1,210 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
N,M,P,Q = map(int,input().split()) A = [] for i in range(P,P+Q) : A.append(i) ans = 0 c = 0 while N > 0 : ans += 1 if c == 12 : c = 1 else : c += 1 if c in A : N -= 2*M else : N -= M print(ans)