TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input)
ans = len(set([input() for _ in range(n)]))
print(ans)

n = int(input())
s = [input() for i in range(n-1)]
a = []
index = a.find(s[i])
for i in range(n-1):
	if index = -1:
         a.append(i)
print(len(s[i])


n = int(input())
ans = len(set([input() for _ in range(n)]))
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
x = int(input())
y = []
result = []

for i in range(x):
  y.append(input())

for i in range(x):
  result = y.index(y[i])
  
print(result + 1)

x = int(input())
y = []
result = []

for i in range(x):
  y.append(input())

for i in range(x):
  result = y.index(y[i])+1
  
print(result)

x = int(input())
y = []
result = []

for i in range(x):
  y.append(input())
  
print(len(set(y)))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
list=[]
for _ in range(n):
    s=input()
    if s in list:
        pass
    else:
        list.append(s)
print(str(len(s)))

n=int(input())
set=set()
for _ in range(n):
    s=input()
    if s not in set:
        set.add(s)
print(str(len(set)))


Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
a=[input() for i in range(n)]
print(len(set(a))

n = int(input())
a=[input() for i in range(n)]
print(len(set(a)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input()) 
s = [input() for i in range(N)] 
print(s) 
print(len(set(s)))

N = int(input()) 
s = [input() for i in range(N)] 
print(len(set(s)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import collections 
n=int(input())
s_list=list(input() for _ in range(n))
c=collections.Ceounter(s_list)
print(len(c.keys()))

import collections 
n=int(input())
s_list=list(input() for _ in range(n))
c=collections.Counter(s_list)
print(len(c.keys()))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
S = [ input() for _ in range(N) ]
print(len(set(S)))

N = int(input())
S = [ input() for _ in range(N) ]
print(len(set(S)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import collections
N=int(input())
count=0
a=[]
while N>0:
  a.append(input())
  N=N-1
c=collection.Counter(a)
print(len(c))

import collections
N=int(input())
count=0
a=[]
while N>0:
  a.append(input())
  N=N-1
c=collections.Counter(a)
print(len(c))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
A=set(input().split())
print(len(A))
 

N=int(input())
A=map(chr,input().split())
print(len(set(A)))

N=int(input())
A=set(map(str,input().split()))
print(len(A))

N=int(input())
A=set(input().split())
print(A)



N=int(input())
A=map(input().split())
print(len(set(A)))

N=int(input())
A=set(input() for i in range(N))
print(len(A))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
S=list(map(int,input().split()))
print(len(list(set(S))))


n=int(input())
S=list(input().split())
print(len(list(set(S))))


n=int(input())
S=[]
for i in range(n):
    S.append(input())
print(len(list(set(S))))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
# coding: utf-8
kaisuu = int(input())
getprizelist = {}
for i in range(kaisuu):
    keihin = input()
    if keihin not in getprizelist:
        getprizelist[i] = keihin
print(len(getprizelist))


# coding: utf-8
kaisuu = int(input())
getprizelist = {}
for i in range(kaisuu):
    keihin = input()
    if keihin not in getprizelist:
        getprizelist[keihin] = i
print(len(getprizelist))


Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = [str(input()) for i in range(N)]

S = sorted(S)
count = 0
first = 0
removecount = 0

for i in range(N):
    j = 0
    while first + count + 1 < len(S) :
        if S[first]==S[first+1+j]:
            S[first+1+j] = "nullsad"
            count+=1
            j += 1
            print(S)
        else:
            first += count + 1
            removecount += count
            count = 0
            print(S)
            break

for i in range(removecount + count):
    S.remove("nullsad")

print(len(S))


N = int(input())
S = [str(input()) for i in range(N)]

S = sorted(S)
count = 0
first = 0
removecount = 0

for i in range(N):
    j = 0
    while first + count + 1 < len(S) :
        if S[first]==S[first+1+j]:
            S[first+1+j] = "null"
            count+=1
            j += 1
        else:
            first += count + 1
            removecount += count
            count = 0
            break

print(len(S)-S.count("null"))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
li = []
while len(li) <N:
  li.append(input())
print(len(set(lottery))

N = int(input())
li = []
while len(li) <N:
  li.append(input())
print(len(set(lottery)))

N = int(input())
li = []
while len(li) <N:
  li.append(input())
print(len(set(li)))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
s = set()
for i in range(n):
    s.add(str(input()).lower())
print(len(x))



i = int(input())
x = set()
for j in range(i):
    x.add(str(input().lower())
print(len(x))

n = int(input())
s = set()
for i in range(n):
    s.add(str(input()).lower())
print(len(s))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=input()
k=set()
for i in range(n):
  o=input()
  k.append(o))
print(len(k))

n=int(input())
k=[]
for i in range(n):
  o=input()
  k.append(o)
print(len(set(k)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = [input() for i in range(N)]

# N = 5
# S = ['aa', 'a', 'aa', 'aaaa', 'aa']

C = dict([s,1] for s in S)
L = len(C)

N = int(input())
S = [input() for i in range(N)]

# N = 5
# S = ['aa', 'a', 'aa', 'aaaa', 'aa']

C = dict([s,1] for s in S)
L = len(C)
print(L)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())

a_list = []

for i in range(N):
  a_list.append(list(input()))
  
a_num = len(set(a_list))

print(a_num)

N = int(input())
a_list=[]
for i in range(N):
  a_list.append(input())
  
set(a_list)

a_num = len(a_list)

print(a_num)

N = int(input())
a_list
for i in range(N):
  a_list.append(input())
  
a_ = set(a_list)

a_num = len(a_)

print(a_num)

N = int(input())
a_list=[]
for i in range(N):
  a_list.append(input())
  
a_set = set(a_list)

a_num = len(a_set)

print(a_num)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
a=[0]*(N+2)
c=0
for i in range (N):
    S=input()
    a[i]=S
c=len(set(a))
print(c)


N=int(input())
a=[0]*(N)
c=0
for i in range (N):
    S=input()
    a[i]=S
c=len(set(a))
print(c)


Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
list=list(input().split())
list.sort()
n=0
s=list[0]
for i in range(N):
  if list[i] != s:
    n+=1
    s=list[i]
print(n)

N=int(input())
list=[input() for i in range(N)]
list.sort()
n=1
s=list[0]
for i in range(N):
  if list[i] != s:
    n+=1
    s=list[i]
print(n)

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
# -*- coding: utf-8 -*-
from collections import Counter
a = int(input())

list = [input() for i in range(a)]

print(list)
print(len(Counter(list)))

# -*- coding: utf-8 -*-
from collections import Counter
a = int(input())

list = [input() for i in range(a)]

print(len(Counter(list)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = [input() for i in range(N)]
print(count(set(S)))

N = int(input())
S = [input() for i in range(N)]
print(len(set(S)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import pandas as pd
data = input().split()
df = pd.DataFrame(data)
print(len(pd.unique(df[0])))

import collections
n = int(input())
S = []
for _ in range(n):
    S.append(input()) 
print(len(collections.Counter(S)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
list =[input() for _ in range(n)]: 
print(len(set(list)))

n = int(input())
list =[input() for _ in range(n)]
print(len(set(list)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
string_list=[input() for i in range(n)]

print(len(string_list))

n=int(input())
string_list=[input() for i in range(n)]

print(len(set(string_list)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
ilist=[str(input()) for i in range(n)]


dic={}
for i in ilist:
  dic[i]=1

print (len(dic))
~

n=int(input())
ilist=[str(input()) for i in range(n)]


dic={}
for i in ilist:
  dic[i]=1

print (len(dic))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
items = set()
for i in range(0, N):
  items.add(input())
return len(items)

N = int(input())
items = set()
for n in range(0, N):
  items.add(input())
print(len(items))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
s = []
for _ in range(n):
    s.append(int(input))

print(len(set(s)))

n = int(input())
s = []
for _ in range(n):
    s.append(input())

print(len(set(s)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
a = int(input())
b = []
for i in range(a):
    c = input()
    if c not in b == True:
        b.append(c)
print(ren(b))

a = int(input())
b = []
for i in range(a):
    c = input()
    if c not in b == True:
        b.append(c)
print(len(b))


a = int(input())
b = []
for i in range(a):
    c = input()
    if c not in b == "True":
        b.append(c)
print(len(b))

a = int(input())
b = []
for i in range(a):
    b.append(input())
print(len(set(b)))

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
a=input().split()
s=set(a[1:])
print(len(s))

a=list(input().split())
s=set(a[1:])
print(len(s))

a=int(input())
b=[]
for i in range(a):
  b+=input().split()
print(len(set(b)))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
I = input("")
i = I.split("\n")

N = int(i[0])
l = []
t = 0

for k in range(N):
    if i[k+1] not in l:
        l.append(i[k+1])
        t = t+1
print(len(l))


I = input("")
i = I.split(" ")
print(i)

N = int(i[0])
l = []
t = 0

for k in range(N):
    if i[k+1] not in l:
        l.append(i[k+1])
        t = t+1
print(len(l))


N = int(input(""))
M = []
n = 0

for i in range(N):
    p = input("")
    M.append(p)

Mm = list(set(M))

print(len(Mm))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
S, W = map(int, input().split())
if S <= W:
    print("unsafe")
else:
    print("safe")

N = int(input())

items = set()
for i in range(N):
    item = input()
    items.add(item)
print(len(items))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
l = []
for i in range(N):
  x = input()
  l.append(x)
s = len(list(set(l))
print(s)


N = int(input())
l = []
for i in range(N):
    x = input()
    l.append(x)
s = set(l)
t = list(s)
print(len(t))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = input()
s = [input() for i in range(n)]

list(set(s))


n = input()
s = [input() for i in range(n)]
 
print(len(list(set(s))))

n = int(input())
s = [input() for _ in range(n)]
 
print(len(list(set(s))))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
placeHolder = ""
uWords = 0
things = int(input())

for i in range(things):
    word = input()
    if word != placeHolder:
        uWords += 1
        placeHolder = word

print(uWords)

s = set([])
things = int(input())

for i in range(things):
    p = input()
    s.add(p)

print(len(s))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
a = set()
for _ in range(n):
    a.append(input())
print(len(a))


N = int(input())
print(len(set([input() for _ in range(N)])))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = []
for i in range(N):
    s = input()
    if s in S:
        S.append(s)
print(len(S))


N = int(input())
S = []
for i in range(N):
    s = int()
    if s in S:
        S.append(s)
print(len(S))

N = int(input())
S = []
for i in range(N):
    s = int()
    if s not in S:
        S.append(s)
print(len(S))


N = int(input())
S = []
for i in range(N):
    s = input()
    S.append(s)
ans = len(S)
S.sort()
for i in range(1,N):
    if S[i] == S[i-1]:
        ans -= 1
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
dic = {}
cnt =0
for i in  range(n):
    get = input()

    if get not in dic:
        dic[get] = 1

print(len(dic))
print(dic)

n = int(input())
dic = {}
cnt =0
for i in  range(n):
    get = input()

    if get not in dic:
        dic[get] = 1

print(len(dic))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
group = {}
for _ in range(int(input())):
  group.add(input())
print(len(group))

group = set()
for _ in range(int(input())):
  group.add(input())
print(len(group))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
l = [input() for i in range(n)]

l = set(l)
l = list(l)
print(sum(l))

n = int(input())
l = [input() for i in range(n)]
 
l = set(l)
l = list(l)
print(len(l))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
lotteries = []
num_of_lot = 0
num = int(input())

for i in range(num):
    lotteries.append(input())

num_of_lot = len(set(lotteries))

lotteries = []
num_of_lot = 0
num = int(input())

for i in range(num):
    lotteries.append(input())

num_of_lot = len(set(lotteries))
print(num_of_lot)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
A = [input() for i in range(n)]
print(len(A) - len(set(A)) + n)

n = int(input())
A = []
cnt = 0
for i in xrange(n):
    m = input()
    if m not in A:
        A.append(m)
        cnt += 1
print(cnt)

n = int(input())
A = [input() for i in range(n)]
print(-len(A) + len(set(A)) + n)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S_list = list(map(str, input().split()))

for i in range(N):
  S_list.remove(S_list[i])
  N -= (N-len(S_list)-1)
  
print(N)  

N = int(input())
S = [int(input()) for _ in N]
print(len(set(s)))

N = int(input())
S = [input() for _ in range(N)]
print(len(set(s)))

N = int(input())
S = [input() for _ in range(N)]
print(len(set(S)))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input().split())
mylist = list(range(0))
inp = ''
for i in range(n):
    inp = input()
    if (inp not in mylist):
        mylist.append(inp)
print(len(mylist))

n = int(input())
print(len(set([input() for i in range(n)])))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):

#include <set>
#include <string>
using namespace std;
int main(void){
    int N;
    cin >> N;
    std::set<std::string> s;
    
    for(int i=0; i < N; i++){
        std::string a;
        cin >> a;
        s.insert(a);
    }
    
    cout << s.size() << endl;
}


N = int(input())
s = set()

for i in range(N):
    s.add(input())
    
print (len(s))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
b=0

for i in range(0,N):
    S[i]=input()

b=collections.Counter(S)
print(len(S))

from collections import Counter
N=int(input())
b=0
S=[]

for i in range(0,N):
    S.append(input())
b=Counter(S)
print(len(b))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
num=int(input())
count=0
temp=""
while(num):
    something = input()
    if(temp!=something):
        count+=1
        temp=something
    num-=1
print(count)

num=int(input())
something=[]
while(num):
    temp=input()
    something.append(temp)
    num-=1
something_set=set(something)
print(len(something_set))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
l = []
for _ in range(N):
    l.append(input())

print(len(l))

N = int(input())
l = []
for _ in range(N):
    l.append(input())

print(len(set(l)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = input()
list = [input() for i in range(N)]
print(len(set(list)))

N = input()
list = [input() for i in range(N)]
print(len(set(list)))

N = input()
for i in range(N):
  i = input()
print(len(set(i)))

N = input()
for i in range(N):
  a = input()
print(len(set(i)))

N = input()
list = list(input() for i in range(N))
print(len(set(list)))

N = input()
list = list(input())
print(len(set(list)))

N = int(input())
list = [input() for i in range(N)]
print(len(set(list)))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
num = int(input())

set_ = []
for i in range(num):
  a = int(input())
  set.append(a)
  
print(len(set(set_)))
  

num = int(input())

set_ = []
for i in range(num):
  a = input()
  set_.append(a)
  
print(len(set(set_)))
  

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
s = list(set([int(input()) for _ in range(n)]))
print(len(s) )

n = int(input())
s = list(set([input() for _ in range(n)]))
print(len(s) )

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
a = []
for i in range(n):
  a.apped(str(input()))
print(len(set(a)))

n = int(input())
a = []
for i in range(n):
  a.append(str(input()))
print(len(set(a)))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = [input() for i in range(N)]

def histogram_sorted(data):
    table = []
    prev = data[0] 
    c = 1
    for i in range(1,len(data)):
        if prev == data[i]:
            c=c+1
        else:
            table.append([prev,c])
            prev = data[i]
            c = 1
    table.append([prev,c])
    return table

T = []
for i in range(N):
    T.append(S[i])
    
print(len(histogram_sorted(T)))

N = int(input())
S = [input() for i in range(N)]

def histogram_sorted(data):
    table = []
    prev = data[0]
    c = 1 
    for i in range(1,len(data)):
        if prev == data[i]:
            c=c+1
        else:
            table.append([prev,c])
            prev = data[i]
            c = 1
    table.append([prev,c]) 
    return table

T = []
for i in range(N):
    T.append(S[i])
    
    
print(len(histogram_sorted(sorted(T))))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
s=[]
for i in range(n):
  s[i]=str(input())
s=list(set(s))
print(len(s))

n=int(input())
s=[0]*n
for i in range(n):
  s[i]=str(input())
s=list(set(s))
print(len(s))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
a={}
for i in range(N):
  a += input()
print(len(a))

N = int(input())
a= set()
for i in range(N):
  a.add(input())
print(len(a))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = []
for j in range(N):
    S[j]= input()
print(len(set(S)))

N = int(input())
S = []
for j in range(N):
    S.append(input())
print(len(set(S)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import sys
count = int(sys.stdin.readline())
zenbu = []

for x in range(count):
    keihin = sys.stdin.readline()

    if not keihin in zenbu:
        zenbu[len(zenbu)] = keihin
print(len(zenbu))

count = int(input())
zenbu = set()
 
for x in range(count):
    keihin = input()
    zenbu.add(keihin)
print(len(zenbu))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
s = [int(input()) for _ in range(n)]
ans = set()

for i in s:
    ans.add(i)

print(len(ans))


n = int(input())
s = [input() for _ in range(n)]
ans = set()

for i in s:
    ans.add(i)

print(len(ans))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
a=[input() for i in range(N)]
print(len(collections.Counter(a)))

N=int(input())
a=[]
for i in N:
  a.append(input())
print(len(collections.Counter(a)))

N=int(input())
a=[]
for i in N:
  a.append=input()
print(len(collections.Counter(a)))

import collections
N=int(input())
a=[input() for i in range(N)]
print(collections.Counter(a))

N=int(input())
a=[input() for i in range(N)]
print(collections.Counter(a))

N=int(input())
a=[]
for i in range(N):
  a.append(input())
print(len(collections.Counter(a)))

import collections
N=int(input())
a=[input() for i in range(N)]
print(len(collections.Counter(a)))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
count = int(input())

strlist = []
for i in range(count):
  strlist.append(input())

for i in range(count - 1):
  for j in range(i + 1, count):
    if strlist[i] > strlist[j]:
      tmp = strlist[i]
      strlist[i] = strlist[j]
      strlist[j] = tmp

duplication = 0
for i in range(count - 1):
  if strlist[i] == strlist[i + 1]:
    duplication += 1
    
print(strlist)
print(count - duplication)


count = int(input())

strlist = set()
for i in range(count):
  strlist.add(input())

print(len(strlist))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
S = {input() for 0 in range(n)}
ans = len(S)
print(ans)


N=int(input())
S=[]
for i in range(N):
    S.append(input())
print(set(S))

N=int(input())
S=[]
for i in range(N):
    S.append(input())
print(len(set(S)))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
print(len(set([input() for _ in range(int(input()))]))

print(len(set([input() for _ in range(int(input()))])))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
#n,k=list(map(int,input().split()))
ans=defaultdict(int)
for i in range(n):
    s=input()
    ans[s]+=1

print(len(ans.keys()))

from collections import defaultdict
n=int(input())
#n,k=list(map(int,input().split()))
ans=defaultdict(int)
for i in range(n):
    s=input()
    ans[s]+=1

print(len(ans.keys()))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
s = input()
c = 0

for j in range(len(s)-1):
    for i in range(j+3, len(s)):
        if int(s[j:i+1]) % 2019 == 0:
            c = c + 1

print(c)

n = int(input())
li = [input() for i in range(n)]
l = list(set(li))

print(len(l))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = [input() for i in range(N)]
print(len(S))

N = int(input())
S = set([input() for i in range(N)])
print(len(S))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
a = map(int, input().split())
s = list(map(int, input().split()))

print(len(set(s)))


a = int(input())
s=[input() for i in range(a)]

print(len(set(s)))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
numOfStr= int(input())
strlist = []
total = 0
for i in range(0,numOfStr):
    strlist.append(input())
strlist.sort()
for i in range(1,numOfStr):
    if strlist[i] != strlist[i-1]:
        total += 1
print(total)

numOfStr= int(input())
strlist = []
total = 1
for i in range(0,numOfStr):
    strlist.append(input())
strlist.sort()
for i in range(1,numOfStr):
    if strlist[i] != strlist[i-1]:
        total += 1
print(total)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import sys
input = sys.stdin.readline
n = int(input())
d = []
da = d.append
for _ in range(n-1):
  di = str(input())
  da(di)
di = str(input())+"\n"
da(di)
print(len(list(set(d))))

n = int(input())
s = [""]*n
for i in range(n):
  si = str(input())
  s[i] = si
s.sort()
c = 0
s.append("A")
for i in range(n):
  if s[i] != s[i+1]:
    c += 1
print(c)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N=int(input())
S=[]
for i in range(N):
    _=input()
    S.append(i)
Set=set(S)
print(len(Set))

N=int(input())
S=[]
for i in range(N):
    S.append(i)
Set=set(S)
print(len(Set))

N=int(input())
S={}
for i in range(N):
    S.add(i)
print(len(S))

N=int(input())
S=[]
for i in range(N):
    _=input()
    S.append(_)
Set=set(S)
print(len(Set))

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
s = set()
for i in s:
  s.add(input())
print(len(s))

n = int(input())
s = set()
for i in range(n):
    s.add(input())
print(len(s))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
a=map(int,input().split())
b=list(map(lambda n: str(n),input().split()))
def func(a,b):
    ab=set(b)
    return len(ab)
print(func(a,b))

a=map(int,input().split())
b=input().split()
def func(a,b):
    ab=set(b)
    return len(ab)
print(func(a,b))

a=map(int,input().split())
b=input().split()
def func(a,b):
    ab=set(b)
    return len(ab)
print(func(a,b))

a=int(input())
b=list(map(str,a.split()))
def func(b):
    return len(set(b))
print(func(b))

a=map(int,input().split())
b=list(map(int,input().split()))
def func(a,b):
    ab=set(b)
    return len(ab)


a=int(input())
b=[input() for i in range(a)]
def func(b):
    return len(set(b))
print(func(b))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
f = open('C/C.txt','r')
sys.stdin = f

N = int(input())
l = []
for i in range(N):
    l.append(input())

c = collections.Counter(l)
print(len(c))

import collections
N = int(input())
l = []
for i in range(N):
    l.append(input())

c = collections.Counter(l)
print(len(c))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
l = []
k = 0
for i in range(N):
    S = input()
    l.append(S)
for i in range(N):
    while True:
        try:
            a = l.index(l[i])
        except ValueError:
            k += 1
            break
print(k) 

N = int(input())
l = []
k = 1
for i in range(N):
    S = input()
    l.append(S)
l.sort()
for i in range(N-1):
    if l[i] != l[i+1]:
        k += 1
    else:
        pass
print(k) 

Verdicts: Time Limit Exceeded

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
S = []
for i in range(N):
    S.append(input())
print(set(S))

N = int(input())
S = []
for i in range(N):
    S.append(input())
print(len(set(S)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import collections

N = int(input())
S = []

for i in range(N):
    S.append(input())

c = collections.counter(S)

print(len(c))


import collections

N = int(input())
S = []

for i in range(N):
    S.append(input())

c = collections.Counter(S)

print(len(c))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import sys;


class Main:
    s = set([i.sprit() for i in sys.stdin.readlines()]);

    print(len(s));

import sys;


class Main:
    s = set([i for i in sys.stdin.readlines()]);

    print(len(s));



import sys;


class Main:
    s = set([i.strip() for i in sys.stdin.readlines()]);

    print(len(s));



import sys;
class Main:
    
    s = set([i.strip() for i in sys.stdin.readlines()]);
    
    print(len(s));
    





class Main:
    N = int(input());
    s = set([input() for i in range(N)]);
    print(len(s))


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
slist = []
for i in range(n):
    news = str(input())
    slist.append(news)
# print(slist)
slist_u = list(set(slist))
print(slist_u)
slist_u_len = len(slist_u)
print(slist_u_len)

n = int(input())
slist = []
for i in range(n):
    news = str(input())
    slist.append(news)
# print(slist)
slist_u = list(set(slist))
# print(slist_u)
slist_u_len = len(slist_u)
print(slist_u_len)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
str_list = sorted(list(input() for _ in range(N)))
str_set = list(set(str_list))
print(str_set)
l = len(str_set)
print(l)

N = int(input())
str_list = sorted(list(input() for _ in range(N)))
str_set = list(set(str_list))
l = len(str_set)
print(l)

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
s=list(set(input().split()))
print(len(s))

n=int(input())
s=list(set([input() for _ in range(n)]))
print(len(s))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
def actual(N, s_list):
    return len(set(s_list))

N = int(input())

s_list = []

for _ in range(N)
	s = input()
  	s_list.append(s)
    
print(actual(N, s_list))   

def actual(N, s_list):
    return len(set(s_list))

N = int(input())

s_list = []

for _ in range(N):
  s = input()
  s_list.append(s)
    
print(actual(N, s_list))   


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import collections

n = int(input())
l = [input() for _ in range(n)]

c = collections.Counter(l)
print(c)

N = int(input())
S = [input() for _ in range(N)]
print(len(set(S)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
from collections import Counter
 
N = int(input())
S = {}
for i in range(N):
  S[i] = input()
print(len(Counter(S.keys()).keys()))

from collections import Counter
 
N = int(input())
S = {}
for i in range(N):
  S[i] = input()
print(len(Counter(S.values()).keys()))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
A = [int(input()) for _ in range(N)]
already = []
for a in A:
  if a not in already:
    already.append(a)
print(len(already))

N = int(input())
A = [input() for _ in range(N)]
print(len(list(set(A))))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
S=[]
for i in range(n):
  S.append(int(input()))
T = set(S)
print(len(T))

n = int(input())
S=[]
for i in range(n):
  S.append(input())
T = set(S)
print(len(T))


Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
N = int(input())
s = []

for i in range(N):
    s.add(input())
    
print(len(s))

N = int(input())
s = set()

for i in range(N):
    s.add(input())
    
print(len(s))

Verdicts: Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
a=int(input())
*b,=map(str, open(0).read().split())
s=set(b)
print(min(a,len(s)))

a=int(input())
b=[input() for _ in range(10)]
s=set(b)
print(min(a,len(s)-1) if '' in b else min(a,len(s)))

a=int(input())
*b,=map(open(0))
s=set(b)
print(min(a,len(s)))

a,*b=map(str, open(0).read().split())
s=set(b)
print(min(int(a),len(s)))

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n=int(input())
s = [input() for i in range(n)]
num = 0
for i in range(len(s)):
    if i-1<0 or s[i] != s[i-1]:
        num = num + 1

print(num)

N = int(input())
s = [input() for i in range(N)]

print(len(set(s)))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
n = int(input())
S = [input() for _ in range(n)]

base1 = 1007
mod1 = 10**9+7
dic = {}

for s in S:
  for i,e in enumerate(s):
      n = len(s)
      hash1 = [0]*(n+1)
      power1 = [1]*(n+1)
      hash1[i+1] = (hash1[i]*base1 + ord(e))%mod1
      power1[i+1] = (power1[i]*base1)%mod1
  key = hash1[n]
  dic.setdefault(key, s)

print(len(dic))

n = int(input())
S = [input() for _ in range(n)]

import hashlib
base1 = 1007
mod1 = 10**9+7
dic = {}

for s in S:
  hs = hashlib.md5(s.encode()).hexdigest()
  dic.setdefault(hs, s)

print(len(dic))

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
import sys
input = sys.stdin.readline
N = int(input())
= []
S_append = S.append
S = [input() for _ in range(N)]
count = 0
while len(S) >0:
  S.remove(S[0])
  count += 1
 
print(count)

import sys
input = sys.stdin.readline
N = int(input())
S = []
S_append = S.append
for i in range(N):
  S_append(input())
count = 0
while len(S) >0:
  S.remove(S[0])
  count += 1

print(count)

import sys
input = sys.stdin.readline
N = int(input())
S = [input() for i in range(N)]
count = 0
while len(S) >0:
  [S for S in S if S != S[0]]
  count += 1

print(count)

N, *S = map(open(0).read().split())
print(len(set(S))

import sys
input = sys.stdin.readline
N = int(input())
S = [input() for _ in range(N)]
count = 0
while len(S) >0:
  S.remove(S[0])
  count += 1
 
print(count)

N, *S = open(0).read().split()
print(len(set(S)))

Verdicts: Runtime Error

Wrong Answer

Time Limit Exceeded

Runtime Error

Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
def solve():
    number=int(input())
    items=[]
    for i in range(number):
        item=input()
        items.append(item)
    count=1
    for i in range(1,number):
        if items[i]!=items[i-1]:
            count+=1
    print(count)

    return
solve()

"""write your code in method solve"""
def solve():
   
    number=int(input())
    items=[]
    for i in range(number):
        item=input()
        items.append(item)
    a=set(items)
    print(len(a))

    return
solve()

Verdicts: Wrong Answer

Accepted
Problem: You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.  How many kinds of items did you get?

Submission attempts (in order):
s=list(input())
x=0
if len(s)<=3:
    x=0
    print(x)
else :
    for j in range(len(s)):
        count=0
        for i in range(len(s)-j):
            a="".join(s[j:j+count+1])
            if int(a) % 2019 ==0:
                x+=1
                count+=1
            else:
                count+=1
print(x)

N=int(input())
a=[]
for i in range(N):
    a.append(input())
a_uni=list(set(a))
print(len(a_uni))

Verdicts: Wrong Answer

Accepted