結果
| 問題 | No.1908 Assault for Keys | 
| コンテスト | |
| ユーザー |  pengin_2000 | 
| 提出日時 | 2022-07-21 13:49:37 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 11 ms / 2,000 ms | 
| コード長 | 393 bytes | 
| コンパイル時間 | 237 ms | 
| コンパイル使用メモリ | 29,824 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-02 18:09:10 | 
| 合計ジャッジ時間 | 2,059 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 | 
ソースコード
#include<stdio.h>
char s[1003][1003];
int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	int i, j;
	for (i = 0; i < n; i++)
		scanf("%s", s[i]);
	int cnt_x[1003];
	for (j = 0; j < m; j++)
	{
		cnt_x[j] = 0;
		for (i = 0; i < n; i++)
			if (s[i][j] == 'x')
				cnt_x[j]++;
	}
	int ans = 0;
	for (i = 0; i < m; i++)
		if (ans <= cnt_x[i])
			ans = cnt_x[i] + 1;
	printf("%d\n", ans);
	return 0;
}
            
            
            
        