結果
問題 | No.1692 Expectations |
ユーザー |
|
提出日時 | 2021-10-01 21:31:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 123 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 806 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 136,576 KB |
最終ジャッジ日時 | 2024-07-19 10:36:10 |
合計ジャッジ時間 | 3,395 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
from math import radiansimport sys,randominput = 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)