結果

問題 No.1692 Expectations
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-10-03 09:54:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 137,952 KB
最終ジャッジ日時 2023-09-28 09:11:28
合計ジャッジ時間 4,663 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,420 KB
testcase_01 AC 61 ms
71,568 KB
testcase_02 AC 62 ms
71,052 KB
testcase_03 AC 60 ms
71,288 KB
testcase_04 AC 63 ms
71,316 KB
testcase_05 AC 62 ms
71,316 KB
testcase_06 AC 60 ms
71,612 KB
testcase_07 AC 63 ms
71,516 KB
testcase_08 AC 62 ms
71,428 KB
testcase_09 AC 61 ms
71,456 KB
testcase_10 AC 97 ms
102,888 KB
testcase_11 AC 98 ms
102,728 KB
testcase_12 AC 63 ms
71,064 KB
testcase_13 AC 61 ms
71,220 KB
testcase_14 AC 70 ms
77,352 KB
testcase_15 AC 112 ms
118,572 KB
testcase_16 AC 68 ms
77,704 KB
testcase_17 AC 90 ms
97,852 KB
testcase_18 AC 75 ms
82,448 KB
testcase_19 AC 134 ms
124,940 KB
testcase_20 AC 116 ms
128,376 KB
testcase_21 AC 141 ms
137,952 KB
権限があれば一括ダウンロードができます

ソースコード

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