atcoder-solutionsatcoder-solutions
abc452_a

Gothec の解説

回答 by @ohnuma

解説

ただひたすらとやるのみ。

fn main() { input! { m: usize, d: usize } let v = vec![(1, 7), (3, 3), (5, 5), (7, 7), (9, 9)]; if v.contains(&(m, d)) { println!("Yes"); } else { println!("No"); } }

コメント