Module a
Expand description
ยงABC 365 A - Leap Year
refs: https://atcoder.jp/contests/abc365/tasks/abc365_a
use proconio::input;
fn main() {
input! {
y: usize,
}
let ans = match y {
y if y % 400 == 0 => 366,
y if y % 100 == 0 => 365,
y if y % 4 == 0 => 366,
_ => 365,
};
println!("{ans}");
}