結果

問題 No.1908 Assault for Keys
ユーザー MasKoaTSMasKoaTS
提出日時 2022-04-22 21:35:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 234 ms / 2,000 ms
コード長 838 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 84,296 KB
最終ジャッジ日時 2023-09-06 07:54:34
合計ジャッジ時間 6,515 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 202 ms
80,916 KB
testcase_01 AC 210 ms
80,772 KB
testcase_02 AC 229 ms
84,296 KB
testcase_03 AC 224 ms
84,172 KB
testcase_04 AC 227 ms
84,016 KB
testcase_05 AC 234 ms
84,256 KB
testcase_06 AC 230 ms
84,084 KB
testcase_07 AC 229 ms
84,008 KB
testcase_08 AC 221 ms
84,144 KB
testcase_09 AC 229 ms
84,264 KB
testcase_10 AC 228 ms
83,984 KB
testcase_11 AC 233 ms
83,936 KB
testcase_12 AC 232 ms
84,296 KB
testcase_13 AC 230 ms
84,196 KB
testcase_14 AC 228 ms
84,144 KB
testcase_15 AC 233 ms
84,172 KB
testcase_16 AC 200 ms
80,924 KB
testcase_17 AC 213 ms
82,856 KB
testcase_18 AC 232 ms
83,840 KB
testcase_19 AC 229 ms
83,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]


"""
Main Code
"""

n, m = getNs()
lis = [0] * m
for s in getStrs(n):
	st = set([])
	for i in range(m):
		lis[i] += (s[i] == 'x')
print(max(lis) + 1)
0