結果
| 問題 | No.1908 Assault for Keys | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-06-04 05:58:22 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 29 ms / 2,000 ms | 
| コード長 | 307 bytes | 
| コンパイル時間 | 799 ms | 
| コンパイル使用メモリ | 86,776 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-21 03:35:58 | 
| 合計ジャッジ時間 | 2,944 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 | 
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	int n,m;
	string s[1000];
	cin>>n>>m;
	for(int i=0;i<n;i++)
		cin>>s[i];
	int ans=0;
	for(int i=0;i<m;i++){
		int cnt=1;
		for(int j=0;j<n;j++)
			if(s[j][i]=='x')
				cnt++;
		ans=max(ans,cnt);
	}
	cout<<ans<<endl;
}
            
            
            
        