Accepted
Code
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x,y,z;
x = sc.nextInt();
y = sc.nextInt();
z = sc.nextInt();
if(x%2==0 && y%2==0){
System.out.println(z);
}
else if(y%2==0&& z%2==0){
System.out.println(x);
}
else{
System.out.println(y);
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- Java 8 (OpenJDK 1.8.0_422)
- Submit At
- 2025-09-01 05:28:02
- Judged At
- 2025-09-01 05:28:02
- Judged By
- Score
- 100
- Total Time
- 89ms
- Peak Memory
- 11.309 MiB