結果

問題 No.1184 Hà Nội
ユーザー phsplsphspls
提出日時 2020-09-05 15:26:02
言語 Rust
(1.72.1)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 138,988 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-19 03:17:59
合計ジャッジ時間 3,154 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 0 ms
4,376 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 WA -
testcase_20 AC 1 ms
4,380 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut nl = String::new();
    std::io::stdin().read_line(&mut nl).ok();
    let nl: Vec<u64> = nl.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
    let n = nl[0] / nl[1] + if nl[0] % nl[1] > 0 { 1 } else { 0 };

    println!("{}", (2 * n - 1) % 998244353);
}
0