結果
問題 | No.2056 非力なレッド |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2022-08-26 21:38:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 117 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 102,784 KB |
最終ジャッジ日時 | 2024-10-13 22:05:25 |
合計ジャッジ時間 | 4,585 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
ソースコード
n,x,m = map(int,input().split()) A = list(map(int,input().split())) ans = 0 now = 0 for i in range(n)[::-1]: a = A[i] c = 0 while a >= x: a //= 2 c += 1 if c > now: ans += (c-now)*(i+1) now = max(now,c) print("Yes" if ans <= m else "No")