結果

問題 No.1692 Expectations
ユーザー O2MT
提出日時 2021-10-01 21:49:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 120,192 KB
最終ジャッジ日時 2024-07-19 11:01:44
合計ジャッジ時間 2,731 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N,M = map(int,input().split())
A = list(map(int,input().split()))
C = Counter(A).values()
MAX = len(C)
if len(C) == 1 and N == M:
  MIN = 1
else:
  MIN = 0

print(MAX,MIN)
0