結果

問題 No.1908 Assault for Keys
ユーザー 👑 ygussany
提出日時 2022-04-22 21:04:10
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 29,696 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-24 01:57:13
合計ジャッジ時間 1,738 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int i, N, M;
	char S[1001][1001];
	scanf("%d %d", &N, &M);
	for (i = 1; i <= N; i++) scanf("%s", S[i]);
	
	int j, num[1001] = {};
	for (i = 1; i <= N; i++) for (j = 0; j < M; j++) if (S[i][j] == 'x') num[j]++;
	
	int ans = 0;
	for (j = 0; j < M; j++) if (ans < num[j]) ans = num[j];
	printf("%d\n", ans + 1);
	fflush(stdout);
	return 0;
}
0