結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2024-07-30 09:49:42 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 11,013 ms |
コンパイル使用メモリ | 404,892 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-30 09:49:55 |
合計ジャッジ時間 | 12,622 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
warning: function `proc` is never used --> src/main.rs:9:4 | 9 | fn proc(a: u64, b: u64) -> u64 { | ^^^^ | = note: `#[warn(dead_code)]` on by default
ソースコード
fn main() { proconio::input! { l: u64, } let ans = l.next_power_of_two().trailing_zeros(); println!("{ans}"); } fn proc(a: u64, b: u64) -> u64 { b.div_ceil(a) } #[cfg(test)] mod test { use super::*; #[test] fn test() { assert_eq!(proc(2, 5), 3); } }