結果

問題 No.2481 Shiritori
ユーザー HIcoder
提出日時 2024-10-11 22:01:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 505 bytes
コンパイル時間 959 ms
コンパイル使用メモリ 113,104 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-20 02:18:18
合計ジャッジ時間 1,982 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<queue>
#include<vector>
#include<cassert>
#include<random>
#include<set>
#include<map>
#include<cassert>
#include<unordered_map>
#include<bitset>
#include<numeric>
#include<algorithm>
using namespace std;
typedef long long ll;
const int inf=1<<30;
const ll INF=1LL<<62;
typedef pair<int,ll> P;
typedef pair<int,P> PP; 
const ll MOD=998244353;


int main(){
    ll N,M;
    cin>>N>>M;

    bool ans=(M<=2 || N%2==1);

    cout<<(ans?"First":"Second")<<endl;

}
0