codeground_1
#This code is written in c++. and topic is from codeground practice number 1. #topic : There is a text file(description is on next line!).
text file
#1 <- amount of cases #4 <- amount of 'numbers' #2 5 3 3 <- numbers
#The problem says that we have to do 'xor calculation' by using 'numbers' called odd times. #first line means numbers of cases, program must loop 'case' times. #second line means amount of numbers, final line is numbers. #for example, file is like this. #2 #3 #1 2 3 #4 #1 1 3 2 #The program must calculate 2 cases, each case is '1 2 3' and '1 1 3 2'. #In first case, the number(1,2,3) is all called odd times, so answer is 1 xor 2 xor 3 #In second, the number(1,2,3) is called odd times except '1', so answer is 2 xor 3
#The End.