結果
| 問題 |
No.1692 Expectations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-01 21:49:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 120,192 KB |
| 最終ジャッジ日時 | 2024-07-19 11:01:44 |
| 合計ジャッジ時間 | 2,731 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
from collections import Counter N,M = map(int,input().split()) A = list(map(int,input().split())) C = Counter(A).values() MAX = len(C) if len(C) == 1 and N == M: MIN = 1 else: MIN = 0 print(MAX,MIN)