Module a
Expand description
ยงABC 391 A - Lucky Direction
refs: https://atcoder.jp/contests/abc391/tasks/abc391_a
use proconio::input;
fn main() {
input! { d: String }
let ans = match d.as_str() {
"N" => "S",
"S" => "N",
"W" => "E",
"E" => "W",
"NE" => "SW",
"SW" => "NE",
"NW" => "SE",
"SE" => "NW",
_ => {
panic!("unreachable")
}
};
println!("{ans}");
}