結果
| 問題 | No.1692 Expectations |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-26 10:15:42 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 82,088 KB |
| 実行使用メモリ | 142,572 KB |
| 最終ジャッジ日時 | 2026-09-26 10:15:48 |
| 合計ジャッジ時間 | 2,649 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 17 WA * 3 |
ソースコード
N, M = map(int, input().split())
A = list(map(int, input().split()))
from collections import defaultdict
#A = defaultdict(list) # 初期値が [] (空リスト)
B = defaultdict(int) # 初期値に 0 を自動セット
# https://pcnote.henchoko.com/?p=965
for a in A:
B[a] += 1
if len(B) == M and len(B) == N:
print(1, 1)
else:
print(len(B), 0)