結果
問題 |
No.1692 Expectations
|
ユーザー |
![]() |
提出日時 | 2023-07-08 10:46:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 33,528 KB |
最終ジャッジ日時 | 2024-07-22 06:34:23 |
合計ジャッジ時間 | 2,080 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
N, M = map(int, input().split()) A = [int(i) for i in input().split()] A = set(A) MA, MI = 0, 0 # 1 <= N <= M <= 2 * 10 ^5 if (N == M == 1) or (N == M and len(A) == 1): MA = 1 MI = 1 else: MA = len(A) MI = 0 print(MA, MI)