結果
問題 |
No.349 干支の置き物
|
ユーザー |
|
提出日時 | 2020-08-28 12:00:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 54,016 KB |
最終ジャッジ日時 | 2024-11-09 01:09:17 |
合計ジャッジ時間 | 2,970 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
from collections import defaultdict N = int(input()) X = defaultdict(int) for i in range(N): a = input() X[a] += 1 if max(X.values()) <= (N + 1) // 2: print('YES') else: print('NO')