結果

問題 No.1692 Expectations
ユーザー harapecoharapeco
提出日時 2022-03-16 15:19:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 81,780 KB
実行使用メモリ 134,152 KB
最終ジャッジ日時 2023-10-24 20:25:26
合計ジャッジ時間 2,254 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,500 KB
testcase_01 AC 34 ms
53,500 KB
testcase_02 AC 34 ms
53,500 KB
testcase_03 AC 35 ms
53,500 KB
testcase_04 AC 34 ms
53,500 KB
testcase_05 AC 35 ms
53,500 KB
testcase_06 AC 35 ms
53,500 KB
testcase_07 AC 34 ms
53,500 KB
testcase_08 AC 34 ms
53,500 KB
testcase_09 AC 34 ms
53,500 KB
testcase_10 AC 79 ms
97,240 KB
testcase_11 AC 75 ms
99,180 KB
testcase_12 AC 35 ms
53,500 KB
testcase_13 AC 34 ms
53,500 KB
testcase_14 AC 43 ms
65,704 KB
testcase_15 AC 89 ms
115,124 KB
testcase_16 AC 44 ms
66,008 KB
testcase_17 AC 65 ms
90,168 KB
testcase_18 AC 47 ms
70,640 KB
testcase_19 AC 96 ms
121,148 KB
testcase_20 AC 92 ms
124,836 KB
testcase_21 AC 101 ms
134,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

max,min = 0,0
ans = set()

for i in A:
    if i <= M:
        ans.add(i)
if N == M and len(ans) == 1:
    min = 1

max = len(ans)
print(max,min)
0