atcoder-solutionsatcoder-solutions
abc466_a

Compromise の解説

解説 by @ohnuma

解説

Iteratorトレイトのall APIを使うことで気持ちよくかけます。

fn main() { input! { n: usize, x: [isize; n] } let ans = if x.iter().all(|&e| e < 0) {"Yes"} else {"No"}; println!("{}", ans); }

コメント