結果
問題 | No.2481 Shiritori |
ユーザー |
|
提出日時 | 2023-09-22 22:24:01 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 10,717 ms |
コンパイル使用メモリ | 402,540 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 13:09:09 |
合計ジャッジ時間 | 12,090 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
fn main() {let (n, m) = {let mut line = String::new();std::io::stdin().read_line(&mut line).unwrap();let mut iter = line.split_whitespace();(iter.next().unwrap().parse::<usize>().unwrap(),iter.next().unwrap().parse::<usize>().unwrap(),)};let ans = if n == 1 || m == 1 || n % 2 == 1 || m == 2 {"First"} else {"Second"};println!("{}", ans);}