結果

問題 No.83 最大マッチング
ユーザー phspls
提出日時 2020-02-23 18:54:22
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 318 bytes
コンパイル時間 11,813 ms
コンパイル使用メモリ 401,352 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-10 19:35:03
合計ジャッジ時間 12,967 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: usize = n.trim().parse().unwrap();

    let count = n / 2;
    for i in 0..count {
        if i == 0 && n % 2 == 1 {
            print!("7");
        } else {
            print!("1");
        }
    }
    println!("");
}
0