提出 #43839483


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
#define int long long
  
signed main(){
  int n;
  int d;
  cin>>n>>d;
  string s[n];
  for(int i=0;i<n;i++) cin>>s[i];
  int mxd=0;
  int cd=0;
  for(int i=0;i<d;i++){
    int fl=1;
    for(int j=0;j<n;j++){
      if(s[j][i]=='x'){
        fl=0;
        break;
      }
    }
    if(fl==1){
      cd++;
    }
    else{
      cd=0;
    }
    mxd=max(mxd,cd);
  }
  cout<<mxd<<endl;
}


提出情報

提出日時
問題 B - Vacation Together
ユーザ chacoder
言語 C++ (GCC 9.2.1)
得点 200
コード長 463 Byte
結果 AC
実行時間 7 ms
メモリ 3592 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 5
AC × 25
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 02_corner_00.txt, 02_corner_01.txt, 03_handmade_00.txt, 03_handmade_01.txt, 03_handmade_02.txt, 03_handmade_03.txt, 03_handmade_04.txt, 04_d_eq_1_00.txt, 04_d_eq_1_01.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 7 ms 3560 KiB
00_sample_01.txt AC 2 ms 3508 KiB
00_sample_02.txt AC 2 ms 3416 KiB
00_sample_03.txt AC 2 ms 3560 KiB
00_sample_04.txt AC 2 ms 3384 KiB
01_random_00.txt AC 2 ms 3512 KiB
01_random_01.txt AC 2 ms 3572 KiB
01_random_02.txt AC 2 ms 3532 KiB
01_random_03.txt AC 2 ms 3484 KiB
01_random_04.txt AC 2 ms 3548 KiB
01_random_05.txt AC 2 ms 3500 KiB
01_random_06.txt AC 2 ms 3500 KiB
01_random_07.txt AC 2 ms 3516 KiB
01_random_08.txt AC 2 ms 3512 KiB
01_random_09.txt AC 2 ms 3380 KiB
01_random_10.txt AC 4 ms 3456 KiB
02_corner_00.txt AC 2 ms 3592 KiB
02_corner_01.txt AC 2 ms 3528 KiB
03_handmade_00.txt AC 2 ms 3368 KiB
03_handmade_01.txt AC 2 ms 3556 KiB
03_handmade_02.txt AC 2 ms 3440 KiB
03_handmade_03.txt AC 2 ms 3372 KiB
03_handmade_04.txt AC 2 ms 3436 KiB
04_d_eq_1_00.txt AC 2 ms 3564 KiB
04_d_eq_1_01.txt AC 2 ms 3564 KiB