/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 4ms 532.0 KiB

Code

#include <bits/stdc++.h>
#define fast ios::sync_with_stdio(false)
#define ct cin.tie(nullptr)
#define ll long long
#define nl '\n'
#define newline cout<<'\n'
#define yes cout<<"YES"<<'\n'
#define no cout<<"NO"<<'\n'
using namespace std;
void solve()
{


}
int main()
{
    fast;
    ct;
   //int t;
    //cin>>t;
    //while(t--)

        int x,y,z;
        cin>>x>>y>>z;
        vector<int>odd,even;
        if(x%2==0)
            even.push_back(x);
        else
            odd.push_back(x);
        if(y%2==0)
            even.push_back(y);
        else
            odd.push_back(y);
        if(z%2==0)
            even.push_back(z);
        else
            odd.push_back(z);
        if(odd.size()>even.size())
            cout<<even[0]<<nl;
        else
            cout<<odd[0]<<nl;
}

Information

Submit By
Type
Submission
Problem
P1232 Parity
Contest
LUCC Presents Intra LU Junior Programming Contest - Replay
Language
C++17 (G++ 13.2.0)
Submit At
2025-09-02 15:31:39
Judged At
2025-09-02 15:31:39
Judged By
Score
100
Total Time
4ms
Peak Memory
532.0 KiB