結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-01-03 19:12:39 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 260 bytes |
| コンパイル時間 | 12,949 ms |
| コンパイル使用メモリ | 379,092 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 02:22:57 |
| 合計ジャッジ時間 | 13,008 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
fn main() {
let mut n = String::new();
std::io::stdin().read_line(&mut n).ok();
let mut n: usize = n.trim().parse().unwrap();
let mut s = String::new();
if n % 2 == 1 {
s += "7";
n -= 3;
}
while n > 0 {
s += "1";
n -= 2;
}
println!("{}", s);
}
ixTL255