結果

問題 No.1908 Assault for Keys
ユーザー aradarad
提出日時 2022-04-29 14:27:30
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 1,218 bytes
コンパイル時間 5,594 ms
コンパイル使用メモリ 260,596 KB
実行使用メモリ 5,524 KB
最終ジャッジ日時 2023-09-11 07:04:55
合計ジャッジ時間 7,347 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 25 ms
5,432 KB
testcase_03 AC 24 ms
5,300 KB
testcase_04 AC 24 ms
5,296 KB
testcase_05 AC 25 ms
5,284 KB
testcase_06 AC 25 ms
5,304 KB
testcase_07 AC 24 ms
5,304 KB
testcase_08 AC 24 ms
5,304 KB
testcase_09 AC 25 ms
5,352 KB
testcase_10 AC 24 ms
5,308 KB
testcase_11 AC 25 ms
5,340 KB
testcase_12 AC 25 ms
5,524 KB
testcase_13 AC 26 ms
5,436 KB
testcase_14 AC 26 ms
5,276 KB
testcase_15 AC 25 ms
5,312 KB
testcase_16 AC 2 ms
4,380 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 26 ms
5,364 KB
testcase_19 AC 22 ms
5,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll = long long;
using VI = vector<int>;
using VVI = vector<VI>;
using VL = vector<ll>;
using VVL = vector<VL>;
using VS = vector<string>;
using P = pair<ll,ll>;
using VP = vector<P>;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define out(x) cout << x << endl
#define dout(x) cout << fixed << setprecision(10) << x << endl;
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x.size())
#define re0 return 0
#define pcnt __builtin_popcount
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//const int INF = 1001001001;
const ll INF = 1e18;
//using mint = modint1000000007;
//using mint = modint998244353;
int di[4] = {0,-1,0,1};
int dj[4] = {-1,0,1,0};

int main(){
    int n,m;
    cin >> n >> m;
    vector<string> s(n);
    rep(i,n) cin >> s[i];
    ll ans = 0;
    rep(j,m){
        ll cnt = 0;
        rep(i,n) if(s[i][j] == 'x') cnt++;
        chmax(ans,cnt);
    }
    out(ans+1);
}
0