結果
| 問題 |
No.740 幻の木
|
| コンテスト | |
| ユーザー |
sobasssy
|
| 提出日時 | 2019-01-07 16:54:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 400 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-24 00:27:46 |
| 合計ジャッジ時間 | 1,393 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 6 |
ソースコード
chars = input().split(" ")
leaves = int(chars[0])
per_lost = int(chars[1])
month_list = []
for x in range(int(chars[2]), int(chars[2]) + int(chars[3])):
month_list.append(x)
counter = 1
while True:
if (counter % 12) in month_list:
leaves -= per_lost * 2
else:
leaves -= per_lost
if leaves <= 0:
print(counter)
break
else:
counter += 1
sobasssy