結果

問題 No.1692 Expectations
ユーザー raven7959
提出日時 2021-10-04 21:13:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 81,960 KB
実行使用メモリ 134,316 KB
最終ジャッジ日時 2024-07-22 21:54:15
合計ジャッジ時間 2,727 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=list(map(int,input().split()))
AS=set(A)
if N==M:
  if len(AS)==1:
    print(1,1)
  else:
    print(len(AS),0)
else:
  print(len(AS),0)
0