結果

問題 No.1643 Not Substring
ユーザー tonyu0
提出日時 2021-08-13 21:44:26
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 12,758 ms
コンパイル使用メモリ 401,580 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-03 21:43:43
合計ジャッジ時間 13,334 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::*;

fn main() {
    let mut s: String = String::new();
    std::io::stdin().read_to_string(&mut s).ok();
    let mut itr = s.trim().split_whitespace();
    let mut s: Vec<char> = itr.next().unwrap().chars().collect();
    s.push('*');
    for i in 0..s.len() {
        print!("a");
        if s[i] != 'a' {
            break;
        }
    }
}
0