fork download
  1. # your code goes here
  2. # 28431 양말 짝 맞추기
  3. a = int(input())
  4. b = int(input())
  5. c = int(input())
  6. d = int(input())
  7. e = int(input())
  8. num_list = [a,b,c,d,e]
  9. cnt = 0
  10.  
  11. for i in num_list:
  12. if num_list.count(i)>=3 or num_list.count(i)<2:
  13. cnt += i
  14. break
  15. print(cnt)
Success #stdin #stdout 0.04s 9712KB
stdin
5
5
5
5
3
stdout
5