結果

問題 No.1908 Assault for Keys
ユーザー asaringoasaringo
提出日時 2022-04-23 11:57:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 725 bytes
コンパイル時間 1,680 ms
コンパイル使用メモリ 166,756 KB
実行使用メモリ 9,112 KB
最終ジャッジ日時 2023-09-07 04:25:23
合計ジャッジ時間 4,149 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 58 ms
8,344 KB
testcase_03 AC 56 ms
8,704 KB
testcase_04 AC 55 ms
8,596 KB
testcase_05 AC 57 ms
8,616 KB
testcase_06 AC 60 ms
8,128 KB
testcase_07 AC 56 ms
8,572 KB
testcase_08 AC 56 ms
8,884 KB
testcase_09 AC 57 ms
8,596 KB
testcase_10 AC 56 ms
9,092 KB
testcase_11 AC 57 ms
8,308 KB
testcase_12 AC 57 ms
8,888 KB
testcase_13 AC 58 ms
7,836 KB
testcase_14 AC 59 ms
8,440 KB
testcase_15 AC 57 ms
9,112 KB
testcase_16 AC 2 ms
4,380 KB
testcase_17 WA -
testcase_18 AC 60 ms
7,176 KB
testcase_19 AC 56 ms
8,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std ;
typedef long long ll ;
typedef long double ld ;
typedef pair<ll,ll> P ;
typedef tuple<bool,ll,ll,ll> TP ;
#define chmin(a,b) a = min(a,b)
#define chmax(a,b) a = max(a,b)
#define bit_count(x) __builtin_popcountll(x)
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) a / gcd(a,b) * b
#define rep(i,n) for(int i = 0 ; i < n ; i++)
#define rrep(i,a,b) for(int i = a ; i < b ; i++)
#define endl "\n"

int n , m ;
char S[1010][1010] ;
vector<int> vec[1010] ;

int main(){
    cin >> n >> m ;
    rep(i,n) rep(j,m){
        cin >> S[i][j] ;
        if(S[i][j] == 'o') vec[j].push_back(i) ;
    }
    int res = 0 ;
    rep(i,n) chmax(res,n-(int)vec[i].size()+1) ;
    cout << res << endl ;
}
0