結果

問題 No.1692 Expectations
ユーザー HAGI_TARO
提出日時 2021-10-03 09:54:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 1,017 ms
コンパイル使用メモリ 82,208 KB
実行使用メモリ 165,376 KB
最終ジャッジ日時 2024-07-21 03:44:05
合計ジャッジ時間 3,416 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
A = list(map(int,input().split()))
MAX = 0
MIN = 0
if n == m and len(set(A)) == 1:
    MAX = 1
    MIN = 1
else:
    MAX = len(set(A))
print(MAX,MIN)
0