結果

問題 No.2016 Countdown Divisors
ユーザー phsplsphspls
提出日時 2022-09-05 00:12:56
言語 Rust
(1.77.0)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 397 bytes
コンパイル時間 12,831 ms
コンパイル使用メモリ 379,016 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-29 23:04:23
合計ジャッジ時間 16,570 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 138 ms
5,376 KB
testcase_02 AC 140 ms
5,376 KB
testcase_03 AC 123 ms
5,376 KB
testcase_04 AC 110 ms
5,376 KB
testcase_05 AC 106 ms
5,376 KB
testcase_06 AC 40 ms
5,376 KB
testcase_07 AC 39 ms
5,376 KB
testcase_08 AC 137 ms
5,376 KB
testcase_09 AC 137 ms
5,376 KB
testcase_10 AC 138 ms
5,376 KB
testcase_11 AC 138 ms
5,376 KB
testcase_12 AC 138 ms
5,376 KB
testcase_13 AC 129 ms
5,376 KB
testcase_14 AC 125 ms
5,376 KB
testcase_15 AC 124 ms
5,376 KB
testcase_16 AC 133 ms
5,376 KB
testcase_17 AC 127 ms
5,376 KB
testcase_18 AC 128 ms
5,376 KB
testcase_19 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut t = String::new();
    std::io::stdin().read_line(&mut t).ok();
    let t: usize = t.trim().parse().unwrap();
    let target = vec![1,3,4,5,7,8];
    for _ in 0..t {
        let mut n = String::new();
        std::io::stdin().read_line(&mut n).ok();
        let n: usize = n.trim().parse().unwrap();
        println!("{}", if target.contains(&n) { 1 } else { 2 });
    }
}
0