結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2018-05-25 14:15:39 |
言語 | Rust (1.83.0 + proconio) |
結果 |
OLE
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 14,562 ms |
コンパイル使用メモリ | 377,144 KB |
実行使用メモリ | 1,792 KB |
最終ジャッジ日時 | 2024-06-28 17:58:35 |
合計ジャッジ時間 | 23,534 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | OLE * 1 -- * 2 |
other | -- * 10 |
ソースコード
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"); }