結果
問題 | No.83 最大マッチング |
ユーザー | wraikny |
提出日時 | 2018-05-25 14:15:39 |
言語 | Rust (1.77.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 139,164 KB |
実行使用メモリ | 2,012 KB |
最終ジャッジ日時 | 2023-09-11 03:25:56 |
合計ジャッジ時間 | 13,284 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | OLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
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 1..digits-2 { print!("1"); } print!("\n"); }