結果

問題 No.1692 Expectations
ユーザー shotoyoo
提出日時 2021-10-01 21:26:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,484 KB
実行使用メモリ 135,092 KB
最終ジャッジ日時 2024-07-19 10:29:19
合計ジャッジ時間 2,197 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()

write = lambda x: sys.stdout.write(x+"\n")
debug = lambda x: sys.stderr.write(x+"\n")
writef = lambda x: print("{:.12f}".format(x))


n,m = list(map(int, input().split()))
a = list(map(int, input().split()))
s = set(a)
mm = 0
MM = len(s)
count = [0]*m
if all((a[0]==a[i] for i in range(n))):
    mm = 1
print(MM, mm)
0