結果
問題 | No.349 干支の置き物 |
ユーザー |
|
提出日時 | 2016-03-12 15:24:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-25 03:20:19 |
合計ジャッジ時間 | 1,919 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 3 |
ソースコード
from collections import defaultdict def main(): n = int(input()) d = defaultdict(int) for _ in range(n): d[input().strip()] += 1 for v in d.values(): if n - v <= v - 1: print("NO") return print("YES") if __name__ == '__main__': main()