結果
| 問題 |
No.1739 Princess vs. Dragoness (& AoE)
|
| コンテスト | |
| ユーザー |
ibukiti
|
| 提出日時 | 2021-11-12 22:50:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 39,556 KB |
| 最終ジャッジ日時 | 2024-11-25 20:39:34 |
| 合計ジャッジ時間 | 114,299 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 12 TLE * 28 |
ソースコード
n,a,b,x,y=map(int,input().split())
h=list(map(int,input().split()))
h.sort(reverse=True)
k=1
q=h
while 1:
h=q
for j in h:
if j-1<0:
j=0
else:
j-=1
k+=1
q=h
for i in range(a):
if max(h)-x<0:
h[h.index(max(h))]=0
else :
h[h.index(max(h))]-=x
if sum(h)-y*b<=0:
print(k)
exit()
ibukiti