結果

問題 No.1692 Expectations
ユーザー tnodinotnodino
提出日時 2021-10-01 21:28:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 31,912 KB
最終ジャッジ日時 2023-09-26 16:27:02
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 16 ms
7,844 KB
testcase_02 AC 16 ms
7,784 KB
testcase_03 AC 16 ms
7,780 KB
testcase_04 AC 16 ms
7,836 KB
testcase_05 AC 16 ms
7,844 KB
testcase_06 AC 16 ms
7,840 KB
testcase_07 AC 16 ms
7,784 KB
testcase_08 AC 17 ms
7,920 KB
testcase_09 AC 16 ms
7,840 KB
testcase_10 AC 93 ms
26,896 KB
testcase_11 AC 96 ms
29,236 KB
testcase_12 AC 15 ms
7,780 KB
testcase_13 AC 16 ms
7,896 KB
testcase_14 AC 25 ms
10,488 KB
testcase_15 AC 116 ms
26,236 KB
testcase_16 AC 25 ms
10,476 KB
testcase_17 AC 62 ms
17,224 KB
testcase_18 AC 35 ms
14,304 KB
testcase_19 AC 139 ms
29,844 KB
testcase_20 AC 100 ms
30,948 KB
testcase_21 AC 111 ms
31,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
A = list(map(int,input().split()))
s = set()
for i in range(N):
    s.add(A[i])
if N == M and len(s) == 1:
    print(1,1)
else:
    print(len(s),0)
0