結果
問題 |
No.2481 Shiritori
|
ユーザー |
|
提出日時 | 2023-09-22 22:28:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 3,797 ms |
コンパイル使用メモリ | 252,144 KB |
最終ジャッジ日時 | 2025-02-17 00:50:40 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 19 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll=long long; int main() { ll n,m; cin>>n>>m; string f="First",s="second"; if(m==1)cout<<f<<endl; else if(m==2&&n==2)cout<<f<<endl; else if(m%2==0)cout<<f<<endl; else if(n==1&&m%2==1)cout<<f<<endl; else cout<<s<<endl; return 0; }