結果
問題 | No.2056 非力なレッド |
ユーザー |
![]() |
提出日時 | 2022-08-22 05:25:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 103,728 KB |
最終ジャッジ日時 | 2024-10-10 06:29:52 |
合計ジャッジ時間 | 6,328 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 9 |
ソースコード
def fake1(n,x,m,A): a=A[:] cnt=0 while 1: if max(a)<x:break ma=max(a) ind=10**10 for i in range(n): if a[i]==ma:ind=i for i in range(ind+1): a[i]//=2 cnt+=1 if cnt<=m:return "Yes" return "No" n,x,m=map(int,input().split()) a=list(map(int,input().split())) print(fake1(n,x,m,a))