結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2020-08-21 21:43:04 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 163µs | |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-17 20:16:54 |
| 合計ジャッジ時間 | 2,509 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
import collections N = int(input().strip()) A = [input().strip() for _ in range(N)] c = collections.Counter(A) cc = sorted(list(c.items()), key = lambda x : x[1], reverse=True) tmp = [cc[0][1], -(-(N / 2) // 1)] print(['NO', 'YES'][tmp[0] <= tmp[1]])
liny_tail