結果

問題 No.1692 Expectations
ユーザー roarisroaris
提出日時 2021-10-01 21:26:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,632 KB
実行使用メモリ 138,772 KB
最終ジャッジ日時 2023-09-26 16:25:33
合計ジャッジ時間 3,876 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,340 KB
testcase_01 AC 92 ms
71,152 KB
testcase_02 AC 92 ms
71,344 KB
testcase_03 AC 91 ms
71,404 KB
testcase_04 AC 92 ms
71,068 KB
testcase_05 AC 92 ms
71,460 KB
testcase_06 AC 92 ms
71,180 KB
testcase_07 AC 94 ms
71,380 KB
testcase_08 AC 93 ms
71,068 KB
testcase_09 AC 91 ms
71,264 KB
testcase_10 AC 138 ms
103,924 KB
testcase_11 AC 133 ms
103,700 KB
testcase_12 AC 93 ms
71,140 KB
testcase_13 AC 94 ms
71,512 KB
testcase_14 AC 102 ms
78,520 KB
testcase_15 AC 150 ms
118,644 KB
testcase_16 AC 102 ms
78,824 KB
testcase_17 AC 126 ms
98,144 KB
testcase_18 AC 107 ms
82,680 KB
testcase_19 AC 156 ms
125,740 KB
testcase_20 AC 151 ms
128,276 KB
testcase_21 AC 161 ms
138,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

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

if N==M and A==[A[0]]*N:
    m = 1
else:
    m = 0

print(len(set(A)), m)
0