結果

問題 No.2460 #強調#
ユーザー e6nlaq
提出日時 2024-08-02 09:40:27
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 12,558 ms
コンパイル使用メモリ 405,424 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-08-02 09:40:43
合計ジャッジ時間 14,083 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fn main() {
    input! {
        // Input
        s:Chars
    };

    let mut flag = false;
    for c in s {
        if flag && c != '#' {
            print!("{}", c);
        }

        if c == '#' {
            flag = !flag;
        }
    }

    println!("");
}
0