ABC 046, wip on c and d
This commit is contained in:
17
atcoder/beginner_contests/abc046/src/bin/a.rs
Normal file
17
atcoder/beginner_contests/abc046/src/bin/a.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main(){
|
||||
input!{
|
||||
a: u8,
|
||||
b: u8,
|
||||
c: u8,
|
||||
};
|
||||
|
||||
if a == b && b == c {
|
||||
println!("1");
|
||||
} else if a == b || b == c || a == c {
|
||||
println!("2");
|
||||
} else {
|
||||
println!("3");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user