Problem:


Score : 100 points

Problem Statement

AtCoDeer the deer recently bought three paint cans.
The color of the one he bought two days ago is a, the color of the one he bought yesterday is b, and the color of the one he bought today is c.
Here, the color of each paint can is represented by an integer between 1 and 100, inclusive.

Since he is forgetful, he might have bought more than one paint can in the same color.
Count the number of different kinds of colors of these paint cans and tell him.

Constraints

1≦a,b,c≦100

Input

The input is given from Standard Input in the following format:

a b c

Output

Print the number of different kinds of colors of the paint cans.

Sample Input 1

3 1 4

Sample Output 1

3

Three different colors: 1, 3, and 4.

Sample Input 2

3 3 33

Sample Output 2

2

Two different colors: 3 and 33.



Sample input:
3 1 4


Sample output:
3

Submission status: Accepted

Solution code:
def q1():
    P = [int(i) for i in input().split()]
    print(len(set(P)))

if __name__ == '__main__':
    q1()

Submission status: Accepted

Solution code:
a,b,c = input().split()
List = [a,b,c]
print(len(set(List)))

Submission status: Accepted

Solution code:
L = list(map(int, input().split()))
A = set(L)
print(len(A))

Submission status: Accepted

Solution code:
li=list(map(int,input().split()))
print(len(set(li)))

Submission status: Accepted

Solution code:
import sys

*c, = map(int, sys.stdin.readline().split())

def main():
    print(len(set(c)))

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC 046: A – AtCoDeerくんとペンキ / AtCoDeer and Paint Cans
a, b, c = [int(s) for s in input().split()]
print(len({a, b, c}))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a != b and a!= c and b!=c:
    print(3)
elif a == b and a == c and b ==c:
    print(1)
else:
    print(2)

Submission status: Accepted

Solution code:
a=list(set(map(int,input().split())))
print(len(a))

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    aset = set(a)
    print(len(aset))

Submission status: Accepted

Solution code:
c = list(set(map(int,input().split())))
print(len(c))

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_input().split())
if a==b and a!=c or b==c and b!=a or c==a and c!=b:
  print "2"
elif a==b and b==c:
  print "1"
else:
  print "3"

Submission status: Accepted

Solution code:

a = list(map(int,input().split()))

a = set(a)
a = list(a)
print(len(a))

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
B = list(set(A))
print(len(B))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
import math
# stdin = open("sample.txt")

a = list(map(int,[int(x) for x in stdin.readline().rstrip().split()]))
b = list(set(a))
print(len(b))

Submission status: Accepted

Solution code:
a = set([int(x) for x in input().split()])

print(len(a))

Submission status: Accepted

Solution code:
import math

a,b,c=input().split()
l=[a,b,c]


print(len(set(l)))

Submission status: Accepted

Solution code:
a,b,c = list(map(int,input().split()))
if a==b==c:print('1')
elif (a==b and c!=a) or (b==c and a!=b) or (c==a and b!=c):print('2')
else:print('3')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and b==c:
  print(1)
elif (a==b and b!=c) or (b==c and c!=a) or (c==a and a!=b):
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
S = list(map(int, input().split()))
print(len(set(S)))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())


print(len(set([a, b, c])))

Submission status: Accepted

Solution code:
paints = list(map(int, input().split()))
print(len(set(paints)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
paints = [a, b, c]
print(len(set(paints)))

Submission status: Accepted

Solution code:
a=set(list(map(int,input().split())))
print(len(a))

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
a = set(a)
print(len(a))

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
a=set(a)
print(len(a))

Submission status: Accepted

Solution code:
a=list(input().split())
print(len(set(a)))

Submission status: Accepted

Solution code:
a,b,c = list(map(int, input().split()))
total = 3

if a != b and a != c:
    pass
else:
    total -= 1

if b != c:
    pass
else:
    total -= 1

print(total)

Submission status: Accepted

Solution code:
x=list(map(int, input().split()))
import numpy as np
print(np.unique(x).size)

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
a=set(l)
print(len(a))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

print(len({a,b,c}))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d={}
d[a]=1
d[b]=1
d[c]=1
print(len(d.keys()))

Submission status: Accepted

Solution code:
line = input().split()

if line[0] == line[1] or line[1] == line[2] or line[0] == line[2]:
    print(len(set(line)))
else:
    print(len(line))

Submission status: Accepted

Solution code:
A=list(input().split())
print(len(set(A)))

Submission status: Accepted

Solution code:
p_list = list(map(int, input().split()))
print(len(set(p_list)))

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
res = set(A)
print(len(list(res)))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b,c=MI()
    print(len(list(set([a,b,c]))))

main()

Submission status: Accepted

Solution code:
x, y, z = input().split()

if x == y == z:
    print ("1")
elif x == y != z:
    print ("2")
elif x == z != y:
  print ("2")
elif y == z != x:
  print ("2")
else:
  print ("3")

Submission status: Accepted

Solution code:
A = input().split()

ans = set(A)
print(len(ans))

Submission status: Accepted

Solution code:
#ABC046.A
a,b,c=map(int,input().split())

if a == b==c:
    print(1)
elif a == b !=c:
    print(2)
elif a ==c !=b:
    print(2)
elif b ==c!=a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
_list = list(map(int, input().split()))

_set = set(_list)

print(len(_set))

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
li=set(l)
print(len(li))

Submission status: Accepted

Solution code:
a, b, c = map(int, open(0).read().split())
ans = 3
if a==b or b==c or c==a:
  ans -= 1
if a==b and b==c:
  ans -= 1
print(ans)

Submission status: Accepted

Solution code:
#ABC046 A
a,b,c=map(int,input().split())
if a==b==c:
    print(1)
elif a==b or a==c or b==c:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a =  list(map(int, input().split()))
print(len(set(a)))

Submission status: Accepted

Solution code:
#abc046 a
penki=list(map(int,input().split()))
print(len(set(penki)))

Submission status: Accepted

Solution code:
a, b, c = [i for i in input().split()]

if a==b==c:
  print(1)
elif a == b or b == c or a == c:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))

print(len(set(A)))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and a==c and b==c:
    print(1)
elif a!=b and b!=c and a!=c:
    print(3)
else:
    print(2)

Submission status: Accepted

Solution code:
a,b,c=(map(int,input().split()))
if a!=b and a!=c and b!=c:
  print(3)
elif a==b and a==c and b==c:
  print(1)
elif (a==b and a!=c)or(a==c and a!=b)or(b==c and b!=a):
  print(2)

Submission status: Accepted

Solution code:
abc = set(map(int,input().split()))
print(len(abc))

Submission status: Accepted

Solution code:
List=input().split()
print(len(list(set(List))))

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline

a,b,c = map(int,readline().split())

s =set([a,b,c])
print(len(s))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

l = list(map(int,input().split()))

print(len(set(l)))

Submission status: Accepted

Solution code:
A=set(input().split())
print(len(A))

Submission status: Accepted

Solution code:
color_list = list(map(int, input().split()))
s = set(color_list)
print(len(s))

Submission status: Accepted

Solution code:
l= set(map(int,input().split()))
print(len(l))

Submission status: Accepted

Solution code:
# A - AtCoDeerくんとペンキ
a,b,c=list(map(int,input().split()))
s=set([a,b,c])
print(len(s))

Submission status: Accepted

Solution code:
# Problem A - AtCoder君とペンキ

ans_set = set(map(int, input().split()))
ans = len(ans_set)

print(ans)

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
b = set(a)
print(len(b))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if a == b == c:
  print('1')
elif a == b != c:
  print('2')
elif b == c != a:
  print('2')
elif c == a != b:
  print('2')
else:
  print('3')

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
print(len(set(l)))

Submission status: Accepted

Solution code:
p = list(map(int,input().split()))
print (len(set(p)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

print(len({a, b, c}))

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

if a==b==c: ans = 1
elif a != b and b != c and a != c: ans = 3
else: ans = 2

print(ans)

Submission status: Accepted

Solution code:
l=set(list(map(int,input().split())))
print(len(l))

Submission status: Accepted

Solution code:
A = set(list(map(int,input().split())))
print(len(A))

Submission status: Accepted

Solution code:
A = map(int, input().split())
print(len(set(A)))

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())
ans = 3
if a == b:
    ans = 2
    if a == c:
        ans = 1
if a == c:
    ans = 2
    if b == c:
        ans = 1
if c == b:
    ans = 2
    if a == c:
        ans = 1
print(ans)

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
s = {a,b,c}
print(len(s))

Submission status: Accepted

Solution code:
a,b,c=input().split()
if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a,b,c = [int(i) for i in input().split()]


if (a==b) & (b==c):
  ans =int(1)
  
elif (a!=b) & (b!=c) & (c!=a):
  ans = int(3)
else:
  ans = int(2)
  
print(ans)

Submission status: Accepted

Solution code:
line =input().split(' ')
print(len(set(line)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
l = [a, b, c]
print(len(set(l)))

Submission status: Accepted

Solution code:
a,b,c = (int(x) for x in input().split())

if a==b==c:
    print("1")
elif a==b or a==c or b==c:
    print("2")
else:
    print("3")

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())

print(len({a,b,c}))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
print(len({a,b,c}))

Submission status: Accepted

Solution code:
A=list(map(int,input().split()))
S=set(A)
print(len(S))

Submission status: Accepted

Solution code:
input1 = list(map(int,input().split()))
a = input1[0]
b = input1[1]
c = input1[2]
if a == b and b == c:
  print(1)
elif a == b or b == c or a == c:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
l=input().split()
print(len(set(l)))

Submission status: Accepted

Solution code:
# A
l = set(map(int, input().split()))

print(len(l))

Submission status: Accepted

Solution code:
#046_A
s=input().split()
print(len(set(s)))

Submission status: Accepted

Solution code:

s = input().strip().split()

s_set=set(s)
print(len(s_set))

Submission status: Accepted

Solution code:
st = set(map(int, input().split()))

print(len(st))

Submission status: Accepted

Solution code:
s = set()

for c in map(int, input().split()):
  s.add(c)

print(len(s))

Submission status: Accepted

Solution code:
i=list(map(int,input().split()))
i.sort()
a=0
for k in range(len(i)):
  if k==0:
    a+=1
  elif i[k]!=i[k-1]:
    a+=1
print(a)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
def main():
    paint_cans = list(map(int, input().split()))
    print(len(set(paint_cans)))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
l=input().split()
print(len(list(set(l))))

Submission status: Accepted

Solution code:
total = set(list(map(int, input().split())))

print(len(total))

Submission status: Accepted

Solution code:
print(len(set(map(int,input().split()))))

Submission status: Accepted

Solution code:
from collections import Counter
a = list(map(int,input().split()))
a = Counter(a).items()
print(len(a))

Submission status: Accepted

Solution code:
a, b, c = [int(x) for x in input().split()]
print(len(list({a, b, c})))

Submission status: Accepted

Solution code:
string_list = input().split()

list = []
cnt = 0

for i in string_list:
    if not i in list:
        list.append(i)
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
penki = list(map(int, input().split()))
print(len(set(penki)))

Submission status: Accepted

Solution code:
#!/use/bin/env python3

import math
from collections import defaultdict

s = [int(s) for s in input().split()]

print(len(set(s)))

Submission status: Accepted

Solution code:
winput = [i for i in input().split()]
wlist = []
for i in range(3) :
    if not winput[i] in wlist :
        wlist.append(winput[i])
print(len(wlist))

Submission status: Accepted

Solution code:
# coding: utf-8
 
 
def main():
 
    penki_list = input().split(' ')

    # setは重複する要素を持たない→複数のデータをまとめる
    # lenは要素の数
    print(len(set(penki_list)))
 
    return 0
 
 
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = set(list(input().split()))

print(len(a))

Submission status: Accepted

Solution code:
#A - AtCoDeerくんとペンキ

color = set(map(int,input().split()))

print(len(color))

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
s=set(l)
print(len(s))

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
s = set(l)

print(len(s))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if(a==b and b==c):
    print(1)
else:
    if(a==b and b!=c):
        print(2)
    elif(b==c and c!=a):
        print(2)
    elif(c==a and a!=b):
        print(2)
    else:
        print(3)

Submission status: Accepted

Solution code:
def solve():
    n = [int(i) for i in input().split()][:3]


    c1 = n.count(n[0])
    c2 = n.count(n[1])
    c3 = n.count(n[2])


    if(c1 == 3):
        print(1)
    elif(c1 == c2 == c3 == 1):
        print(3)
    else:
        print(2)


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
x = len(set(list(map(int,input().split()))))
print(x)

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
n=1
ml=[]
for i in l:
 if i not in ml:
  ml.append(i)
print(len(ml))

Submission status: Accepted

Solution code:
arr =list(map(int,input().split()))

b = set(arr)

print(len(b))

#if a!=b and a!=c:
    #print(3)
#elif a==b and a!=c:
    #print(2)
#elif a==c and a!=b:
    #print(2)
#elif b==c and b!=a:
    #print(2)
#else:
    #print(1)

Submission status: Accepted

Solution code:
a,b,c=input().split()

if a==b==c:
    print("1")
elif a==b or b==c or c==a:
    print("2")
else:
    print("3")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
count = 0
if a != b :
    count += 1
if a != c :
    count += 1
if b != c :
    count += 1
if a == b == c :
    count =1
print(count)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if a != b != c and a != c:
    print(3)
if a == b and a != c and b != c: 
    print(2)
if b == c and b != a and c != a:
    print(2)
if a == c and a != b and c != b:
    print(2)
if a == b == c:
    print(1)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b == c:
  print(1)
elif a != b != c and a != c:
  print(3)
else:
  print(2)

Submission status: Accepted

Solution code:
print(len(set(input().split(' '))))

Submission status: Accepted

Solution code:
colors = input().split()
print(len(set(colors)))

Submission status: Accepted

Solution code:
inks = input().split()
print(len(set(inks)))

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
l = [a, b, c]
b = list(set(l))
print(len(b))

Submission status: Accepted

Solution code:
a= set(map(int, input().split()))
print(len(a))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c:
    print(1)
elif a!=b and b!=c and c!=a:
    print(3)
else:
    print(2)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

print(len(set([a, b, c])))

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
s={a,b,c}
print(len(s))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
ans=0
x=dict()
x[a]=1
x[b]=1
x[c]=1
for idx in x:
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
#ABC046 A
s = set(map(int,input().split()))

print(len(s))

Submission status: Accepted

Solution code:
c = list(input().split())
print(len(set(c)))

Submission status: Accepted

Solution code:
abc = set(map(int, input().split()))
print(len(abc))

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

if (a == b and b == c):
    print(1)
elif (a == b and a!=c):
    print(2)
elif (a == b and b!=c):
    print(2)
elif (a == c and a!=b):
    print(2)
elif (a == c and c!=b):
    print(2)
elif (b == c and b!=a):
    print(2)
elif (b == c and c!=a):
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
print(4-max(l.count(l[0]),l.count(l[1]),l.count(l[2])))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
l=[a,b,c]
print(len(set(l)))

Submission status: Accepted

Solution code:
lis = list(map(int, input().split()))
print(len(set(lis)))

Submission status: Accepted

Solution code:
a = set(list(map(int, input().split())))
print(len(a))

Submission status: Accepted

Solution code:
s = list(set(list(map(int, input().split()))))
print(len(s))

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

if a == b and b == c:
    print(str(1))
elif (a == b and a != c) or (a == c and a != b) or (a != b and b == c):
    print(str(2))
elif a != b and b != c and a != c:
    print(str(3))

Submission status: Accepted

Solution code:
a, b, c = list(map(int, input().split()))
if a != b != c and a != c:
    print(3)
elif a == b == c:
    print(1)
else:
    print(2)

Submission status: Accepted

Solution code:
penki = set(map(int, input().split()))
print(len(penki))

Submission status: Accepted

Solution code:
a,b,c = input().split()
if a==b and b==c:
  print(1)
elif a==b or b==c or a==c:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
s = set()
s.add(a)
s.add(b)
s.add(c)
print(len(s))

Submission status: Accepted

Solution code:
# 入力 : a b c
a, b, c = map(int, input().split())

# ペンキの色の種類の個数を出力せよ。
set = {a,b,c}
print(len(set))

Submission status: Accepted

Solution code:
str = input().split()
print(len(set(str)))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
P=list(map(int,input().split()))
print(len(set(P)))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
p=3
if A==B:
  p=p-1
if A==C:
  p=p-1
if B==C and p==3:
  print(2)
else:
  print(p)

Submission status: Accepted

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

elif A==B and B!=C :
  print(2)

elif B==C and B!=A :
  print(2)

elif A==C and A!=B :
  print(2)

else :
  print(3)

Submission status: Accepted

Solution code:
li = [int(i) for i in input().split()]
li.sort()
ans = 1
for i in range(1,3) :
    if li[i] != li[i-1] :
        ans +=1
print(ans)

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 2, Feb, 2020
"""

import sys
import itertools

import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

print(len(set(list(map(int, readline().split())))))

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
color = set([A,B,C])
print(len(color))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

answer = 3
if a == b and a == c:
    answer = 1
elif a == b or a == c or b == c:
    answer = 2
print(answer)

Submission status: Accepted

Solution code:
a,b,c = input().split()
print(len(set([a,b,c])))

Submission status: Accepted

Solution code:
a=list(map(int, input().split()))
print(len(set(a)))

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 046
# A - AtCoDeerくんとペンキ / AtCoDeer and Paint Cans
l = input().split()
print(len(sorted(set(l))))

Submission status: Accepted

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


def main():
    A, B, C = list(map(int, input().split()))
    print(len(set([A, B, C])))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())
ans = []

ans.append(a)

if ans.count(b) == 0:
    ans.append(b)

if ans.count(c) == 0:
    ans.append(c)

print(len(ans))

Submission status: Accepted

Solution code:
from collections import Counter


def number_of_color_types(today_color, ßyesterday_color,
                          day_before_yesterday_color):
    last_three_days_color_list = [
        today_color,
        ßyesterday_color,
        day_before_yesterday_color
    ]

    return len(Counter(last_three_days_color_list))


if __name__ == '__main__':
    today_color, yesterday_color, \
        day_before_yesterday_color = map(int, input().split())

    print(number_of_color_types(today_color,
                                yesterday_color, day_before_yesterday_color))

Submission status: Accepted

Solution code:
abc = input().split()
abc = list(set(abc))
print(len(abc))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

penkis = []
penkis.append(a)
penkis.append(b)
penkis.append(c)

print(len(list(set(penkis))))

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))

penki = []
for i in range(len(abc)):
    if abc[i] not in penki:
        penki.append(abc[i])
        
print(len(penki))

Submission status: Accepted

Solution code:
a= set(map(int, input().split()))
print(len(a))

Submission status: Accepted

Solution code:
lis = list(map(int, input().split()))
unique_list = []
for i in range(len(lis)):
    if lis[i] in lis[:i] + lis[i+1:] and lis[i] in unique_list:
        continue
    unique_list.append(lis[i])
print(len(unique_list))

Submission status: Accepted

Solution code:
L = input().split()

print(len(set(L)))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
ans = 3

if a == b:
  ans -= 1
if a == c:
  ans -= 1
  
if c == b:
  ans -= 1
  
if a == b and b  == c:
  ans += 1
  
print(ans)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

ans = len(set([a, b, c]))

print(ans)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

t = set([a,b,c])
print(len(t))

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
exist=[]
cnt=0

for i in range(3):
    if not(a[i] in exist):
        cnt+=1
        exist.append(a[i])

print(cnt)

Submission status: Accepted

Solution code:
S=input().split()
print(len(set(S)))

Submission status: Accepted

Solution code:
abc=set(list(map(int,input().split())))
print(len(abc))

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a==b==c:
  print(1)
elif a==b or b==c or a==c:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
x,y,z = map(int,input().split())
if x == y and y==z:
  print(1)
elif x == y or y == z or z ==x :
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
a=list(int(x) for x in input().split())
a=set(a)
print(len(a))

Submission status: Accepted

Solution code:
a, b, c = tuple(map(int, input().split()))

print(len(set([a,b,c])))

Submission status: Accepted

Solution code:
paint_color = input().split()
print(len(set(paint_color)))

Submission status: Accepted

Solution code:
print(len(set(map(int, input().split()))))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b and b == c and c == a:
    print("1")
elif a != b and b != c and c != a:
    print("3")
else:
    print("2")

Submission status: Accepted

Solution code:
import sys
import numpy as np

# a b c ペンキの色
a, b, c = map(int, input().split())

color = np.array([a, b, c], dtype='int16')

# 重複削除
color = np.unique(color)

print(color.size)

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    a = list(map(int, r.split()))
    #a,b,c,d = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

    print(len(set(a)))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b, c= map(int, input().split())
if a==b and b==c:
  print(1)
elif a==b or b==c or a==c:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
abc = list(map(int,input().split()))
print(len(set(abc)))

Submission status: Accepted

Solution code:
A = set(list(map(int,input().split())))
print(len(A))

Submission status: Accepted

Solution code:
n=input().split()
print(len(set(n)))

Submission status: Accepted

Solution code:
a = list(set(list(map(int, input().split()))))
print(len(a))

Submission status: Accepted

Solution code:
l = list(set(list(map(int, input().split()))))
print(len(l))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
ans = {a,b,c}
print(len(ans))

Submission status: Accepted

Solution code:
arr = input().split()
arr = list(map(int,arr))
s = set(arr)
print(len(s))

Submission status: Accepted

Solution code:
import sys
 
a, b, c = map(int,input().split())

if ((a == b) and (b == c)):
  cnt = 1;
else:
  if ((a != b) and (b != c) and (a != c)):
    cnt = 3;
  else:
    cnt = 2;
print(cnt);

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if a == b == c:
    print(1)
elif a == b or b == c or c ==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
a=set(map(int,input().split()))
print(len(a))

Submission status: Accepted

Solution code:
a=input().split()

print(len(set(a)))

Submission status: Accepted

Solution code:
data = list(map(int, input().split()))

print(len(set(data)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ans = 3
if a == b or b == c or c == a:
    ans -= 1
if a == b == c:
    ans -= 1
print(ans)

Submission status: Accepted

Solution code:
se = set(map(int, input().split()))
print(len(se))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b and a == c :
	print(1)
elif a != b and a != c and b != c :
	print(3)
else:
	print(2)

Submission status: Accepted

Solution code:
print(len(set(map(str, input().split()))))

Submission status: Accepted

Solution code:
l1 = [int(i) for i in input().split()]
s1 = set(l1)

print(len(s1))

Submission status: Accepted

Solution code:
a,b,c = [int(i) for i in input().split()]
n = 3
if a == b and a == c:
    print(1)
else:
    if a == b:
        n = n-1
    elif b == c:
        n = n-1
    elif a == c:
        n = n-1
    print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a!=b!=c!=a:
  print(3)
elif a!=b==c or a==c!=b or a==b!=c:
  print(2)
else:
  print(1)

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
print(len(set(a)))

Submission status: Accepted

Solution code:
# ABC046A - AtCoDeerくんとペンキ / AtCoDeer and Paint Cans
def main():
    ABC = input().split()
    print(len(set(ABC)))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = input().split()
num = 3

if a[0] == a[1]:
    num = num - 1
    if a[0] == a[2]:
        num = num - 1
elif a[0] == a[2]:
    num = num - 1
elif a[1] == a[2]:
    num = num - 1
    
print(num)

Submission status: Accepted

Solution code:
color = set(map(int, input().split()))
ans = len(color)
print(ans)

Submission status: Accepted

Solution code:
#標準入力をリスト化するときはキャストなので、宣言と勘違いしないこと。list()を使うこと。[]ではリスト化できない。勘違いしない。
array = sorted(list(map(int,input().split())))

#最初の時点で1種類
result = 1

for i in range(len(array)-1):
 if array[i] != array[i+1] :
    result+=1

print(result)

Submission status: Accepted

Solution code:
color_li = list(map(int, input().split()))
answer = len(set(color_li))
print(answer)

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
print(1 if a==b==c else 2 if a==b or b==c or a==c else 3)

Submission status: Accepted

Solution code:
colors = list(map(int, input().split()))

ans = []

for i in colors:
    if not i in ans:
        ans.append(i)

print(len(ans))

Submission status: Accepted

Solution code:
a, b, c = list(input().split())
ans = len(list(set([a, b, c])))
print(ans)

Submission status: Accepted

Solution code:
c = list(input().split())
print(len(set(c)))

Submission status: Accepted

Solution code:
print(len(set([i for i in input().split()])))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
a, b, c = [int(x) for x in input().split()]
ng = []
cnt = 0
for i in [a, b, c]:
    if i not in ng:
        cnt += 1
        ng.append(i)
print(cnt)

Submission status: Accepted

Solution code:
s = set(map(int, input().split()))
n = len(list(s))
print(n)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a, b, c = map(lambda x: int(x), input().split())
lis = set([a, b, c])

print(len(lis))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if (a-b)*(b-c)*(c-a)==0:
  if a==b==c:
    print(1)
  else:
    print(2)
else:
  print(3)