結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-11-17 14:51:39 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 2,000 ms |
| + 657µs | |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 64,736 KB |
| 実行使用メモリ | 53,952 KB |
| 最終ジャッジ日時 | 2026-10-16 03:48:12 |
| 合計ジャッジ時間 | 3,247 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
import math
import sys
from collections import Counter
def input(): return sys.stdin.readline().rstrip('\n')
def main():
n = int(input())
c = Counter(input() for _ in range(n))
if 2*c.most_common(1)[0][1] > n+1:
print('NO')
else:
print('YES')
if __name__ == '__main__':
main()