結果
問題 | No.349 干支の置き物 |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:02:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,736 KB |
実行使用メモリ | 55,656 KB |
最終ジャッジ日時 | 2025-03-20 21:03:07 |
合計ジャッジ時間 | 2,557 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
import sysfrom collections import Countern = int(sys.stdin.readline())arr = [sys.stdin.readline().strip() for _ in range(n)]counts = Counter(arr)max_count = max(counts.values())if max_count > (n + 1) // 2:print("NO")else:print("YES")