Problem:


Score : 100 points

Problem Statement

You are given three integers, A, B and C.

Among them, two are the same, but the remaining one is different from the rest.

For example, when A=5,B=7,C=5, A and C are the same, but B is different.

Find the one that is different from the rest among the given three integers.  

Constraints

-100 \leq A,B,C \leq 100 

A, B and C are integers.

The input satisfies the condition in the statement.

Input

Input is given from Standard Input in the following format:  

A B C

Output

Among A, B and C, print the integer that is different from the rest.

Sample Input 1

5 7 5

Sample Output 1

7

This is the same case as the one in the statement.

Sample Input 2

1 1 7

Sample Output 2

7

In this case, C is the one we seek.

Sample Input 3

-100 100 100

Sample Output 3

-100



Sample input:
5 7 5


Sample output:
7

Submission status: Runtime Error

Solution code:
# -*- coding: UTF-8 -*-

nums = input()
set_nums = list(set(nums))
other = sum(nums) - sum(set_nums)
set_nums.remove(other)
print(set_nums[0])

Submission status: Runtime Error

Solution code:
import sys
from collections import Counter

sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    n = read_int_list()
    c = Counter(n)
    if c == 1:
        print(n)


main()

Submission status: Runtime Error

Solution code:
from sys import stdin
n,k = map(int,stdin.readline().split())
a = []
for i in xrange(n):
 a.append(map(int,stdin.readline().split()))
def solve(i,j):
 cnt = 0
 minx = min(a[i][0],a[j][0])
 maxx =  max(a[i][0],a[j][0])
 miny = min(a[i][1],a[j][1])
 maxy = max(a[i][1],a[j][1])
 for m in xrange(n):
  if a[i][0]>=minx and a[i][0]<=maxx and a[i][1]>=miny and a[i][1]<=maxy:
   cnt+=1
 if cnt>=k:
  return (maxx-minx+1)*(maxy-miny+1)
 return 10**100
ans = 10**50
for i in xrange(n):
 for j in xrange(i+1,n):
  ans = min(ans,solve(i,j))
print ans

Submission status: Runtime Error

Solution code:
nums = input()
set_nums = list(set(nums))
other = sum(nums) - sum(set_nums)
set_nums.remove(other)
print(set_nums[0])

Submission status: Runtime Error

Solution code:
nums = input()
set_nums = list(set(nums))
other = sum(nums) - sum(set_nums)
del set_nums[other]
print(set_nums[0])

Submission status: Runtime Error

Solution code:
l = map(int, raw_input().split( ))
if l[0] == l[1]:
	print(l[2])
elif l[0] == l[2] :
	print(l[1])
else:
	print(l[0])

Submission status: Runtime Error

Solution code:
nums = input()
print(sum(nums) - sum(set(nums)))

Submission status: Runtime Error

Solution code:
nums = input()
print(sum(nums)-sum(set(nums)))

Submission status: Runtime Error

Solution code:
nums = input().strip().split()
print(sum(nums)-sum(set(nums)))

Submission status: Runtime Error

Solution code:
nums = map(int, input().split())
print(sum(nums)-set(nums))

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

(A, B, C) = [int(x) for x in raw_input().split(" ")]

if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
if a[0] == a[1]:
    print(a[3])
elif a[0] == a[2]:
    print(a[1])
elif a[1] == a[2]:
    print(a[0])

Submission status: Runtime Error

Solution code:
a = input().split()
if a[0] == a[1]:
    print(a[3])
elif a[0] == a[2]:
    print(a[1])
elif a[1] == a[2]:
    print(a[0])

Submission status: Runtime Error

Solution code:
if(A == B):
    print(C)
elif(B == C):
    print(A)
else:
    print(B)

Submission status: Runtime Error

Solution code:
a = input().split()
if a[0] == a[1]:
    print(int(a[3]))
elif a[0] == a[2]:
    print(int(a[1]))
elif a[1] == a[2]:
    print(int(a[0]))

Submission status: Runtime Error

Solution code:
puts=input().split()
A = int(inputs[0])
B = int(inputs[1])
C = int(inputs[2])

if A == B:
    print(C)
elif B == C:
    print(A)
else:
    print(B)

Submission status: Runtime Error

Solution code:
Python Editor 5.2.0.    New   Open   Save   Run   Export  untitle.py [no ads ?]  Snippets    

print(A)
1
import numpy as np
2
​
3
A, B, C = (list(map(int, input().split())))
4
if(A == B):
5
  print(C)
6
elif(A == C):
7
  print(B)
8
else:
9
  print(A)

Submission status: Runtime Error

Solution code:
inputs=input()
A = int(inputs[0])
B = int(inputs[1])
C = int(inputs[2])

if A == B:
    print(C)
elif B == C:
    print(A)
else:
    print(B)

Submission status: Runtime Error

Solution code:
A,B,C = map(int,input.split())
if A == B:
	print(C)
elif B == C:
	print(A)
else:
	print(B)

Submission status: Runtime Error

Solution code:
a = input().split()
if a[0] == a[1]:
    print(int(a[3]))
if a[0] == a[2]:
    print(int(a[1]))
if a[1] == a[2]:
    print(int(a[0]))

Submission status: Runtime Error

Solution code:
S=map(int, input().split())
S.sort()
print(S[0] if S[1] == S[2] else S[2])