結果

問題 No.341 沈黙の期間
ユーザー dnikkdnikk
提出日時 2018-07-18 14:54:50
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 16,885 ms
コンパイル使用メモリ 386,044 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 13:09:29
合計ジャッジ時間 17,905 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut input = String::new();
    std::io::stdin().read_line(&mut input).ok();

    println!(
        "{}",
        input
            .trim()
            .split(|c| c != '…')
            .map(|x| x.chars().count())
            .max()
            .unwrap()
    );
}
0