結果

問題 No.349 干支の置き物
ユーザー convexineqconvexineq
提出日時 2021-01-18 04:44:23
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,756 KB
最終ジャッジ日時 2023-08-20 11:36:55
合計ジャッジ時間 5,702 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
71,756 KB
testcase_01 AC 103 ms
71,496 KB
testcase_02 AC 102 ms
71,364 KB
testcase_03 AC 102 ms
71,672 KB
testcase_04 AC 108 ms
71,744 KB
testcase_05 AC 104 ms
71,740 KB
testcase_06 AC 99 ms
71,620 KB
testcase_07 AC 100 ms
71,536 KB
testcase_08 AC 99 ms
71,676 KB
testcase_09 AC 102 ms
71,748 KB
testcase_10 AC 99 ms
71,548 KB
testcase_11 AC 100 ms
71,584 KB
testcase_12 AC 99 ms
71,408 KB
testcase_13 AC 103 ms
71,724 KB
testcase_14 AC 100 ms
71,732 KB
testcase_15 AC 104 ms
71,460 KB
testcase_16 AC 108 ms
71,500 KB
testcase_17 AC 107 ms
71,344 KB
testcase_18 AC 102 ms
71,636 KB
testcase_19 AC 100 ms
71,456 KB
testcase_20 AC 100 ms
71,588 KB
testcase_21 AC 100 ms
71,716 KB
testcase_22 AC 100 ms
71,532 KB
testcase_23 AC 101 ms
71,488 KB
testcase_24 AC 101 ms
71,740 KB
testcase_25 AC 104 ms
71,420 KB
testcase_26 AC 105 ms
71,364 KB
testcase_27 AC 104 ms
71,724 KB
testcase_28 AC 101 ms
71,460 KB
testcase_29 AC 102 ms
71,464 KB
testcase_30 AC 123 ms
71,420 KB
testcase_31 AC 102 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n,*a = open(0).read().split()
d = Counter(a)
print("YES" if (int(n)+1)//2 >= max(d.values()) else "NO")
0