結果
問題 | No.1908 Assault for Keys |
ユーザー |
![]() |
提出日時 | 2025-03-20 20:17:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 70 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 82,736 KB |
実行使用メモリ | 72,460 KB |
最終ジャッジ日時 | 2025-03-20 20:17:43 |
合計ジャッジ時間 | 2,418 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
n, m = map(int, input().split()) count = [0] * m for _ in range(n): s = input().strip() for j in range(m): if s[j] == 'o': count[j] += 1 max_k = 0 for j in range(m): required = n - count[j] + 1 if required > max_k: max_k = required print(max_k)