結果
| 問題 | No.2481 Shiritori |
| コンテスト | |
| ユーザー |
nono00
|
| 提出日時 | 2023-09-22 22:00:40 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 208µs | |
| コード長 | 534 bytes |
| 記録 | |
| コンパイル時間 | 2,001 ms |
| コンパイル使用メモリ | 332,124 KB |
| 実行使用メモリ | 9,412 KB |
| 最終ジャッジ日時 | 2026-07-12 09:36:16 |
| 合計ジャッジ時間 | 3,650 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
#include <bits/stdc++.h>
namespace nono {
void solve() {
long long n, m;
std::cin >> n >> m;
bool first = false;
if (m <= 2) {
first = true;
} else if (n % 2 == 1) {
first = true;
}
if (first) {
std::cout << "First" << std::endl;
} else {
std::cout << "Second" << std::endl;
}
}
} // namespace nono
int main() {
std::cin.tie(0)->sync_with_stdio(false);
std::cout << std::fixed << std::setprecision(15);
int t = 1;
while (t--) nono::solve();
}
nono00