結果

問題 No.1908 Assault for Keys
ユーザー 👑 CleyL
提出日時 2023-05-26 13:29:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 810 ms
コンパイル使用メモリ 72,296 KB
最終ジャッジ日時 2025-02-13 05:14:07
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;
int main(){
	int h,w;cin>>h>>w;
	vector<int> A(w);
	int mx = 0;
	for(int i = 0; h > i; i++){
		string s;cin>>s;
		for(int j = 0; w > j; j++){
			if(s[j] == 'x')A[j]++,mx = max(mx,A[j]);
		}
	}
	cout << mx+1 << endl;
}
0