結果

問題 No.1184 Hà Nội
ユーザー phspls
提出日時 2020-09-05 15:26:02
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 11,277 ms
コンパイル使用メモリ 402,716 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-28 16:28:08
合計ジャッジ時間 12,509 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 WA * 11
権限があれば一括ダウンロードができます

ソースコード

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