fn main() { let day = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31].to_vec(); let mut ans = 0; for i in 1..13 { for j in 1..day[i] + 1 { if i == j % 10 + j / 10 { ans += 1; } } } println!("{}", ans); }