結果

問題 No.1692 Expectations
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-11 17:30:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 133,628 KB
最終ジャッジ日時 2024-11-14 11:41:02
合計ジャッジ時間 2,487 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if sns==1 and len(ns) >= b:
    t=1
else:
    t=0
    
print(min(sns,b),t)
0