結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2024-05-14 13:10:24 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 12,816 ms |
コンパイル使用メモリ | 404,932 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-20 09:55:57 |
合計ジャッジ時間 | 13,809 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let n: u32 = s.trim().parse().unwrap();let mut s = String::from(if n % 2 == 0 { "1" } else { "7" });(0..n / 2 - 1).for_each(|_| s.push('1'));println!("{}", s);}