結果

問題 No.349 干支の置き物
ユーザー 👑 H20H20
提出日時 2021-01-22 13:34:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 71,688 KB
最終ジャッジ日時 2023-08-27 04:12:27
合計ジャッジ時間 4,963 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,604 KB
testcase_01 AC 92 ms
71,568 KB
testcase_02 AC 92 ms
71,468 KB
testcase_03 AC 93 ms
71,276 KB
testcase_04 AC 94 ms
71,332 KB
testcase_05 AC 94 ms
71,652 KB
testcase_06 AC 94 ms
71,556 KB
testcase_07 AC 92 ms
71,632 KB
testcase_08 AC 92 ms
71,508 KB
testcase_09 AC 92 ms
71,448 KB
testcase_10 AC 91 ms
71,448 KB
testcase_11 AC 91 ms
71,580 KB
testcase_12 AC 94 ms
71,444 KB
testcase_13 AC 97 ms
71,608 KB
testcase_14 AC 94 ms
71,648 KB
testcase_15 AC 94 ms
71,600 KB
testcase_16 AC 93 ms
71,288 KB
testcase_17 AC 93 ms
71,428 KB
testcase_18 AC 93 ms
71,660 KB
testcase_19 WA -
testcase_20 AC 93 ms
71,432 KB
testcase_21 WA -
testcase_22 AC 93 ms
71,556 KB
testcase_23 AC 94 ms
71,432 KB
testcase_24 AC 92 ms
71,660 KB
testcase_25 AC 93 ms
71,580 KB
testcase_26 AC 93 ms
71,604 KB
testcase_27 AC 92 ms
71,688 KB
testcase_28 AC 94 ms
71,432 KB
testcase_29 AC 93 ms
71,428 KB
testcase_30 AC 93 ms
71,580 KB
testcase_31 AC 93 ms
71,568 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 N%2==1 and v>-(-N//2):
        print('NO')
        exit()
print('YES')
0