結果

問題 No.1692 Expectations
ユーザー lllllll88938494
提出日時 2022-01-11 09:26:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 2,596 ms
コンパイル使用メモリ 81,448 KB
実行使用メモリ 134,880 KB
最終ジャッジ日時 2024-11-14 11:28:00
合計ジャッジ時間 2,942 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 10 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
ns=list(map(int,input().split()))
sns=len(set(ns))

if b >= sns:
    t=max(0,sns-(b-sns))
else:
    t=b
    
print(min(sns,b),t)
0