結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
はむ吉🐹
|
| 提出日時 | 2018-06-30 13:43:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-07-01 00:54:18 |
| 合計ジャッジ時間 | 955 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
#!/usr/bin/env python3
import collections
def most_common_number(ss):
ctr = collections.Counter(s.count("^") for s in ss)
return max(k for k, v in ctr.items() if v == ctr.most_common(1)[0][1])
def main():
n = int(input())
ss = [input() for _ in range(n)]
print(most_common_number(ss))
if __name__ == '__main__':
main()
はむ吉🐹