結果

問題 No.349 干支の置き物
ユーザー 👑 H20H20
提出日時 2021-01-22 13:35:12
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,864 KB
最終ジャッジ日時 2023-08-27 04:13:21
合計ジャッジ時間 4,823 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
71,712 KB
testcase_01 AC 97 ms
71,712 KB
testcase_02 AC 99 ms
71,604 KB
testcase_03 AC 98 ms
71,720 KB
testcase_04 AC 97 ms
71,592 KB
testcase_05 AC 98 ms
71,780 KB
testcase_06 AC 98 ms
71,784 KB
testcase_07 AC 99 ms
71,572 KB
testcase_08 AC 98 ms
71,576 KB
testcase_09 AC 98 ms
71,652 KB
testcase_10 AC 98 ms
71,568 KB
testcase_11 AC 98 ms
71,432 KB
testcase_12 AC 99 ms
71,572 KB
testcase_13 AC 100 ms
71,592 KB
testcase_14 AC 98 ms
71,756 KB
testcase_15 AC 100 ms
71,532 KB
testcase_16 AC 99 ms
71,864 KB
testcase_17 AC 99 ms
71,584 KB
testcase_18 AC 99 ms
71,592 KB
testcase_19 AC 98 ms
71,452 KB
testcase_20 AC 97 ms
71,384 KB
testcase_21 AC 100 ms
71,456 KB
testcase_22 AC 93 ms
71,652 KB
testcase_23 AC 92 ms
71,612 KB
testcase_24 AC 94 ms
71,784 KB
testcase_25 AC 94 ms
71,444 KB
testcase_26 AC 94 ms
71,536 KB
testcase_27 AC 94 ms
71,588 KB
testcase_28 AC 98 ms
71,452 KB
testcase_29 AC 97 ms
71,468 KB
testcase_30 AC 99 ms
71,828 KB
testcase_31 AC 98 ms
71,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
ANIMALS = []
for i in range(N):
    ANIMALS.append(input())
CA = collections.Counter(ANIMALS)
for v in CA.values():
    if v>-(-N//2):
        print('NO')
        exit()
print('YES')
0