結果

問題 No.1692 Expectations
ユーザー raven7959raven7959
提出日時 2021-10-04 21:13:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 87,268 KB
実行使用メモリ 137,768 KB
最終ジャッジ日時 2023-09-30 03:55:42
合計ジャッジ時間 4,507 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,636 KB
testcase_01 AC 75 ms
71,304 KB
testcase_02 AC 76 ms
71,336 KB
testcase_03 AC 76 ms
71,412 KB
testcase_04 AC 76 ms
71,112 KB
testcase_05 AC 77 ms
71,432 KB
testcase_06 AC 77 ms
71,616 KB
testcase_07 AC 77 ms
71,332 KB
testcase_08 AC 76 ms
71,144 KB
testcase_09 AC 76 ms
71,336 KB
testcase_10 AC 113 ms
103,000 KB
testcase_11 AC 111 ms
102,720 KB
testcase_12 AC 75 ms
71,260 KB
testcase_13 AC 77 ms
71,300 KB
testcase_14 AC 83 ms
77,444 KB
testcase_15 AC 129 ms
118,864 KB
testcase_16 AC 83 ms
77,740 KB
testcase_17 AC 106 ms
97,764 KB
testcase_18 AC 88 ms
82,460 KB
testcase_19 AC 137 ms
124,640 KB
testcase_20 AC 128 ms
128,632 KB
testcase_21 AC 138 ms
137,768 KB
権限があれば一括ダウンロードができます

ソースコード

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