Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int a,b,c;
cin>>a>>b>>c;
if(a%2!=0 && b%2!=0)
{
cout<<c;
}
else if(a%2!=0 && c%2!=0)
{
cout<<b;
}
else if(b%2!=0 && c%2!=0)
{
cout<<a;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-01 05:28:27
- Judged At
- 2025-09-01 05:28:27
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB