結果
| 問題 | No.740 幻の木 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-23 20:33:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 394 ms / 2,000 ms |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-10-10 21:08:56 |
| 合計ジャッジ時間 | 1,748 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
from decimal import *
N,M,P,Q = map(int,input().split())
count = 0
current=1
while(N > 0):
if(current == 13):
current = 1
if P <= current <= P+Q-1:
N = N -2*M
count += 1
current += 1
else:
N = N-M
count += 1
current += 1
print(count)