結果

問題 No.1692 Expectations
ユーザー chineristACchineristAC
提出日時 2021-10-01 21:31:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 139,728 KB
最終ジャッジ日時 2023-09-26 16:31:13
合計ジャッジ時間 4,371 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
72,192 KB
testcase_01 AC 92 ms
72,036 KB
testcase_02 AC 91 ms
71,860 KB
testcase_03 AC 90 ms
72,316 KB
testcase_04 AC 88 ms
72,372 KB
testcase_05 AC 90 ms
72,184 KB
testcase_06 AC 90 ms
71,776 KB
testcase_07 AC 90 ms
72,192 KB
testcase_08 AC 91 ms
72,112 KB
testcase_09 AC 87 ms
71,936 KB
testcase_10 AC 134 ms
104,668 KB
testcase_11 AC 136 ms
102,600 KB
testcase_12 AC 90 ms
71,840 KB
testcase_13 AC 90 ms
72,284 KB
testcase_14 AC 100 ms
79,864 KB
testcase_15 AC 148 ms
118,516 KB
testcase_16 AC 105 ms
80,148 KB
testcase_17 AC 125 ms
98,528 KB
testcase_18 AC 109 ms
83,680 KB
testcase_19 AC 160 ms
126,400 KB
testcase_20 AC 151 ms
127,964 KB
testcase_21 AC 161 ms
139,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import radians
import sys,random

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N,M = mi()
A = li()

S = set()
for a in A:
    S.add(a)

if len(S)==1:
    if N+1 > M:
        print(len(S),1)
    else:
        print(len(S),0)
else:
    print(len(S),0)
0