結果

問題 No.2828 Remainder Game
ユーザー Yukino DX.Yukino DX.
提出日時 2024-08-03 10:19:56
言語 Rust
(1.77.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 457 bytes
コンパイル時間 11,757 ms
コンパイル使用メモリ 394,132 KB
実行使用メモリ 25,476 KB
平均クエリ数 22.00
最終ジャッジ日時 2024-08-03 10:20:12
合計ジャッジ時間 15,025 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
24,592 KB
testcase_01 AC 63 ms
24,924 KB
testcase_02 AC 62 ms
24,848 KB
testcase_03 AC 62 ms
24,976 KB
testcase_04 AC 67 ms
24,848 KB
testcase_05 AC 65 ms
25,220 KB
testcase_06 AC 61 ms
24,964 KB
testcase_07 AC 62 ms
25,220 KB
testcase_08 AC 61 ms
25,220 KB
testcase_09 AC 63 ms
24,836 KB
testcase_10 AC 61 ms
24,580 KB
testcase_11 AC 62 ms
24,836 KB
testcase_12 AC 62 ms
24,836 KB
testcase_13 AC 61 ms
24,580 KB
testcase_14 AC 62 ms
25,476 KB
testcase_15 AC 64 ms
25,208 KB
testcase_16 AC 66 ms
25,208 KB
testcase_17 AC 63 ms
25,208 KB
testcase_18 AC 63 ms
24,568 KB
testcase_19 AC 63 ms
24,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input_interactive;

fn main() {
    input_interactive! {
        _:usize,
    }

    let mut ans = 0;
    let mut pow2 = 1;
    for _ in 0..10 {
        println!("{} {}", pow2 * 2, pow2);
        for j in pow2..pow2 * 2 {
            print!("{} ", j);
        }
        println!();

        input_interactive! {
            c:usize,
        }

        ans += c * pow2;
        pow2 *= 2;
    }

    println!("0 1");
    println!("{}", ans);
}
0