結果

問題 No.446 ゆきこーだーの雨と雪 (1)
コンテスト
ユーザー cra77756176
提出日時 2022-12-10 22:28:41
言語 Rust
(1.99.0 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 828µs
コード長 427 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 717 ms
コンパイル使用メモリ 178,176 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-10-11 23:45:07
合計ジャッジ時間 2,273 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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