Please read the new rule regarding the restriction on the use of AI tools. ×

AJ_mark26's blog

By AJ_mark26, history, 13 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;
        }
    }
}

}

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

| Write comment?