結果

問題 No.1692 Expectations
ユーザー harapeco
提出日時 2022-03-16 15:15:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 135,372 KB
最終ジャッジ日時 2024-09-24 15:23:50
合計ジャッジ時間 3,020 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
A = list(map(int,input().split()))

max,min = 0,0
ans = set()

for i in A:
    if i <= M:
        ans.add(i)
if len(ans) == 1 and N <= 1:
    min = 1
max = len(ans)
print(max,min)
0