結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
sampleuser
|
| 提出日時 | 2025-01-25 16:54:42 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 678 bytes |
| コンパイル時間 | 12,929 ms |
| コンパイル使用メモリ | 402,624 KB |
| 実行使用メモリ | 25,984 KB |
| 平均クエリ数 | 11.61 |
| 最終ジャッジ日時 | 2025-01-25 23:56:15 |
| 合計ジャッジ時間 | 15,541 ms |
|
ジャッジサーバーID (参考情報) |
judge13 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
#[rustfmt::skip]
pub mod lib {
// pub use ac_library::*;
// pub use itertools::{Combinations, Itertools, MultiProduct, Permutations};
pub use proconio::{input,marker::{Chars, Usize1}};
// pub use std::{cmp::*, collections::*, mem::swap};
// pub use regex::Regex;
// pub use superslice::Ext;
}
pub use lib::*;
use proconio::input_interactive;
fn main() {
let ceil2 = |n: usize| {
(n + 2 - 1) / 2
};
let mut m = 10usize.pow(9);
loop {
let now = ceil2(m);
println!("{}", now);
input_interactive! {
rtn: isize
}
if rtn != 0 {
return
}
m = now;
}
}
sampleuser