結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー |
![]() |
提出日時 | 2021-11-12 22:50:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 97 ms / 2,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,180 KB |
実行使用メモリ | 66,944 KB |
最終ジャッジ日時 | 2024-11-25 20:40:55 |
合計ジャッジ時間 | 3,282 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
n, a, b,x,y = map(int, input().split())hs =list(map(int, input().split()))for i in range(a):maxi1=max(hs)maxin=hs.index(maxi1)hs[maxin]-=xfor b in range(b):p=yfor i in range(len(hs)):if(hs[i]<=0):continueD=min(p,hs[i])hs[i]-=Dp-=Dll=len(list((filter(lambda x: x>0, hs))))if ll==0:print("Yes")else:print("No")