結果

問題 No.1692 Expectations
ユーザー harapecoharapeco
提出日時 2022-03-16 15:15:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 81,596 KB
実行使用メモリ 134,044 KB
最終ジャッジ日時 2023-10-24 20:21:49
合計ジャッジ時間 3,840 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,452 KB
testcase_01 AC 35 ms
53,452 KB
testcase_02 AC 35 ms
53,452 KB
testcase_03 AC 37 ms
53,452 KB
testcase_04 AC 35 ms
53,452 KB
testcase_05 AC 36 ms
53,452 KB
testcase_06 AC 36 ms
53,452 KB
testcase_07 AC 36 ms
53,452 KB
testcase_08 WA -
testcase_09 AC 35 ms
53,452 KB
testcase_10 WA -
testcase_11 AC 77 ms
99,072 KB
testcase_12 WA -
testcase_13 AC 35 ms
53,456 KB
testcase_14 AC 43 ms
65,596 KB
testcase_15 AC 94 ms
115,016 KB
testcase_16 AC 44 ms
65,900 KB
testcase_17 AC 67 ms
90,060 KB
testcase_18 AC 50 ms
70,532 KB
testcase_19 AC 102 ms
121,040 KB
testcase_20 AC 97 ms
124,728 KB
testcase_21 AC 106 ms
134,044 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 len(ans) == 1 and N <= 1:
    min = 1
max = len(ans)
print(max,min)
0