結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
surprise_tanaka
|
| 提出日時 | 2018-11-16 03:08:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 415 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 13,952 KB |
| 最終ジャッジ日時 | 2024-12-24 14:08:05 |
| 合計ジャッジ時間 | 1,490 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 1 |
ソースコード
import statistics
N = int(input())
S_list = []
for i in range(N):
S_list.append(input().count("^"))
try:
print(statistics.mode(S_list))
except:
S_list.sort()
max = 0
count = 0
for i in range(N-1):
if S_list[i] == S_list[i+1]:
count += 1
else:
count = 0
if max <= count:
max = count
result = S_list[i]
print(result)
surprise_tanaka