結果
問題 | No.740 幻の木 |
ユーザー |
![]() |
提出日時 | 2019-05-13 19:00:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 412 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-08 00:23:35 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
leaf_max,drop,start,period = map(int,input().split())start-=1period-=1current_month = 0current_leaf = leaf_maxwhile current_leaf > 0:d = dropcm = current_month % 12if start <= cm <= start + period:d*=2current_leaf-=dcurrent_month+=1print(current_month)