結果

問題 No.83 最大マッチング
コンテスト
ユーザー taba
提出日時 2024-07-30 09:55:51
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 2 ms / 5,000 ms
+ 113µs
コード長 371 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 507 ms
コンパイル使用メモリ 182,008 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-08-24 17:43:59
合計ジャッジ時間 1,908 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: function `proc` is never used
  --> src/main.rs:16:4
   |
16 | fn proc(a: u64, b: u64) -> u64 {
   |    ^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

ソースコード

diff #
raw source code

fn main() {
    proconio::input! {
        mut l: u64,
    }
    if l % 2 == 1 {
        print!("7");
        l -= 3;
    }
    while l > 1 {
        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