結果

問題 No.1591 Two Digits
ユーザー yuzu32utyuzu32ut
提出日時 2022-03-01 14:44:38
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 1,886 ms
コンパイル使用メモリ 135,624 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-22 03:59:52
合計ジャッジ時間 2,898 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 0 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 0 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

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