結果
問題 | No.2481 Shiritori |
ユーザー |
![]() |
提出日時 | 2023-09-22 22:00:40 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 3,060 ms |
コンパイル使用メモリ | 243,500 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 12:45:08 |
合計ジャッジ時間 | 3,272 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
#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 nonoint main() {std::cin.tie(0)->sync_with_stdio(false);std::cout << std::fixed << std::setprecision(15);int t = 1;while (t--) nono::solve();}