結果

問題 No.1908 Assault for Keys
ユーザー shotoyooshotoyoo
提出日時 2022-04-22 21:59:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 682 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 78,364 KB
最終ジャッジ日時 2023-09-06 08:24:53
合計ジャッジ時間 3,830 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
72,304 KB
testcase_01 AC 88 ms
72,208 KB
testcase_02 AC 113 ms
77,640 KB
testcase_03 AC 111 ms
78,128 KB
testcase_04 AC 110 ms
77,816 KB
testcase_05 AC 114 ms
77,912 KB
testcase_06 AC 116 ms
78,044 KB
testcase_07 AC 116 ms
77,824 KB
testcase_08 AC 111 ms
77,748 KB
testcase_09 AC 111 ms
77,748 KB
testcase_10 AC 110 ms
77,780 KB
testcase_11 AC 115 ms
77,852 KB
testcase_12 AC 113 ms
78,012 KB
testcase_13 AC 116 ms
78,036 KB
testcase_14 AC 112 ms
78,068 KB
testcase_15 AC 111 ms
77,916 KB
testcase_16 AC 90 ms
72,208 KB
testcase_17 AC 93 ms
71,936 KB
testcase_18 AC 117 ms
78,044 KB
testcase_19 AC 108 ms
78,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, random
input = lambda : sys.stdin.readline().rstrip()

write = lambda x: sys.stdout.write(x+"\n"); writef = lambda x: print("{:.12f}".format(x))
debug = lambda x: sys.stderr.write(x+"\n")
YES="Yes"; NO="No"; pans = lambda v: print(YES if v else NO); inf=10**18
LI = lambda : list(map(int, input().split()))
def dlist(*l, fill=0):
    if len(l)==1:
        return [fill]*l[0]
    ll = l[1:]
    return [dlist(*ll, fill=fill) for _ in range(l[0])]
sys.setrecursionlimit(3*10**5+10)

n,m = list(map(int, input().split()))
count = [0]*m
for i in range(n):
    s = input()
    for j in range(m):
        if s[j]=="x":
            count[j] += 1
ans = max(count) + 1
print(ans)
0