結果

問題 No.1591 Two Digits
ユーザー yuzu32ut
提出日時 2022-03-01 14:44:38
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 26,752 ms
コンパイル使用メモリ 388,684 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-07 20:46:52
合計ジャッジ時間 13,512 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 12 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

fn read() -> usize {
    let mut buf: String = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    buf.trim().parse().unwrap()
}

fn solve(n: usize) -> &'static str {
    if (0..=99).contains(&n) {
        "Yes"
    } else {
        "No"
    }
}

fn main() {
    println!("{}", solve(read()));
}
0