結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
vorg101
|
| 提出日時 | 2016-06-14 23:17:03 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 515 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,524 KB |
| 最終ジャッジ日時 | 2026-04-25 17:14:04 |
| 合計ジャッジ時間 | 6,932 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 29 |
ソースコード
import collections
N = int(input())
cnt = collections.defaultdict(int)
for i in range(N):
cnt[input()] += 1
if N - max(cnt.values()) < N // 2:
print('YES')
else:
print('NO')
vorg101