Module a
Expand description
ยงABC 398 A - Doors in the Center
refs: https://atcoder.jp/contests/abc398/tasks/abc398_a
use proconio::input;
fn main() {
input! {
n: usize
}
match n % 2 {
0 => {
let rep = (n / 2) - 1;
println!("{}=={}", "-".repeat(rep), "-".repeat(rep));
}
_ => {
let rep = n / 2;
println!("{}={}", "-".repeat(rep), "-".repeat(rep));
}
}
}