結果
問題 | No.2056 非力なレッド |
ユーザー |
|
提出日時 | 2022-08-27 00:04:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 105,728 KB |
最終ジャッジ日時 | 2024-10-14 00:45:14 |
合計ジャッジ時間 | 4,769 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 WA * 2 |
ソースコード
n,x,m=map(int,input().split())a=list(map(int,input().split()))s=[0]*nfor i in range(n):c=a[i]while c>=x:s[i]+=1c//=2r=0for i in range(n)[::-1]:r+=max(0,(s[i]-r)*(i+1))if r<=m:print("Yes")else:print("No")