結果

問題 No.83 最大マッチング
ユーザー wraikny
提出日時 2018-05-25 14:17:00
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 332 bytes
コンパイル時間 10,461 ms
コンパイル使用メモリ 403,728 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 17:58:49
合計ジャッジ時間 11,238 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    let mut input = String::new();

    io::stdin().read_line(&mut input).unwrap();

    let mut n : u32 = input.trim().parse().unwrap();

    let digits = n / 2;

    n = n - digits * 2;

    print!("{}", if n == 0 {1} else {7});

    for _ in 0..digits-1 {
        print!("1");
    }

    print!("\n");
}
0