結果

問題 No.1692 Expectations
ユーザー ysys
提出日時 2021-12-24 23:21:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 81,692 KB
実行使用メモリ 165,524 KB
最終ジャッジ日時 2023-10-20 02:48:16
合計ジャッジ時間 3,224 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,424 KB
testcase_01 AC 39 ms
53,424 KB
testcase_02 AC 40 ms
53,424 KB
testcase_03 AC 39 ms
53,424 KB
testcase_04 AC 39 ms
53,424 KB
testcase_05 AC 39 ms
53,424 KB
testcase_06 AC 39 ms
53,424 KB
testcase_07 AC 39 ms
53,424 KB
testcase_08 AC 39 ms
53,424 KB
testcase_09 AC 38 ms
53,424 KB
testcase_10 AC 80 ms
96,832 KB
testcase_11 AC 78 ms
96,588 KB
testcase_12 AC 39 ms
53,424 KB
testcase_13 AC 39 ms
53,424 KB
testcase_14 AC 47 ms
65,172 KB
testcase_15 AC 94 ms
112,544 KB
testcase_16 AC 46 ms
65,476 KB
testcase_17 AC 68 ms
87,588 KB
testcase_18 AC 51 ms
70,108 KB
testcase_19 AC 121 ms
139,520 KB
testcase_20 AC 95 ms
122,256 KB
testcase_21 AC 129 ms
165,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
A = list(map(int, input().split()))
ma = len(set(A))
mi = 0
if N == M and len(set(A)) == 1:
  mi += 1
print(ma, mi)
0