結果

問題 No.1908 Assault for Keys
ユーザー mkawa2mkawa2
提出日時 2022-04-22 21:04:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 872 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,892 KB
実行使用メモリ 8,384 KB
最終ジャッジ日時 2023-09-06 07:16:34
合計ジャッジ時間 4,349 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,700 KB
testcase_01 AC 16 ms
7,768 KB
testcase_02 AC 195 ms
8,116 KB
testcase_03 AC 196 ms
8,188 KB
testcase_04 AC 193 ms
8,192 KB
testcase_05 AC 183 ms
8,128 KB
testcase_06 AC 189 ms
8,208 KB
testcase_07 AC 189 ms
8,188 KB
testcase_08 AC 204 ms
8,376 KB
testcase_09 AC 186 ms
8,176 KB
testcase_10 AC 194 ms
8,256 KB
testcase_11 AC 190 ms
8,132 KB
testcase_12 AC 184 ms
8,224 KB
testcase_13 AC 178 ms
8,168 KB
testcase_14 AC 185 ms
8,380 KB
testcase_15 AC 194 ms
8,384 KB
testcase_16 AC 16 ms
7,760 KB
testcase_17 AC 15 ms
7,720 KB
testcase_18 AC 174 ms
8,272 KB
testcase_19 AC 203 ms
8,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(200005)
int1 = lambda x: int(x)-1
pDB = lambda *x: print(*x, end="\n", file=sys.stderr)
p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()
dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
inf = (1 << 63)-1
# inf = (1 << 31)-1
md = 10**9+7
# md = 998244353

n, m = LI()
cnt = [0]*m
for _ in range(n):
    s = SI()
    for i, c in enumerate(s):
        if c == "o": cnt[i] += 1

mn = min(cnt)
print(n-mn+1)
0