結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
![]() |
提出日時 | 2025-01-25 12:45:27 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 10,209 ms |
コンパイル使用メモリ | 401,120 KB |
実行使用メモリ | 25,984 KB |
平均クエリ数 | 11.61 |
最終ジャッジ日時 | 2025-01-25 22:20:17 |
合計ジャッジ時間 | 13,745 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 |
コンパイルメッセージ
warning: unused import: `input` --> src/main.rs:1:16 | 1 | use proconio::{input, input_interactive}; | ^^^^^ | = note: `#[warn(unused_imports)]` on by default
ソースコード
use proconio::{input, input_interactive}; fn main() { let mut n = 1_000__000__000; let m = 30; for _ in 0..m{ println!("{}",n/2+1); input_interactive!{ op: usize } if op == 1{ break; } n /= 2 } }