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: Runtime Error

Solution code:
# coding: utf-8
import sys

def main(argv=sys.argv):
  
  dict = {input().split()}
  print(dict)
  
  return 0


if __name__ == '__main__':
  sys.exit(main())

Submission status: Runtime Error

Solution code:
# coding: utf-8
import sys


def main(argv=sys.argv):
  N, K = map(int, input().split())
  print(K * ((K - 1) ** (N - 1)))

  
  
  return 0
  
  
if __name__ == '__main__':
  sys.exit(main())

Submission status: Runtime Error

Solution code:
p = [int(x) for x in input().split()]
print(p.unique().count())

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())
 
print(k * (k-1)**(n-1))

Submission status: Runtime Error

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

print( len( cols set ) )

Submission status: Runtime Error

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

num col = cols.unique();

print( num col )

Submission status: Runtime Error

Solution code:
from sys import stdin
import math

n = int(stdin.readline().rstrip())
li = [list(map(int,stdin.readline().rstrip().split())) for _ in range(n)]
for i in range(1,n):
    if li[i][0] >= li[i-1][0] and li[i][1] >= li[i-1][1]:
        continue
    elif li[i][0] >= li[i-1][0] and li[i][1] < li[i-1][1]:
        bai = math.ceil(li[i-1][1]/li[i][1])
        li[i][0] *= bai
        li[i][1] *= bai
    elif li[i][0] < li[i-1][0] and li[i][1] >= li[i-1][1]:
        bai = math.ceil(li[i-1][0]/li[i][0])
        li[i][0] *= bai
        li[i][1] *= bai
    else:
        bai = max(math.ceil(li[i-1][0]/li[i][0]),math.ceil(li[i-1][1]/li[i][1]))
        li[i][0] *= bai
        li[i][1] *= bai
print(sum(li[-1]))

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
print(K*(K-1)**(N-1))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input().split()
#a=int(input())
#b=int(input())
#c=int(input())
#d=int(input())
if a[0]==a[1]==a[2]:
    print(1)
elif a[0]!=a[1]! and a[1]!=a[2] and a[0]!=a[2]:
    print(3)
else:
    print(2)

Submission status: Runtime Error

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

ans = set(n)
print(ans.count)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
if a==b and b==c and a==c: #全部一緒のとき
    print("1")
elif a!=b and b!=c and a!=c: #全部違うとき
    print("3")
elif a==b and b!=c:
    print("2")
elif a==c and c!=b:
    print("2")
elif c==b and a!=c:
    print("2")

Submission status: Runtime Error

Solution code:
import math
from string import ascii_lowercase

a = int(input())
b = int(input())
c = int(input())

d = set((a, b, c))
print(len(d))

Submission status: Runtime Error

Solution code:
l = list(map(int,input()split()))
ans = list(dict.fromkeys(l))
print(len(ans)+1)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

1 < a, b, c < 100
if a == b == c:
    print(1)
else:
    if a != b != c:
        print(3)
    else:
        print(2)

Submission status: Runtime Error

Solution code:
import math
n=int(input())
A=B=1
for i in range(n):
    x,y=[int(i) for i in input().split()]
    n=max(-(-A//x),-(-B//y))
    A=n*x
    B=n*y
print(A+B)

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split())
print(K*(K-1)**(N-1))

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split())
print(K * ((K-1)**(N-1)))

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split())
print(int(K * ((K-1)**(N-1))))

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
print(int(K * ((K-1) ** (N-1))))

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
print(K * ((K-1) ** (N-1)))

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())
if a == b:
    i = 1
if b == c:
    j = 1
if c == a:
    k = 1
if a == b & b == c:
    l = -1
print(3-(i+j+k+l))

Submission status: Runtime Error

Solution code:
int(input(a, b, c))
set(pennki) = (a, b, c)
len(set(pennki))

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
c = 0
for i in range(3):
  for j in range(i:3):
    if a[i] == a[j]:
      c+=1
print(3-c)

Submission status: Runtime Error

Solution code:
#n = int(input())
a,b,c = map(int,input().spkit())

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

else:
    print(3)

Submission status: Runtime Error

Solution code:
#n = int(input())
a = int(input())
b = int(input())
c = int(input())

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

else:
    print(3)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
    //input
    int a,b,c;
    cin >> a >> b >> c;
    int count = 0;
    if(a==b){
        count--;
    }
    if(b==c){
        count--;
    }
    cout << count;

    return 0;
}

Submission status: Runtime Error

Solution code:
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 c==b/=a:
  print(2)
else:
  print(3)

Submission status: Runtime Error

Solution code:
N = int(input())
K = int(input())
answer = 0
if(N==1):
  	print(K)
else:
	answer = K*(N-1)*(K-1)
	print(answer)

Submission status: Runtime Error

Solution code:
from math import factorial
n,k = map(int,input().split(' '))
ans = 0

if n==k:
  ans = factorial(k)
elif n>k:
  ans = factorial(k) * pow(k-1,n-k)
else:
  ans = factorial(k)//factorial(k-n)

print(ans)

Submission status: Runtime Error

Solution code:
N,K=map(int,input().split())

answer=K
answer*=(K-1)**(N-1)
#answer=K*pow(K-1,N-1)
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
pen = list(map(str,input().split()))

print(len(collections.Counter(pen)))

Submission status: Runtime Error

Solution code:
pen = list(map(str,input().split()))

print(collections.Counter(pen))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

a = int(input())
b = int(input())
c = int(input())

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

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

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

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

if a == b == c:
    print(1)

Submission status: Runtime Error

Solution code:
import argparse

parser = argparse.ArgumentParser()
# パーサーを作る
parser = argparse.ArgumentParser(
            prog='a', # プログラム名
            usage='Count paint number', #プログラムの利用方法
            description='Description', # 引数のヘルプの前に表示
            epilog='end', # 引数のヘルプの後で表示
            add_help=True, # -h/–help オプションの追加
            )
 
# 引数の追加
parser.add_argument('infile', help='inputfile',
                    type=argparse.FileType('r'))
 
# 引数を解析する
args = parser.parse_args()
 
message = args.infile.read()
args.infile.close();

parser.add_argument('arg1', help='input flie name')

a = message[0]
b = message[1]
c = message[2]

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

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv

a = args[1]
b = args[2]
c = args[3]

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

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv

a = args[1]
b = args[2]
c = args[3]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = map(int, input().split())
a = num[0]
b = num[1]
c = num[2]

if a == b == c:
    print(1)

elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a):
    print(2)

else:
    print(3)

Submission status: Runtime Error

Solution code:
num = map(int, input.split())
a = num[0]
b = num[1]
c = num[2]

if a == b == c:
    print(1)

elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a):
    print(2)

else:
    print(3)

Submission status: Runtime Error

Solution code:
a= int(input())
b= int(input())
c= int(input())

if a == b == c:
    print(1)

elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a):
    print(2)

else:
    print(3)

Submission status: Runtime Error

Solution code:
a= int(input())
b= int(input())
c= int(input())

if a == b == c:
    print(1)

elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a):
    print(2)

else:
    print(3)

Submission status: Runtime Error

Solution code:
a= int(input())
b= int(input())
c= int(input())

if a == b == c:
  print(1)

elif (a==b and b!=c) or (b==c and a!=b) or (a==c and b!=a):
  print(2)

else:
  print(3)

Submission status: Runtime Error

Solution code:
a= int(input())
b= int(input())
c= int(input())

if a == b == c:
	print(1)

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

else:
	print(3)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import collections

li = list(map(int, input().split()))
c = collections.Counter(li)

print(count(c.keys()))

Submission status: Runtime Error

Solution code:
print(len(a=set(input()))-1)

Submission status: Runtime Error

Solution code:
print(len(set(input())-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
v

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input().split()
d = dict.fromkeys(N, 0)
for n in N:
    d[n] += 1

print(sum(d.values())

Submission status: Runtime Error

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

N = input().split()
d = dict.fromkeys(N, 0)
for n in N:
    d[n] += 1

print(sum(d.values())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = [int(input()) for _ in range(3)]
if (a == b != c) or (b == c != a) or (c == a != b):
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)

Submission status: Runtime Error

Solution code:
a, b, c = [int(input()) for_in range(3)]
if a == b != c or b == c != a or c == a != b:
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)

Submission status: Runtime Error

Solution code:
a, b, c = [int(input()) for_in range(3)]
if (a == b != c) or (b == c != a) or (c == a != b):
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    set<int> st{a, b, c};
    cout << st.size() << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int (input())
b = int (input())
c = int (input())

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

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
print(n*((n-1)**(k-1)))

Submission status: Runtime Error

Solution code:
def play():
	
	s, e = 0,1e18
	
	while s<e:
		
		mid = (s + (e - s) // 2)
		if mid * x >= a and mid * y >= b:
			e = mid
		else : s = mid + 1
	return int(s)
	
t = int(input())

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

for i in range(0,t - 1):
	x, y = map(int,input().split())
	n = play()
	a, b = n * x, n * y
print(a+b)

Submission status: Runtime Error

Solution code:
n,k-map(int,input().split())
ans=k
for i in range(n):
	ans*=k-1
print(ans)

Submission status: Runtime Error

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

ans = 3

if a == b:
  if a == c:
    ans = 1
  else:
    ans = 2
elif a == c:
  ans = 2

print(ans)

Submission status: Runtime Error

Solution code:
s = [int(input()) for i in range(3)]
s = list(set(s))
print(len(s))

Submission status: Runtime Error

Solution code:
N,K=map(int,input().split())
print(K*((K-1)**(N-1)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l = list(map(int, input().split()))
s = 3
for i in range(3):
    for j in range(i + 1, 3):
        if l[i] == l[j]:
            s = s - 1
if l[0] = l[1] and l[1] = l[2]:
    s = s + 1
print(s)

Submission status: Runtime Error

Solution code:
l = list(map(int, input().split()))
for i in range(3):
    for j in range(i + 1, 3):
        if l[i] == l[j]:
            s = s + 1
print(s)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = input()

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = input()

count = 3

if a == b:
    count -= 1
if b == c:
    count -= 1
if a == c:
    count -= 1

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

n, k = map(int, input().split())
ans = 0

ans = k * pow(k-1, n-1)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

Solution code:
a,b,c = 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: Runtime Error

Solution code:
i = [int(input()) for i in range(3)]

print(len(set(i)))

Submission status: Runtime Error

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 a != b or a==c and a!=b
    print(2)
else:
    print(3)

Submission status: Runtime Error

Solution code:
l=list(map(int,input().split()))
c = collections.Counter(l)
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def onaji(x, y):
  if x == y: return True
  return False

if onaji(a, b):
  if onaji(b, c):
    print(1)
  else:
    print(2)
elif onaji(a, c):
  if onaji(b, c):
    print(1)
  else:
    print(2)
else:
  print(3)

Submission status: Runtime Error

Solution code:
li ~ list(map(int,input().split()))
cnt = 3
if li[0] == li[1]:
	cnt -= 1
if li[0] == li[2]:
	cnt -= 1
if li[1] == li[2]:
	cnt -= 1
if li[0] == li[1] and li[1] == li[2]:
	cnt = 1
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
p = list(map(int,input()split()))
if p[0] != p[1] and p[1] != p[2] and p[2] != p[0]:
  print(3)
elif p[0] == p[1] == p[2]:
  print(1)
else:
  print(2)

Submission status: Runtime Error

Solution code:
p = list(map(int,input()split()))
if p[0] != p[1] and p[1] != p[2] and p[2] != p[0]:
  print(3)
elif p[0] = p[1] and p[1] = p[2]:
  print(1)
else:
  print(2)

Submission status: Runtime Error

Solution code:
p = list(map(int,input()split()))
if (p[1] = p[2] and p[0]!=p[1])or(p[0]=p[1]and p[1]!=p[2])or(p[0]=p[2] and p[0]!=p[1]):
  print("2")
if p[0]!=p[1] and p[0]!=p[2]:
  print("3")
else:
  print("1")

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input())
dic={}
dic[a]=1
dic[b]=1
dic[c]=1
print(len(list(dic)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(list(set(int(input().split()))))

Submission status: Runtime Error

Solution code:
colors = []

for i in range(3):
  colors.append(int(input()))
unique_colors = list(set(colors))
print(len(unique_colors))

Submission status: Runtime Error

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

print(len(set(x))

Submission status: Runtime Error

Solution code:
a=list(map(int,input().split()))
ans=3
　for i in range(0,2):
    for j in range(i+1,3):
      if a[i]==a[j]:
        ans -= 1
      else:
        j += 1

print(ans)

Submission status: Runtime Error

Solution code:
import collections
from functools import reduce

def main():
    # 初期値用:十分大きい数(100億)
    # 1e10

    # 初期値用:十分小さい数(-100億)
    # -1e10

    # 1文字のみを読み込み
    # s = input().rstrip()
    
    # スペース区切りで標準入力を配列として読み込み
    # s = input().rstrip().split(' ')

    # 1文字ずつ標準入力を文字列として読み込み
    # s = list(input().rstrip())
    
    # 位置文字ずつ標準入力を数値配列として読み込み
    # X = [int(_) for _ in input().split()]
    X = [int(_) for _ in input().split()]
    ans = [0 for _ in range(100)]
    for x in X:
        ans[x] = ans[x] + 1
    print(max(ans))
    # c = collections.Counter(X)
    # print(c.most_common()[0][1])
        
   
if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;

int main() {
	int a , b , c ;
    int count = 3;
	cin >> a >> b >> c;
	if(a == b) count -= 1;
    if(a == c) count -= 1;
    if(b == c) count -= 1;
    if(count == 0) count += 1;
    cout << count;
      
	return 0;
}

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys

def main():
	n = int(input())

	ins = []
	for _ in range(n):
		t, a = map(int, input().split(" "))
		ins.append((t, a))

	takahashi = 0
	aoki = 0
	takahashi, aoki = ins[0]

	for i, val in enumerate(ins):
		if i == 0: continue
		t, a = val
		m = max(-(-takahashi // t), -(-aoki // a))
		takahashi, aoki = t * m, a * m

	print(takahashi + aoki)

if __name__ == "__main__":
	main()

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys

def main():
	n = int(input())

	ins = []
	for _ in range(n):
		t, a = map(int, input().split(" "))
		ins.append((t, a))

	takahashi = 0
	aoki = 0
	takahashi, aoki = ins[0]

	for i, val in enumerate(ins):
		if i == 0: continue
		t, a = val
		m = max(-(-takahashi // t), -(-aoki // a))
		takahashi, aoki = t * m, a * m

	print(int(takahashi + aoki))

if __name__ == "__main__":
	main()

Submission status: Runtime Error

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

checked = [False]*100

for i in range(3):
    checked[penki[i]]=True

ans = checked.count(True)

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
t0, a0 = 1, 1
for _ in range(N):
    t, a = map(int, input().split())
    n = max((t0- 1)// t+ 1, (a0-1)//a+1)
    t0, a0 = n*t, n*a

print(t0 + a0)

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
print(k * pow(k-1, n-1))

Submission status: Runtime Error

Solution code:
print(len({input().split()}))

Submission status: Runtime Error

Solution code:
def compute_current_score(previous_t_score, previous_a_score, current_t_ratio, current_a_ratio):
    initial_divisor = max(previous_t_score // current_t_ratio, previous_a_score // current_a_ratio)
    current_t_score = 0
    current_a_score = 0
    while(True):
        current_t_score = initial_divisor * current_t_ratio
        current_a_score = initial_divisor * current_a_ratio
        if((current_t_score >= previous_t_score) and (current_a_score >= previous_a_score)):
            break
        initial_divisor += 1
    return current_t_score, current_a_score

t_list = []
a_list = []

N = int(input())
t_score, a_score = list(map(int, input().strip().split()))

for  n in range(N-1):
    t_ratio, a_ratio = list(map(int, input().strip().split()))
    t_score, a_score = compute_current_score(t_score, a_score, t_ratio, a_ratio)
    
print(t_score + a_score)

Submission status: Runtime Error

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

N  = int(input())

ans = 0
T, A = [0] * 1001, [0] * 1001

for i in range(N):
    T[i], A[i] = map(int, input().split())

    if i != 0 and T[i-1] >= T[i] or A[i-1] >= A[i]:
        t = T[i-1] // T[i] if T[i-1] % T[i] == 0 else T[i-1] // T[i] + 1
        s = A[i-1] // A[i] if A[i-1] % A[i] == 0 else A[i-1] // A[i] + 1

        m = max(t, s)

        T[i] *= m
        A[i] *= m

    ans = sum([T[i], A[i]])

print (ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = lambda: int(input())
print(len(set([i(), i(), i()])))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split(" "))
goukei = k*(k-1)**(n-1)
print(goukei)

Submission status: Runtime Error

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


def abc046_b():
    n, k = map(int, input().split())
    return k * ((k - 1) ** (n - 1))


if __name__ == '__main__':
    print(abc046_b())

Submission status: Runtime Error

Solution code:
def solve(N, TAs):
    T, A = 1, 1
    for t, a in TAs:
        m = (t * A) % a
        y = max(0, (T * a - t * A) // t)
        while True:
            if (m + (y * t)) % a == 0:
                break
            y += 1
        x = (t * A + t * y) // a - T
 
        T += x
        A += y
    return T + A
  
if __name__ == "__main__":
    N = int(input())
    TAs = [(tuple)(map(int, input().split(" "))) for l in range(N)]
    print(solve(N, TAs))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
l=0
p=0
for i in range(1,n+1):
  b,m=map(int,input().split())
  if l!=b+m:
    l=(l//(b+m)+1)*(b+m)
  else:
    pass
print(l)

Submission status: Runtime Error

Solution code:
nums = list(map(int, input().split()))
n = 1
if nums[0] != nums[1]:
	n++
if nums[1] != nums[2] and nums[0] != nums[2]:
	n++
print(n)

Submission status: Runtime Error

Solution code:
def main():
    N, K = map(int, input().split())
    res = 0
    if N == 1:
        res = K
    else:
        res = K * (K - 1) * (N - 1)

    print(res)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

ans = (a!=b) + (b!=c) + (c!=a)

ans = 1 if ans == 0

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<cstdio>
using namespace std;
int main(){
  int a,b,c,cnt=1;
  scanf("%d %d %d",&a,&b,&c);
  if(a!=b)
    cnt++;
  if(a!=c&&b!=c)
    cnt++;
  printf("%d\n",cnt);
}

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
  int a,b,c,cnt=1;
  cin >> a>>b>>c;
  if(a!=b) cnt++;
  if(a!=c&&b!=c) cnt++;
  cout<<cnt;
}

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c,count=0;
    cin >>a>>b>>c;
    if(a!=b) count++;
    if(b!=c) count++;
    if(c!=a) count++;
    if(count != 0) cout << count;
    else cout<<1;
    
}

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c,count=0;
    cin >>a>>b>>c;
    if(a!=b) count++;
    if(b!=c) count++;
    if(c!=a) count++;
    cout << count;
    
}

Submission status: Runtime Error

Solution code:
a, b, c = 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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
[n,k]=[int(i) for i in input().split()]
a=k
if n==1:
    print(k)
else:
    for i in range(n-1):
        a=a*(k-1)
    print(a)

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())

Ans=K

for i in range(0, N-1):
  Ans*=(K-1)

print(Ans)

Submission status: Runtime Error

Solution code:
    #!/usr/bin/env python3
    #
    # FILE: 2138-AtCoDeer_and_Paint_Cans.py
    #
    # @author: Arafat Hasan Jenin <opendoor.arafat[at]gmail[dot]com>
    #
    # LINK: https://abc046.contest.atcoder.jp/tasks/abc046_a?lang=en
    #
    # DATE CREATED: 17-06-18 00:09:52 (+06)
    # LAST MODIFIED: 17-06-18 00:19:32 (+06)
    #
    # VERDICT: Accepted
    #
    # DEVELOPMENT HISTORY:
    # Date         Version     Description
    # --------------------------------------------------------------------
    # 17-06-18     1.0         Deleted code is debugged code.
    #
    #               _/  _/_/_/_/  _/      _/  _/_/_/  _/      _/
    #              _/  _/        _/_/    _/    _/    _/_/    _/
    #             _/  _/_/_/    _/  _/  _/    _/    _/  _/  _/
    #      _/    _/  _/        _/    _/_/    _/    _/    _/_/
    #       _/_/    _/_/_/_/  _/      _/  _/_/_/  _/      _/
    #
    ##############################################################################
     
    print(len(set(map(int, input().split()))))