結果
問題 | No.2481 Shiritori |
ユーザー |
|
提出日時 | 2024-10-11 22:01:30 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 505 bytes |
コンパイル時間 | 1,111 ms |
コンパイル使用メモリ | 114,708 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 22:01:33 |
合計ジャッジ時間 | 2,340 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
#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;}