/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 93ms 15.453 MiB
#2 Accepted 619ms 54.719 MiB
#3 Accepted 640ms 56.672 MiB
#4 Accepted 681ms 54.789 MiB
#5 Accepted 668ms 52.852 MiB
#6 Accepted 634ms 54.32 MiB

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-10-03 17:21:22
Judged By
Score
100
Total Time
681ms
Peak Memory
56.672 MiB