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

problem 1858A

Revision en3, by AJ_mark26, 2023-08-18 03:31:17

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;
        }
    }
}

}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English AJ_mark26 2023-08-18 03:31:17 0 Tiny change: '[problem:1' -> '\n[problem:1'
en2 English AJ_mark26 2023-08-18 03:29:50 17 Tiny change: '# include ' -> '[problem:1858A]\n# include '
en1 English AJ_mark26 2023-08-18 03:27:55 510 Initial revision (published)