結果

問題 No.1692 Expectations
ユーザー mesame3993mesame3993
提出日時 2021-10-01 21:24:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 1,426 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 137,304 KB
最終ジャッジ日時 2023-09-26 16:20:50
合計ジャッジ時間 3,476 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,124 KB
testcase_01 AC 73 ms
71,108 KB
testcase_02 AC 73 ms
71,072 KB
testcase_03 AC 72 ms
70,784 KB
testcase_04 AC 73 ms
71,024 KB
testcase_05 AC 74 ms
71,108 KB
testcase_06 AC 74 ms
71,044 KB
testcase_07 AC 74 ms
71,072 KB
testcase_08 AC 74 ms
71,008 KB
testcase_09 AC 74 ms
71,080 KB
testcase_10 AC 109 ms
102,664 KB
testcase_11 AC 111 ms
102,484 KB
testcase_12 AC 73 ms
71,096 KB
testcase_13 AC 73 ms
71,220 KB
testcase_14 AC 80 ms
77,008 KB
testcase_15 AC 126 ms
118,172 KB
testcase_16 AC 81 ms
77,496 KB
testcase_17 AC 102 ms
97,336 KB
testcase_18 AC 84 ms
81,876 KB
testcase_19 AC 135 ms
124,260 KB
testcase_20 AC 130 ms
127,868 KB
testcase_21 AC 140 ms
137,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
a = list(map(int, input().split()))

st = set(a)
ansMax = len(st)
if len(st) == 1 and n == m:
	ansMin = 1
else:
	ansMin = 0
print(ansMax, ansMin)
0