AC 042, started from the beginning of atcoder with rust to practice my rust
This commit is contained in:
11
atcoder/beginner_contests/abc042/src/bin/a.rs
Normal file
11
atcoder/beginner_contests/abc042/src/bin/a.rs
Normal 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"});
|
||||
}
|
||||
Reference in New Issue
Block a user