結果

問題 No.1692 Expectations
ユーザー 👑 H20H20
提出日時 2021-10-01 21:24:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 138,716 KB
最終ジャッジ日時 2023-09-26 16:20:02
合計ジャッジ時間 4,014 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,328 KB
testcase_01 AC 94 ms
71,192 KB
testcase_02 AC 93 ms
71,456 KB
testcase_03 AC 92 ms
71,296 KB
testcase_04 AC 95 ms
71,472 KB
testcase_05 AC 94 ms
71,296 KB
testcase_06 AC 93 ms
71,296 KB
testcase_07 AC 94 ms
71,500 KB
testcase_08 AC 93 ms
71,328 KB
testcase_09 AC 94 ms
71,328 KB
testcase_10 AC 139 ms
103,912 KB
testcase_11 AC 136 ms
103,624 KB
testcase_12 AC 94 ms
71,360 KB
testcase_13 AC 92 ms
71,208 KB
testcase_14 AC 102 ms
79,004 KB
testcase_15 AC 161 ms
119,716 KB
testcase_16 AC 103 ms
78,900 KB
testcase_17 AC 133 ms
99,188 KB
testcase_18 AC 113 ms
83,068 KB
testcase_19 AC 171 ms
126,180 KB
testcase_20 AC 156 ms
129,544 KB
testcase_21 AC 162 ms
138,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N,M = map(int, input().split())
A = list(map(int, input().split())) 
CA = collections.Counter(A)
print(len(CA),int(len(CA)==1 and N==M))
0