結果

問題 No.1591 Two Digits
コンテスト
ユーザー yuzu32ut
提出日時 2022-03-01 14:44:38
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 314 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,117 ms
コンパイル使用メモリ 194,888 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2026-03-29 11:40:15
合計ジャッジ時間 14,683 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 12 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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