complete 11505.rs 16978.rs 26209.rs
This commit is contained in:
15
storage/zeta/rs/completed/26209.rs
Normal file
15
storage/zeta/rs/completed/26209.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::io::{read_to_string, stdin};
|
||||
|
||||
fn main() {
|
||||
let temp = read_to_string(stdin()).unwrap();
|
||||
let mut iter = temp
|
||||
.split_ascii_whitespace()
|
||||
.map(|x| x.parse::<usize>().unwrap());
|
||||
|
||||
let arr = (0..8).map(|_| iter.next().unwrap()).collect::<Vec<_>>();
|
||||
if arr.iter().any(|&x| x == 9) {
|
||||
println!("F");
|
||||
} else {
|
||||
println!("S");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user