AC 042, started from the beginning of atcoder with rust to practice my rust

This commit is contained in:
2022-05-28 13:22:50 +02:00
parent 39cd71c117
commit b378c4cb07
6 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
use proconio::input;
fn main() {
input!{
mut abc: [u8; 3],
};
abc.sort();
let ans = abc == vec![5, 5, 7];
println!("{}", if ans {"YES"} else {"NO"});
}