結果

問題 No.1692 Expectations
ユーザー brthyyjpbrthyyjp
提出日時 2021-10-01 21:24:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,732 KB
実行使用メモリ 137,292 KB
最終ジャッジ日時 2023-09-26 16:21:00
合計ジャッジ時間 3,409 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,028 KB
testcase_01 AC 71 ms
70,664 KB
testcase_02 AC 71 ms
70,780 KB
testcase_03 AC 73 ms
70,996 KB
testcase_04 AC 71 ms
71,184 KB
testcase_05 AC 72 ms
71,276 KB
testcase_06 AC 71 ms
71,068 KB
testcase_07 AC 72 ms
71,116 KB
testcase_08 AC 73 ms
71,212 KB
testcase_09 AC 73 ms
71,212 KB
testcase_10 AC 108 ms
102,564 KB
testcase_11 AC 105 ms
102,084 KB
testcase_12 AC 72 ms
71,116 KB
testcase_13 AC 71 ms
71,020 KB
testcase_14 AC 78 ms
76,916 KB
testcase_15 AC 123 ms
118,160 KB
testcase_16 AC 79 ms
77,224 KB
testcase_17 AC 100 ms
97,340 KB
testcase_18 AC 83 ms
81,752 KB
testcase_19 AC 131 ms
124,284 KB
testcase_20 AC 126 ms
128,016 KB
testcase_21 AC 137 ms
137,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
A = list(map(int, input().split()))
if m > n:
    S = set(A)
    M = len(S)
    m = 0
    print(M, m)
else:
    S = set(A)
    if len(S) == 1:
        m = 1
    else:
        m = 0
    M = len(S)
    print(M,m)
0