Accepted
Code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int frnd = 0;
for(int i=0; i<N; i++) {
int nfrnd = sc.nextInt();
frnd ^= nfrnd;
}
System.out.println(frnd);
sc.close();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1095 Uncovering the Lone Heart
- Contest
- Brain Booster #6
- Language
- Java 8 (OpenJDK 1.8.0_422)
- Submit At
- 2024-10-03 17:21:22
- Judged At
- 2024-11-11 02:46:20
- Judged By
- Score
- 100
- Total Time
- 600ms
- Peak Memory
- 50.48 MiB