結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2024-05-01 12:12:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 140 ms |
コンパイル使用メモリ | 82,216 KB |
実行使用メモリ | 55,300 KB |
最終ジャッジ日時 | 2024-11-21 16:31:33 |
合計ジャッジ時間 | 2,354 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
from collections import * N = int(input()) D = defaultdict(int) ans = 0 for _ in range(N): s = input() D[s] += 1 ans = max(ans, D[s]) print("YES") if ans <= (N + 1) // 2 else print("NO")