結果

問題 No.349 干支の置き物
ユーザー caleicalei
提出日時 2020-02-01 06:30:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 11,844 KB
実行使用メモリ 10,200 KB
最終ジャッジ日時 2023-10-18 23:43:16
合計ジャッジ時間 2,540 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,140 KB
testcase_01 AC 32 ms
10,140 KB
testcase_02 AC 31 ms
10,140 KB
testcase_03 AC 31 ms
10,140 KB
testcase_04 AC 31 ms
10,140 KB
testcase_05 AC 31 ms
10,140 KB
testcase_06 AC 32 ms
10,140 KB
testcase_07 AC 32 ms
10,140 KB
testcase_08 AC 31 ms
10,140 KB
testcase_09 AC 31 ms
10,140 KB
testcase_10 AC 31 ms
10,140 KB
testcase_11 AC 30 ms
10,140 KB
testcase_12 AC 30 ms
10,140 KB
testcase_13 AC 30 ms
10,140 KB
testcase_14 AC 30 ms
10,140 KB
testcase_15 AC 30 ms
10,140 KB
testcase_16 AC 30 ms
10,140 KB
testcase_17 AC 30 ms
10,140 KB
testcase_18 WA -
testcase_19 AC 31 ms
10,140 KB
testcase_20 WA -
testcase_21 AC 30 ms
10,140 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 30 ms
10,140 KB
testcase_26 WA -
testcase_27 AC 30 ms
10,140 KB
testcase_28 WA -
testcase_29 AC 31 ms
10,140 KB
testcase_30 AC 31 ms
10,144 KB
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.349 干支の置き物 2020/02/01

from collections import Counter

n=int(input())
a=[input() for _ in range(n)]

c=Counter(a)
if c.most_common()[0][1]>=(n-2):
    print('NO')
else:
    print('YES')
0