ABC 048, finished all with help of editorial
This commit is contained in:
13
atcoder/beginner_contests/abc048/src/bin/d.rs
Normal file
13
atcoder/beginner_contests/abc048/src/bin/d.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main(){
|
||||
input!{
|
||||
s: String,
|
||||
};
|
||||
|
||||
if (s.len() % 2 == 0) ^ (s.chars().next().unwrap() == s.chars().last().unwrap()) {
|
||||
println!("Second");
|
||||
} else {
|
||||
println!("First");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user