結果

問題 No.2285 Make A Unit Square
ユーザー planesplanes
提出日時 2023-04-28 22:25:41
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 1,571 ms
コンパイル使用メモリ 165,776 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 23:55:54
合計ジャッジ時間 2,532 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 #define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)

ll INF=2e18;

void solve() {
ll a,b;cin>>a>>b;
ll A=a/2;
ll B=b/2;
if(A%2==0&&B%2!=0) cout<<"First"<<endl;
else if(A%2!=0&&B%2==0)cout<<"First"<<endl;
else cout<<"Second"<<endl;




}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll t;cin>>t;
  for(ll i=0;i<t;i++) {
    solve();
  }

}


  
0