AJ_mark26's blog

By AJ_mark26, history, 15 months ago, In English

1858A - Buttons

include <bits/stdc++.h>

using namespace std;

int main(){ int n; cin>>n;

for(int i=0; i<n; i++){
    int a,b,c;
    cin>>a>>b>>c;

    if(a+c > b+c){
        cout<<"First"<<endl;
    }
    else if(a+c < b+c){
        cout<<"Second"<<endl;
    }
    else{
        if((a+b+c)%2){
            cout<<"First"<<endl;
        }
        else{
            cout<<"Second"<<endl;
        }
    }
}

}

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it