結果

問題 No.1692 Expectations
ユーザー O2MTO2MT
提出日時 2021-10-01 21:49:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 138,936 KB
最終ジャッジ日時 2023-09-26 17:00:26
合計ジャッジ時間 4,139 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,372 KB
testcase_01 AC 99 ms
71,472 KB
testcase_02 AC 95 ms
71,256 KB
testcase_03 AC 94 ms
71,232 KB
testcase_04 AC 98 ms
71,696 KB
testcase_05 AC 97 ms
71,464 KB
testcase_06 AC 96 ms
71,260 KB
testcase_07 AC 98 ms
71,528 KB
testcase_08 AC 96 ms
71,492 KB
testcase_09 AC 98 ms
71,260 KB
testcase_10 AC 145 ms
104,096 KB
testcase_11 AC 141 ms
104,184 KB
testcase_12 AC 97 ms
71,388 KB
testcase_13 AC 99 ms
71,612 KB
testcase_14 AC 110 ms
78,784 KB
testcase_15 AC 167 ms
120,012 KB
testcase_16 AC 107 ms
79,040 KB
testcase_17 AC 135 ms
99,068 KB
testcase_18 AC 116 ms
83,236 KB
testcase_19 AC 186 ms
126,172 KB
testcase_20 AC 161 ms
129,800 KB
testcase_21 AC 168 ms
138,936 KB
権限があれば一括ダウンロードができます

ソースコード

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