結果

問題 No.349 干支の置き物
ユーザー akitsugu777akitsugu777
提出日時 2019-11-08 15:57:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,664 KB
最終ジャッジ日時 2023-10-13 03:12:39
合計ジャッジ時間 2,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,524 KB
testcase_01 AC 19 ms
8,664 KB
testcase_02 AC 19 ms
8,456 KB
testcase_03 AC 19 ms
8,580 KB
testcase_04 AC 18 ms
8,632 KB
testcase_05 AC 19 ms
8,552 KB
testcase_06 AC 19 ms
8,648 KB
testcase_07 AC 19 ms
8,452 KB
testcase_08 AC 20 ms
8,460 KB
testcase_09 AC 19 ms
8,600 KB
testcase_10 AC 20 ms
8,464 KB
testcase_11 AC 18 ms
8,464 KB
testcase_12 AC 20 ms
8,520 KB
testcase_13 AC 19 ms
8,588 KB
testcase_14 AC 19 ms
8,484 KB
testcase_15 AC 19 ms
8,472 KB
testcase_16 AC 19 ms
8,440 KB
testcase_17 AC 20 ms
8,500 KB
testcase_18 AC 19 ms
8,584 KB
testcase_19 AC 18 ms
8,504 KB
testcase_20 AC 18 ms
8,624 KB
testcase_21 AC 19 ms
8,472 KB
testcase_22 WA -
testcase_23 AC 19 ms
8,636 KB
testcase_24 WA -
testcase_25 AC 18 ms
8,648 KB
testcase_26 AC 19 ms
8,464 KB
testcase_27 AC 18 ms
8,484 KB
testcase_28 AC 19 ms
8,472 KB
testcase_29 WA -
testcase_30 AC 19 ms
8,628 KB
testcase_31 AC 19 ms
8,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N = int(input())
L = [input() for _ in range(N)]
d = Counter(L)

if N % 2 == 0:
    print(['NO', 'YES'][N >= 2*max(d.values())])
else:
    print(['NO', 'YES'][N > 2*max(d.values())])
0