結果
問題 |
No.1184 Hà Nội
|
ユーザー |
|
提出日時 | 2024-06-11 14:35:54 |
言語 | Rust (1.83.0 + proconio) |
結果 |
TLE
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 12,831 ms |
コンパイル使用メモリ | 380,420 KB |
実行使用メモリ | 7,168 KB |
最終ジャッジ日時 | 2024-06-11 14:36:13 |
合計ジャッジ時間 | 17,141 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 TLE * 1 -- * 6 |
ソースコード
fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: Vec<u64> = s.split_whitespace().flat_map(str::parse).collect(); let m = n[0] / n[1] + if n[0] % n[1] == 0 { 0 } else { 1 }; let mut a = 2; for _ in 1..m { a = a * 2 % 998244353; } println!("{}", a - 1) }