提出 #51203253


ソースコード 拡げる

use proconio::{input, marker::Chars};

fn main() {
    input! {
        n: usize,
        d: usize,
        s: [Chars; n],
    };
    let mut max = 0_usize;
    let mut count = 0_usize;
    for j in 0..d {
        let mut all = true;
        for i in 0..n {
            if s[i][j] == 'x' {
                all = false;
                break;
            }
        }
        if all {
            count += 1;
            max = max.max(count);
        } else {
            count = 0;
        }
    }
    let ans = max;
    println!("{}", ans);
}

提出情報

提出日時
問題 C - Vacation Together
ユーザ bouzuya
言語 Rust (rustc 1.70.0)
得点 200
コード長 543 Byte
結果 AC
実行時間 1 ms
メモリ 2120 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 1 ms 1792 KiB
00_sample_01.txt AC 1 ms 2068 KiB
00_sample_02.txt AC 0 ms 1792 KiB
00_sample_03.txt AC 0 ms 1916 KiB
00_sample_04.txt AC 1 ms 1888 KiB
01_random_00.txt AC 1 ms 1844 KiB
01_random_01.txt AC 1 ms 1944 KiB
01_random_02.txt AC 1 ms 2120 KiB
01_random_03.txt AC 1 ms 1912 KiB
01_random_04.txt AC 1 ms 1988 KiB
01_random_05.txt AC 1 ms 2024 KiB
01_random_06.txt AC 1 ms 1904 KiB
01_random_07.txt AC 1 ms 1920 KiB
01_random_08.txt AC 0 ms 1920 KiB
01_random_09.txt AC 1 ms 1896 KiB
01_random_10.txt AC 1 ms 1964 KiB
02_corner_00.txt AC 1 ms 1956 KiB
02_corner_01.txt AC 1 ms 1904 KiB
03_handmade_00.txt AC 0 ms 1984 KiB
03_handmade_01.txt AC 1 ms 1984 KiB
03_handmade_02.txt AC 0 ms 1928 KiB
03_handmade_03.txt AC 1 ms 1904 KiB
03_handmade_04.txt AC 1 ms 1916 KiB
04_d_eq_1_00.txt AC 0 ms 2060 KiB
04_d_eq_1_01.txt AC 0 ms 2056 KiB