結果

問題 No.83 最大マッチング
ユーザー tabataba
提出日時 2024-07-30 09:53:54
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 13,260 ms
コンパイル使用メモリ 390,152 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-30 09:54:09
合計ジャッジ時間 13,083 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 1 ms
6,816 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: function `proc` is never used
  --> src/main.rs:17:4
   |
17 | fn proc(a: u64, b: u64) -> u64 {
   |    ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

ソースコード

diff #

fn main() {
    proconio::input! {
        mut l: u64,
    }
    while l > 1 {
        if l == 3 {
            print!("7");
            break;
        } else {
            print!("1");
        }
        l /= 2;
    }
    println!();
}

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);
    }
}
0