結果
| 問題 |
No.2481 Shiritori
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 22:24:01 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 461 bytes |
| コンパイル時間 | 13,363 ms |
| コンパイル使用メモリ | 390,656 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-20 01:51:42 |
| 合計ジャッジ時間 | 14,862 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
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);
}