結果
| 問題 |
No.1908 Assault for Keys
|
| コンテスト | |
| ユーザー |
yukster714
|
| 提出日時 | 2023-05-06 00:07:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 644 ms |
| コンパイル使用メモリ | 71,936 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 13:11:59 |
| 合計ジャッジ時間 | 1,964 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n,m; cin>>n>>m;
vector<int> k(m);
for(int i=0;i<n;i++){
string s; cin>>s;
for(int j=0;j<m;j++)
if(s[j]=='o')
k[j]++;
}
cout << n-*min_element(k.begin(),k.end())+1<< endl;
return 0;
}
yukster714