結果

問題 No.1692 Expectations
ユーザー etale.K3etale.K3
提出日時 2021-10-08 16:39:29
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 34,172 KB
最終ジャッジ日時 2023-09-30 09:19:30
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 15 ms
7,960 KB
testcase_03 AC 16 ms
7,956 KB
testcase_04 AC 16 ms
7,900 KB
testcase_05 AC 15 ms
7,864 KB
testcase_06 AC 16 ms
7,840 KB
testcase_07 AC 16 ms
7,784 KB
testcase_08 AC 16 ms
7,876 KB
testcase_09 AC 16 ms
7,844 KB
testcase_10 AC 75 ms
26,908 KB
testcase_11 AC 78 ms
29,324 KB
testcase_12 AC 15 ms
7,944 KB
testcase_13 AC 16 ms
7,788 KB
testcase_14 AC 23 ms
10,508 KB
testcase_15 AC 98 ms
26,336 KB
testcase_16 AC 23 ms
10,584 KB
testcase_17 AC 54 ms
17,216 KB
testcase_18 AC 33 ms
14,136 KB
testcase_19 AC 116 ms
29,880 KB
testcase_20 AC 85 ms
33,180 KB
testcase_21 AC 96 ms
34,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
A = list(map(int, input().split()))

m = 1 if len(set(A)) == 1 and N == M else 0

print(len(set(A)), m)
0