結果

問題 No.1692 Expectations
ユーザー shotoyooshotoyoo
提出日時 2021-10-01 21:26:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 411 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 138,992 KB
最終ジャッジ日時 2023-09-26 16:24:44
合計ジャッジ時間 3,582 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,912 KB
testcase_01 AC 75 ms
70,912 KB
testcase_02 AC 72 ms
71,044 KB
testcase_03 AC 71 ms
70,668 KB
testcase_04 AC 72 ms
71,104 KB
testcase_05 AC 73 ms
71,012 KB
testcase_06 AC 72 ms
71,088 KB
testcase_07 AC 72 ms
71,044 KB
testcase_08 AC 72 ms
71,004 KB
testcase_09 AC 74 ms
70,912 KB
testcase_10 AC 120 ms
104,740 KB
testcase_11 AC 111 ms
104,232 KB
testcase_12 AC 73 ms
71,012 KB
testcase_13 AC 71 ms
70,940 KB
testcase_14 AC 79 ms
78,412 KB
testcase_15 AC 126 ms
119,944 KB
testcase_16 AC 81 ms
78,328 KB
testcase_17 AC 104 ms
98,756 KB
testcase_18 AC 86 ms
83,440 KB
testcase_19 AC 134 ms
125,880 KB
testcase_20 AC 128 ms
129,216 KB
testcase_21 AC 137 ms
138,992 KB
権限があれば一括ダウンロードができます

ソースコード

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))) and n==m:
    mm = 1
print(MM, mm)
0