結果

問題 No.349 干支の置き物
ユーザー 双六双六
提出日時 2020-08-09 00:12:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 475 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 55,788 KB
最終ジャッジ日時 2024-04-10 08:40:04
合計ジャッジ時間 2,604 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
54,444 KB
testcase_01 AC 38 ms
54,312 KB
testcase_02 AC 40 ms
54,744 KB
testcase_03 AC 36 ms
54,092 KB
testcase_04 AC 38 ms
54,496 KB
testcase_05 AC 36 ms
54,020 KB
testcase_06 AC 36 ms
53,812 KB
testcase_07 AC 37 ms
54,524 KB
testcase_08 AC 37 ms
54,404 KB
testcase_09 AC 37 ms
54,736 KB
testcase_10 AC 37 ms
54,612 KB
testcase_11 AC 38 ms
54,432 KB
testcase_12 AC 36 ms
54,856 KB
testcase_13 AC 39 ms
54,364 KB
testcase_14 AC 38 ms
54,360 KB
testcase_15 AC 38 ms
54,176 KB
testcase_16 AC 37 ms
53,572 KB
testcase_17 AC 36 ms
53,864 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 37 ms
53,792 KB
testcase_22 WA -
testcase_23 AC 38 ms
54,428 KB
testcase_24 AC 38 ms
54,552 KB
testcase_25 AC 37 ms
54,688 KB
testcase_26 WA -
testcase_27 AC 38 ms
54,544 KB
testcase_28 WA -
testcase_29 AC 38 ms
54,332 KB
testcase_30 AC 38 ms
53,980 KB
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	D = defaultdict(int)
	for i in range(N):
		A = input()
		D[A] += 1

	L = []
	for i in D:
		L.append(D[i])

	for i in L:
		if i >= (N + i) // 2:
			print("NO")
			return

	print("YES")


if __name__ == '__main__':
	main()
0