結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー cra77756176cra77756176
提出日時 2022-12-10 22:28:41
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 427 bytes
コンパイル時間 13,374 ms
コンパイル使用メモリ 379,560 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 23:57:31
合計ジャッジ時間 13,619 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut xx = String::new();
    std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
    let xx: Vec<&str> = xx.split_whitespace().collect();

    for x in xx {
        match x.parse::<i64>() {
            Ok(n) if (0..=12345).contains(&n) && n.to_string() == x => {}
            _ => {
                println!("NG");
                return;
            }
        }
    }

    println!("OK");
}
0