結果

問題 No.3060 サンプルケース至上主義
ユーザー akakimidoriakakimidori
提出日時 2020-04-01 21:28:40
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 720 bytes
コンパイル時間 613 ms
コンパイル使用メモリ 137,412 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-09 15:39:53
合計ジャッジ時間 1,128 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,504 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::Read;

fn run() {
    let mut s = String::new();
    std::io::stdin().read_to_string(&mut s).unwrap();
    let mut it = s.trim().split_whitespace();
    match it.next().unwrap() {
        "0" => {
            println!("Nothing");
        },
        "3.14159265" => {
            println!("pi");
        },
        "1112345678999+X" => {
            println!("九蓮宝燈\nThirteen Orphans");
        },
        "All" => {
            for a in [3, 4, 4, 3, 6, 2, 2].iter() {
                println!("{}", *a);
            }
        },
        "くぁwせdrftgyふじこlp" => {
            println!("さmpぇ");
        }
        _ => unreachable!(),
    }
}

fn main() {
    run();
}
0