結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2016-06-14 23:17:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-09 13:49:51 |
合計ジャッジ時間 | 2,307 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 29 |
ソースコード
import collections N = int(input()) cnt = collections.defaultdict(int) for i in range(N): cnt[input()] += 1 if N - max(cnt.values()) < N // 2: print('YES') else: print('NO')