結果
問題 | No.2828 Remainder Game |
ユーザー |
|
提出日時 | 2024-08-03 10:19:56 |
言語 | Rust (1.83.0 + proconio) |
結果 |
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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
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);}