結果
| 問題 | No.740 幻の木 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2018-10-19 14:07:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 253 ms / 2,000 ms |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-17 10:16:47 |
| 合計ジャッジ時間 | 1,386 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
import os
import itertools
N, M, P, Q = map(int, input().split())
ruin = [M for i in range(12)]
for s in range(P-1, Q+P-1):
ruin[s] *= 2
# print(ruin)
for index, e in enumerate(itertools.cycle(ruin)):
N -= e
if N <= 0:
break
print(index+1)
💕💖💞