結果
| 問題 | No.2828 Remainder Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-03 10:19:56 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 191 ms / 2,000 ms |
| + 2µs | |
| コード長 | 457 bytes |
| 記録 | |
| コンパイル時間 | 10,481 ms |
| コンパイル使用メモリ | 178,824 KB |
| 実行使用メモリ | 6,272 KB |
| 平均クエリ数 | 22.00 |
| 最終ジャッジ日時 | 2026-08-24 20:03:47 |
| 合計ジャッジ時間 | 6,811 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}