結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-08 17:36:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 230 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 18:50:02 |
| 合計ジャッジ時間 | 986 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
N = int(input())
dic = {}
for i in range(0, N):
S = input()
dic[len(S)] = dic.get(len(S), 0) + 1
max = 0
ans = 0
for x, y in dic.items():
if y > max or y == max and x > ans:
max = y
ans = x
print(ans-2)