結果
| 問題 | No.1908 Assault for Keys | 
| コンテスト | |
| ユーザー |  tnakao0123 | 
| 提出日時 | 2022-04-25 11:39:29 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 8 ms / 2,000 ms | 
| コード長 | 611 bytes | 
| コンパイル時間 | 242 ms | 
| コンパイル使用メモリ | 41,540 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-27 07:11:03 | 
| 合計ジャッジ時間 | 1,777 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 | 
ソースコード
/* -*- coding: utf-8 -*-
 *
 * 1908.cc:  No.1908 Assault for Keys - yukicoder
 */
#include<cstdio>
#include<algorithm>
 
using namespace std;
/* constant */
const int MAX_N = 1000;
const int MAX_M = 1000;
/* typedef */
/* global variables */
char ss[MAX_N][MAX_M + 4];
/* subroutines */
/* main */
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 0; i < n; i++) scanf("%s", ss[i]);
  int maxc = 0;
  for (int j = 0; j < m; j++) {
    int cj = 0;
    for (int i = 0; i < n; i++)
      if (ss[i][j] == 'x') cj++;
    maxc = max(maxc, cj);
  }
  printf("%d\n", maxc + 1);
  return 0;
}
            
            
            
        