結果
| 問題 | No.706 多眼生物の調査 |
| コンテスト | |
| ユーザー |
kerotono
|
| 提出日時 | 2018-06-29 22:25:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 438 bytes |
| 記録 | |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-21 13:47:13 |
| 合計ジャッジ時間 | 1,677 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
#!python
# -*- coding: utf-8 -*-
def main():
N = int(input())
S = []
for i in range(N):
S.append(input())
S_num = []
for s in S:
S_num.append(len(s) - 2)
ls = [0 for i in range(1000)]
for s in S_num:
ls[s] += 1
max_index = 0
for i in range(1, 1000):
if ls[max_index] <= ls[i]:
max_index = i
print(max_index)
if __name__ == '__main__':
main()
kerotono