結果

問題 No.706 多眼生物の調査
ユーザー turner18_jp
提出日時 2018-10-23 21:03:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-19 04:45:24
合計ジャッジ時間 1,116 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
count = {}
for i in range(n):
  eyes = input().count('^')

  if eyes in count:
    count[eyes] += 1
  else:
    count[eyes] = 1

maximum = 0
ans = 0

for k, v in sorted(count.items()):

  if v >= maximum:
    maximum = v
    ans = k

print(ans)
0