problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02701
u113694671
2,000
1,048,576
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?
['n = int(input())\ns = []\nfor i in range(n):\n s.append(input())\ns.sort()\nprint(len(s))', 'n = int(input())\ns = []\nfor i in range(n):\n s.append(input())\nprint(len(set(s)))']
['Wrong Answer', 'Accepted']
['s139998501', 's697702796']
[23736.0, 35504.0]
[309.0, 280.0]
[85, 81]
p02701
u116484168
2,000
1,048,576
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?
['n = int(input())\ns = [input() for i in range(n)]\nprint(list(set(s)).length)\n\n', 'n = int(input()) \nx = [input() for i in range(n)]\nprint(len(list(set(x))))\n\n']
['Runtime Error', 'Accepted']
['s517270444', 's171062212']
[35712.0, 35712.0]
[264.0, 273.0]
[77, 78]
p02701
u117741705
2,000
1,048,576
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?
['n = int(input())\ns = []\nfor _ in range(input()):\n s.append(input())\nprint(len(set(s)))', 'n = int(input())\ns = []\nfor _ in range(n):\n s.append(input())\nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s513340377', 's792778228']
[9180.0, 35544.0]
[23.0, 269.0]
[87, 81]
p02701
u118760114
2,000
1,048,576
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?
['import collections\n\nn = int(input())\na = [list(input() for i in range(n))]\nb = collections.Counter(a)\nprint(len(b))\n', 'import collections\n\nn = int(input())\na = [input() for i in range(n)]\nb = collections.Counter(a)\nprint(len(b))\n']
['Runtime Error', 'Accepted']
['s293744193', 's652817031']
[23488.0, 38772.0]
[229.0, 275.0]
[116, 110]
p02701
u119012830
2,000
1,048,576
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?
['import collections\nn = int(input())\nfor i in range(n):\n a = int(input())\n b=collections.Counter(a)\n print(len(b))\n', 'from collections import Counter\nn = int(input())\ns = [input() for i in range(n)]\nc = Counter(s)\nc = list(s.items())\nprint(len(c))', 'from collections import Counter\nn = int(input())\ns = [input() for i in range(n)]\nc = Counter(s)\nc = list(c.items())\nprint(len(c))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s541511114', 's609509000', 's148753269']
[8880.0, 38756.0, 47860.0]
[23.0, 264.0, 290.0]
[119, 129, 129]
p02701
u119982001
2,000
1,048,576
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?
['n = int(input())\ns = [input() for _ in range(n)]\n\nprint(n, s)\n\nitems = []\n\nfor i in range(n):\n new = True\n for j in range(len(items)):\n if s[i] == items[j]:\n new = False\n if new:\n items.append(s[i])\n \nprint(len(items))\n', 'N = int(input())\nS = [input() for _ in range(N)]\n\nprint(len(set(S)))\n']
['Wrong Answer', 'Accepted']
['s097171910', 's174186817']
[28660.0, 35544.0]
[2209.0, 252.0]
[256, 69]
p02701
u123849536
2,000
1,048,576
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?
["# -*- coding: utf-8 -*-\n\na, b, c, d = map(int, input().split(' '))\n\nn = max([int(a / d) + 1, int (c / b) + 1])\n\nfor i in range(n):\n a -= d\n c -= b\n # print(a,c)\n if c <= 0:\n print('Yes')\n exit()\n elif a <= 0:\n print('No')\n exit()", '# -*- coding: utf-8 -*-\n\nn = int(input())\n\nkind = []\n\nfor i in range(n):\n kind.append(input())\n\nprint(len(set(kind)))\n']
['Runtime Error', 'Accepted']
['s987598412', 's999173595']
[9208.0, 35620.0]
[22.0, 264.0]
[272, 121]
p02701
u127285813
2,000
1,048,576
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?
['N = int(input())\nst = set()\nfor _ in range(N):\n S = input()\n st.insert(S)\n\nprint(len(st))', 'N = int(input())\nst = set()\nfor _ in range(N):\n S = input()\n st.add(S)\n\nprint(len(st))']
['Runtime Error', 'Accepted']
['s047144920', 's773437781']
[9116.0, 31056.0]
[21.0, 293.0]
[91, 88]
p02701
u129749062
2,000
1,048,576
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?
['S = input()\ncount = 0\nfor i in range(len(S)):\n if int(S[i]) <= 1:\n for j in range(i+1,i+7):\n if int(S[i:j]) % 2019 == 0 and int(S[i:j]) != 0:\n count = count + 1\n if j >= len(S):\n break\n if int(S[i]) >= 2:\n if int(S[i:i+6]) == 200000:\n for j in range(i+1,i+7):\n if int(S[i:j]) % 2019 == 0 and int(S[i:j]) != 0:\n count = count + 1\n if j >= len(S):\n break\n else:\n for j in range(i+1,i+6):\n if int(S[i:j]) % 2019 == 0 and int(S[i:j]) != 0:\n count = count + 1\n if j >= len(S):\n break\nprint(count)', 'N = int(input())\nS = [input() for _ in range(N)]\nS.sort()\ncnt = 1\nfor i in range(1,N):\n if S[i] != S[i-1]:\n cnt+=1\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s432843949', 's844739026']
[9148.0, 23888.0]
[24.0, 331.0]
[612, 129]
p02701
u137226361
2,000
1,048,576
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?
['n = int(input())\n\nimport sys\nS = set(sys.stdin.buffer.readlines())\n\nprint(len(S))', 'n = int(input())\n\nimport sys\nS = set(sys.stdin.readlines())\n\n\n\nprint(len(S))']
['Wrong Answer', 'Accepted']
['s884187098', 's405370615']
[32420.0, 35472.0]
[84.0, 85.0]
[81, 76]
p02701
u140191608
2,000
1,048,576
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?
['N = int(input())\nn_list = []\nfor i in range(N):\n n_list.append(input())\nprint(len(dict(Counter(n_list))))', 'from collections import Counter\nN = int(input())\nn_list = []\nfor i in range(N):\n n_list.append(input())\nprint(len(dict(Counter(n_list))))']
['Runtime Error', 'Accepted']
['s363085559', 's657120704']
[23316.0, 43724.0]
[242.0, 296.0]
[108, 140]
p02701
u141419468
2,000
1,048,576
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?
['N = int(input())\nS = [str(input()) for _ in range(N)]\n\nS = list(S)\n\nfor i in range(N):\n for j in range(N-1):\n if S[i] == S[j+1]:\n N = N - 1\n\nprint(N)', 'import collections\n\nnum = int(input())\nS = [str(input()) for _ in range(num)]\n\nprint(len(collections.Counter(S)))']
['Wrong Answer', 'Accepted']
['s469782507', 's586843725']
[24832.0, 38724.0]
[2206.0, 285.0]
[170, 113]
p02701
u152331265
2,000
1,048,576
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?
['n=int(input())\nl=[]\nfor i in range(n):\n print(i)\n l.append(input())\nprint(len(s))', 'n=int(input())\nl=[]\nfor i in range(n):\n l.append(input())\ns=set(l)\nprint(len(s))']
['Runtime Error', 'Accepted']
['s776660527', 's527907282']
[23036.0, 35584.0]
[664.0, 281.0]
[83, 81]
p02701
u153259685
2,000
1,048,576
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?
['n=int(input())\ns=[int(input()) for i in range(n)]\nS=list(set(s))\nprint(len(S))', 'n=int(input())\ns=[input() for i in range(n)]\nS=list(set(s))\nprint(len(S))']
['Runtime Error', 'Accepted']
['s745819566', 's699368831']
[9180.0, 35576.0]
[22.0, 266.0]
[78, 73]
p02701
u154959342
2,000
1,048,576
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?
['n = int(input())\nl= []\ns = {}\n\nfor i in range(n):\n a = input()\n l.append(a)\n \ns = set(l)\nprint(len(s)', 'n = int(input())\n\nl= []\nfor i in range(n):\n a = input()\n l.append(a)\ns = set(l)\nprint(len(s))\n']
['Runtime Error', 'Accepted']
['s677272999', 's838547517']
[9040.0, 35564.0]
[21.0, 292.0]
[103, 101]
p02701
u156984393
2,000
1,048,576
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?
['N = int(input())\nS = [input() for i in range(N)]\nreturn len(set(S))', 'N = int(input())\nS = [input() for i in range(N)]\nprint(len(set(S)))']
['Runtime Error', 'Accepted']
['s210695744', 's570117798']
[9092.0, 35568.0]
[23.0, 248.0]
[67, 67]
p02701
u158614467
2,000
1,048,576
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?
['import numpy as np\n\nnum = int(input());\nint count=1;\n\nfor i in range(num):\n s = input();\n if len(s) == 1:\n mylist_1.append(s);\n elif len(s) == 2:\n mylist_2.append(s);\n elif len(s) == 3:\n mylist_3.append(s);\n elif len(s) == 4:\n mylist_4.append(s);\n elif len(s) == 5:\n mylist_5.append(s);\n elif len(s) == 6:\n mylist_6.append(s);\n elif len(s) == 7:\n mylist_7.append(s);\n elif len(s) == 8:\n mylist_8.append(s);\n elif len(s) == 9:\n mylist_9.append(s);\n elif len(s) == 10:\n mylist_10.append(s);\n \n\nm1 = len(list(set(mylist_1)));\nm2 = len(list(set(mylist_2)));\nm3 = len(list(set(mylist_3)));\nm4 = len(list(set(mylist_4))); \nm5 = len(list(set(mylist_5)));\nm6 = len(list(set(mylist_6)));\nm7 = len(list(set(mylist_7)));\nm8 = len(list(set(mylist_8)));\nm9 = len(list(set(mylist_9)));\nm10 = len(list(set(mylist_10)));\n\nm = m1 +m2 +m3 +m4 +m5 + m6 + m7+ m8+ m9+m10;\nprint(m);', 'num = int(input());\n\nfor i in range(num):\n s = input();\n if len(s) == 1:\n mylist_1.append(s);\n elif len(s) == 2:\n mylist_2.append(s);\n elif len(s) == 3:\n mylist_3.append(s);\n elif len(s) == 4:\n mylist_4.append(s);\n elif len(s) == 5:\n mylist_5.append(s);\n elif len(s) == 6:\n mylist_6.append(s);\n elif len(s) == 7:\n mylist_7.append(s);\n elif len(s) == 8:\n mylist_8.append(s);\n elif len(s) == 9:\n mylist_9.append(s);\n elif len(s) == 10:\n mylist_10.append(s);\n \n\nm1 = len(list(set(mylist_1)));\nm2 = len(list(set(mylist_2)));\nm3 = len(list(set(mylist_3)));\nm4 = len(list(set(mylist_4))); \nm5 = len(list(set(mylist_5)));\nm6 = len(list(set(mylist_6)));\nm7 = len(list(set(mylist_7)));\nm8 = len(list(set(mylist_8)));\nm9 = len(list(set(mylist_9)));\nm10 = len(list(set(mylist_10)));\n\nm = m1 + m2 + m3 + m4 + m5 + m6 + m7 + m8 + m9 + m10;\nprint(m);\n', 'num = int(input());\n\nmylist_1=[];\nmylist_2=[];\nmylist_3=[];\nmylist_4=[];\nmylist_5=[];\nmylist_6=[];\nmylist_7=[];\nmylist_8=[];\nmylist_9=[];\nmylist_10=[];\n\nfor i in range(num):\n s = input();\n if len(s) == 1:\n mylist_1.append(s);\n elif len(s) == 2:\n mylist_2.append(s);\n elif len(s) == 3:\n mylist_3.append(s);\n elif len(s) == 4:\n mylist_4.append(s);\n elif len(s) == 5:\n mylist_5.append(s);\n elif len(s) == 6:\n mylist_6.append(s);\n elif len(s) == 7:\n mylist_7.append(s);\n elif len(s) == 8:\n mylist_8.append(s);\n elif len(s) == 9:\n mylist_9.append(s);\n elif len(s) == 10:\n mylist_10.append(s);\n \n\nm1 = len(list(set(mylist_1)));\nm2 = len(list(set(mylist_2)));\nm3 = len(list(set(mylist_3)));\nm4 = len(list(set(mylist_4))); \nm5 = len(list(set(mylist_5)));\nm6 = len(list(set(mylist_6)));\nm7 = len(list(set(mylist_7)));\nm8 = len(list(set(mylist_8)));\nm9 = len(list(set(mylist_9)));\nm10 = len(list(set(mylist_10)));\n\nm = m1 + m2 + m3 + m4 + m5 + m6 + m7 + m8 + m9 + m10;\nprint(m);\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s165203529', 's609834747', 's150102332']
[8848.0, 9288.0, 36044.0]
[25.0, 25.0, 431.0]
[906, 882, 1014]
p02701
u161318582
2,000
1,048,576
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?
['n = int(input())\nls = []\nfor _ in n:\n ls.append(input())\n \n print(len(set(ls)))\n', 'n = int(input())\nls = []\nfor _ in n:\n ls.append(input())\n \n print(len(set(ls))', 'n = int(input())\nls = []\nfor _ in range(n):\n ls.append(input())\n \nprint(len(set(ls)))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s347687840', 's416085265', 's894059333']
[9012.0, 8992.0, 35684.0]
[23.0, 24.0, 270.0]
[82, 80, 88]
p02701
u162612857
2,000
1,048,576
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?
['n = int(input)\nlis = [input() for i in range(n)]\nprint(len(set(lis)))\n', 'n = int(input())\nlis = [input() for i in range(n)]\nprint(len(set(lis)))\n']
['Runtime Error', 'Accepted']
['s310001383', 's662378805']
[9088.0, 35716.0]
[23.0, 254.0]
[70, 72]
p02701
u168416324
2,000
1,048,576
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?
['n=int(input())\ndic=[]\nfor i in range(n):\n if not i in dic:\n dic.append(i)\nprint(len(dic))', 'n=int(input())\ns = list(set([input() for i in range(n)]))\nprint(len(s))']
['Wrong Answer', 'Accepted']
['s246701169', 's209774003']
[9804.0, 35672.0]
[2206.0, 273.0]
[93, 71]
p02701
u171600314
2,000
1,048,576
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?
['p = list((input().split()))\ns = list()\nfor i in range(1, len(p)):\n s.append(p[i])\nprint(len(list(set(s))))', 'import sys\np = []\nfor l in sys.stdin:\n a.append(l)\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(set(s)))', 'p = list((input().split()))\ns = set()\nfor i in range(1, len(p)+1):\n s.add(p[i])\nprint(len(s))', 'import sys\np = []\nfor l in sys.stdin:\n a.append(int(l))\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(set(s)))', 'p = input() .split()\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(set(s)))', 'p = list((input().split()))\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(s))', 'import sys\na = []\nfor l in sys.stdin:\n a.append(l)\np = input() .split()\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(set(s)))', 'p = list((input().split()))\ns = set()\nfor i in range(1, int(p[0])):\n s.add(p[i])\nprint(len(s))', 'import sys\ns = sys.stdin.readlines()\ns = input() .split()\nfor i in range(1, len(s)):\n s.add(p[i])\nprint(len(set(s)))', 'p = list((input().split()))\ns = list()\nfor i in range(1, int(p[0])+1):\n s.append(p[i])\nprint(len(list(set(s))))', 'p = list((input().split()))\ns = []\nfor i in range(1, int(p[0])):\n s.append(p[i])\nprint(len(list(set(s))))', 'p = list((input().split()))\ns = set()\nfor i in range(1, int(p[0])):\n s.add(p[i])\nprint(len(list(s)))\n', 'n = int(input())\np = [input() for i in range(n)]\ns = set()\nfor i in range(n):\n s.add(p[i])\nprint(len(s))']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s001895520', 's142101662', 's174162909', 's220229893', 's301046945', 's319788527', 's381238851', 's481511637', 's662661827', 's812626360', 's834539692', 's858563711', 's396538979']
[9120.0, 9052.0, 9116.0, 9120.0, 9064.0, 9112.0, 22936.0, 9188.0, 23092.0, 9124.0, 9184.0, 9168.0, 35720.0]
[22.0, 24.0, 21.0, 25.0, 22.0, 22.0, 54.0, 22.0, 46.0, 23.0, 25.0, 21.0, 296.0]
[109, 125, 96, 130, 92, 94, 146, 97, 119, 114, 108, 104, 107]
p02701
u178806894
2,000
1,048,576
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?
['4\naaaa\na\naaa\naa\n', 'n=int(input())\ns=[]\nfor i in range(n):\n s.append(input())\n \nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s604619927', 's848736248']
[9132.0, 35568.0]
[21.0, 271.0]
[16, 84]
p02701
u181159654
2,000
1,048,576
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?
['num = int(input())\n\nif num>=1 and num<=200000:\n str_list = []\n kind = 0\n for idx in range(num):\n input_str = input()\n if input_str not in str_list:\n str_list.append(input_str)\n kind += 1\n else:\n pass', 'n = int(input())\n\nl = []\nfor _ in range(n):\n l.append(input())\nprint(len(set(l)))']
['Wrong Answer', 'Accepted']
['s193724080', 's677908637']
[10212.0, 35624.0]
[2206.0, 268.0]
[226, 84]
p02701
u184902932
2,000
1,048,576
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?
['N = int(input())\nlist_S = []\nfor i in range(N):\n if not str(input()) in list_get: list_S.append(str(input()))\nprint(len(list_S))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n list_S.append(str(input()))\n\nlist_get = []\nfor i in range(list_S):\n if not list_S[i] in list_get:\n list_get.append(list_S[i])\n\nprint(len(list_get))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n list_S.append(input())\n\nlist_get = []\nfor i in list_S:\n if not list_S[i] in list_get: list_get.append(list_S[i])\n\nprint(len(list_get))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n if not str(input()) in list_S: list_S.append(str(input()))\nprint(len(list_S))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n if not str(input()) in list_get: list_S.append(str(input()))\nprint(len(list_get))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n list_S.append(str(input()))\n\nlist_get = []\nfor i in range(list_S):\n if not list_S[i] in list_get: list_get.append(list_S[i])\n\nprint(len(list_get))', 'N = int(input())\nlist_S = []\nfor i in range(N):\n list_S.append(str(input()))\n\nlist_get = []\nfor i in list_S:\n if not list_S[i] in list_get: list_get.append(list_S[i])\n\nprint(len(list_get))', 'N = int(input())\nlist_S = [str(input()) for i in range(N)]\nprint(len(list(set(list_S))))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s139786510', 's167233861', 's206378264', 's459357281', 's462780806', 's515843339', 's847423723', 's834321739']
[9040.0, 23224.0, 23220.0, 10208.0, 9184.0, 23244.0, 23324.0, 35580.0]
[20.0, 269.0, 246.0, 2206.0, 24.0, 271.0, 271.0, 285.0]
[129, 201, 185, 127, 131, 197, 190, 88]
p02701
u185517559
2,000
1,048,576
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?
['n = int(input())\ncount = 0\n\nfor i in range(n):\n s[i] = input()\n if s[i] in s:\n count += 1\n\nprint(count)', '\n\nn = int(input())\ns = [input() for _ in range(n)]\n\nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s361711737', 's700521741']
[9164.0, 35672.0]
[20.0, 254.0]
[116, 99]
p02701
u187235390
2,000
1,048,576
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?
["import sys\nfrom collections import deque\nimport copy\ndef main():\n N = int(input())\n S = []\n for i in range(N):\n s = input()\n if i == 0:\n S.append(s)\n continue\n for j in range(len(S)):\n flag = False\n if len(S[j]) != len(s):\n flag = True\n break\n else:\n for u in range(len(s)):\n if S[j][u] != s[u]:\n flag = True\n break\n if flag:\n break\n if flag:\n S.append(s)\n print(len(S))\n \n\nif __name__ == '__main__':\n main()\n", "import sys\nfrom collections import deque\nimport copy\ndef main():\n N = int(input())\n S = []\n for i in range(N):\n s = input()\n S.append(s)\n S.sort()\n count = N\n for i in range(1, len(S)):\n if S[i - 1] == S[i]:\n count -= 1\n print(count)\n \n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s854209004', 's734920645']
[23880.0, 24392.0]
[474.0, 342.0]
[657, 331]
p02701
u188305619
2,000
1,048,576
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?
['N = int(input())\nS = []\nfor n in range(N):\n Sn = str(input())\n S.append(Sn)\nprint(S)\nans = len(list(dict.fromkeys(S)))\nprint(ans)', 'N = int(input())\nS = []\nfor n in range(N):\n Sn = str(input())\n S.append(Sn)\nans = len(list(dict.fromkeys(S)))\nprint(ans)']
['Wrong Answer', 'Accepted']
['s496532745', 's242525468']
[43156.0, 38508.0]
[339.0, 315.0]
[135, 126]
p02701
u193524519
2,000
1,048,576
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?
['# encoding="UTF-8"\n\nN = int(input())\nS = set()\nfor i in range(N):\n S.add(input())\nprint(S)\nprint(len(S))', '# encoding="UTF-8"\n\nN = int(input())\nS = set()\nfor i in range(N):\n S.add(input())\n\nprint(len(S))']
['Wrong Answer', 'Accepted']
['s827186900', 's871595150']
[36892.0, 31172.0]
[325.0, 286.0]
[107, 99]
p02701
u195396655
2,000
1,048,576
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?
['n = input()\ncounter = 0\ns = ""\ntemp = ""\n\nwhile n > 0:\n s = input()\n if temp != s:\n counter = counter + 1\n temp = s\n n = n - 1', 'n = input()\ncounter = 0\ns = ""\ntemp = ""\n\nwhile n > 0:\n s = input()\n if temp != s:\n counter = counter + 1\n temp = s\n n = n - 1\n\nprint(counter)', 'n = int(input())\ncounter = 0\ns = "TEMP"\ntemp = "TEMP"\n\nwhile n > 0:\n s = input()\n if temp != s:\n counter = counter + 1\n temp = s\n n = n - 1\n\nprint(counter)\n', 'n = int(input())\ncounter = 0\ns = "TEMP"\nlist = []\n\nwhile n > 0:\n s = input()\n list.append(s)\n counter = 0\n for item in list:\n if item == s\n counter = counter - 1\n counter = counter + 1\n n = n - 1\n\nprint(counter)', 'n = input()\ncounter = 0\ns = "TEMP"\ntemp = "TEMP"\n\nwhile n > 0:\n s = input()\n if temp != s:\n counter = counter + 1\n temp = s\n n = n - 1\n\nprint(counter)', 'n = input()\ncounter = 0\ns = "TEMP"\ntemp = "TEMP"\n\nwhile n > 0:\n s = input()\n if temp != s:\n counter = counter + 1\n temp = s\n n = n - 1', 'n = int(input())\ncounter = 0\ns = "TEMP"\nlist = []\n\nwhile n > 0:\n s = input()\n list.append(s)\n counter = 0\n for item in list:\n if item == s:\n counter = counter - 1\n counter = counter + 1\n n = n - 1\n\nprint(counter)', 'n = int(input())\ncounter = 0\ns = "TEMP"\nlist = []\ntemp = \'\'\n\nwhile n > 0:\n s = input()\n list.append(s)\n n = n - 1\n\nlist.sort()\nfor item in list:\n if item == temp:\n counter = counter - 1\n counter = counter + 1\n temp = item\n\nprint(counter)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s043010187', 's358290539', 's426553257', 's481274280', 's584903199', 's676418648', 's720857617', 's501434512']
[9100.0, 9120.0, 9108.0, 8828.0, 9128.0, 9116.0, 9424.0, 23712.0]
[24.0, 22.0, 261.0, 23.0, 21.0, 21.0, 2206.0, 361.0]
[133, 149, 163, 227, 157, 141, 228, 246]
p02701
u203471639
2,000
1,048,576
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?
['n = int(input())\nls = []\nfor x in range(n):\n ls.append(input())\n print(len(set(ls)))', 'n = int(input())\nls = []\nfor x in range(n):\n ls.append(input())\nprint(len(set(ls)))']
['Wrong Answer', 'Accepted']
['s387345017', 's419854448']
[10524.0, 35528.0]
[2206.0, 267.0]
[90, 86]
p02701
u209275335
2,000
1,048,576
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?
['n = int(input())\nli = []\ncount = 0\nfor i in range(n):\n li.append(input())\nli.sort()\nprint(li)\nfor i in range(n-1):\n if li[i] == li[i+1]:\n count += 1\nprint(n-count)', 'n = int(input())\nli = []\ncount = 0\nfor i in range(n):\n li.append(input())\nli.sort()\nfor i in range(n-1):\n if li[i] == li[i+1]:\n count += 1\nprint(n-count)']
['Wrong Answer', 'Accepted']
['s282777333', 's740912921']
[29792.0, 23832.0]
[354.0, 335.0]
[176, 166]
p02701
u217836256
2,000
1,048,576
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?
['K = int(input())\nL = []\nfor i in range(1,K+1):\n t =input()\n L.append(t)\nprint(len(L))', 'K = int(input())\nL = []\nfor i in range(1,K+1):\n t =input()\n L.append(t)\nS = set(L)\nprint(len(S))\n\n\n']
['Wrong Answer', 'Accepted']
['s392085587', 's308241432']
[23404.0, 35708.0]
[248.0, 288.0]
[91, 105]
p02701
u220499476
2,000
1,048,576
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?
['s = input().split()\nprint(len(set(s))-1)', 'N = int(input())\ns = input().split()\nprint("\\n")\nprint(len(set(s)))', 'N = int(input())\ns = input().split()\nprint(len(set(s)))', 'N = int(input())\ns = [input() for i in range(N)]\nprint(len(set(s)))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s671610689', 's782592601', 's812764139', 's665175767']
[9044.0, 9168.0, 9164.0, 35580.0]
[21.0, 21.0, 21.0, 256.0]
[40, 67, 55, 67]
p02701
u224119985
2,000
1,048,576
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?
['n=int(input())\n s= []\nfor _ in range(n):\n s.append(input())\ncount=0\nfor i in range(n):\n for j in range(i):\n if s[i]==s[j]:\n count=count\n else:\n count=count+1\nprint(count)', 'n = int(input())\ns = [input() for i in range(n)]\nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s874682800', 's113423522']
[8980.0, 35640.0]
[22.0, 253.0]
[212, 67]
p02701
u228636605
2,000
1,048,576
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?
['\nN = int(input())\nS = []\ncount = 1\nfor i in range(N):\n S.append(input())\n\nfor i in range(N-1):\n if S[i] != S[i+1]:\n count+=1\nprint(count)', 'N = int(input())\nS = []\ncount = 1\n\n\nfor i in range(N):\n S.append(input())\nprint(len(list(set(S))))']
['Wrong Answer', 'Accepted']
['s021787363', 's398700626']
[23252.0, 35712.0]
[278.0, 281.0]
[150, 101]
p02701
u236317938
2,000
1,048,576
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?
['N = int(input())\n\nlis = []\n\nfor n in range(N):\n s = input()\n if not s in lis:\n s.append(s)\n\nprint(len(lis))', 'N = int(input())\n\nlis = []\n\nfor n in range(N):\n lis.append(input())\n\ns = set(lis)\nprint(len(s))']
['Runtime Error', 'Accepted']
['s797835723', 's453073577']
[9176.0, 35704.0]
[23.0, 286.0]
[112, 96]
p02701
u236885379
2,000
1,048,576
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?
['n = int(input())\ns = set()\nfor i in range(n):\n s.insert(input())\nprint(len(s))', 'n = int(input())\ns = set()\nfor i in range(n):\n s.add(input())\nprint(len(s))\n']
['Runtime Error', 'Accepted']
['s994431335', 's400323401']
[9048.0, 31028.0]
[22.0, 294.0]
[79, 77]
p02701
u237327356
2,000
1,048,576
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?
['N=int(input())\nS=[]\nfor i in range(N):\n S.append(input())\n\nfor i in range(N):\n for j in range(N):\n if S[i] == S[j]:\n pair += 1\n\npair=(pair-N)/2\nprint(pair)\n', 'N=int(input())\nS=[]\nfor i in range(N):\n S.append(input())\n\nS=set(S)\nprint(len(S))\n']
['Runtime Error', 'Accepted']
['s330126430', 's042642534']
[23340.0, 35716.0]
[240.0, 282.0]
[180, 85]
p02701
u238368607
2,000
1,048,576
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?
['N = int(input())\nS = [input() for i in range(N)]\nS.sort()\nc = 1\nfor i in range(N-1):\n if S[i] == S[i+1]:\n continue\n else: \n c++\nprint(c)', 'N = int(input())\nS = [input() for i in range(N)]\nS.sort()\nc = 1\nfor i in range(N-1):\n if S[i] == S[i+1]:\n else c++:\nprint(c)', 'N = int(input())\nS = [input() for i in range(N)]\nS.sort()\nc = 1\nfor i in range(N-1):\n if S[i] == S[i+1]:\n continue\n else c++:\nprint(c)', 'N = int(input())\nS = [input() for i in range(N)]\nS.sort()\nc = 1\nfor i in range(N-1):\n if S[i] == S[i+1]\n else c++\nprint(c)\n', 'N = int(input())\nS = [input() for i in range(N)]\nS.sort()\nc = 1\nfor i in range(N-1):\n if S[i] == S[i+1]:\n continue\n else:\n c += 1\nprint(c)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s103431389', 's218775648', 's348592167', 's652772031', 's979869959']
[9028.0, 9032.0, 8964.0, 8976.0, 23964.0]
[21.0, 21.0, 23.0, 21.0, 321.0]
[144, 126, 139, 125, 146]
p02701
u240608977
2,000
1,048,576
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?
['n = int(input())\ns = set()\nfor _ in range(n):\n string = input()\n s.add(string)\nreturn len(s) \n \n', 'n = int(input())\ns = set()\nfor _ in range(n):\n string = input()\n s.add(string)\nprint(len(s)) \n \n']
['Runtime Error', 'Accepted']
['s809002297', 's086971240']
[9044.0, 31188.0]
[22.0, 295.0]
[108, 108]
p02701
u240630407
2,000
1,048,576
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?
['N = int(input())\nd = {}\nfor i in range(N):\n d[input()] = 0\nprint(len(dict))', 'N = int(input())\nd = {}\nfor i in range(N):\n d[input()] = 0\nprint(len(d))\n']
['Runtime Error', 'Accepted']
['s022345871', 's775163071']
[35256.0, 35416.0]
[272.0, 283.0]
[76, 76]
p02701
u246907970
2,000
1,048,576
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?
['num=int(input())\nlist=[]\nfor i in range(num):\n a=input()\n list.append(a)\nb=set(a)\nprint(len(b))', 'num=int(input())\nlist=[]\nfor i in range(num):\n a=input()\n list.append(a)\nb=set(list)\nprint(len(b))']
['Wrong Answer', 'Accepted']
['s901649876', 's467222573']
[23164.0, 35576.0]
[246.0, 292.0]
[97, 100]
p02701
u250061066
2,000
1,048,576
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?
['import collections\nN=int(input())\nL=[input() for i in range(N)] \nC = collections.Counter(L)\nD = list(C.values())\nE=sum(D)\nprint(E)', 'import collections\nN=int(input())\nL=[input() for i in range(N)] \nC = collections.Counter(L)\nD = list(C.values())\nprint(len(D))']
['Wrong Answer', 'Accepted']
['s496413795', 's739911450']
[38780.0, 38708.0]
[268.0, 265.0]
[130, 126]
p02701
u250828304
2,000
1,048,576
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?
['import bisect\nN = int(input())\nss = []\nfor i in range(N):\n ss.append(input())\n \nss.sort()\ncount = N\nfor i in range(N):\n index= bisect.bisect(ss,ss[i])\n if index == N:\n continue\n if ss[index] == ss[i]:\n count-= 1\n \nprint(count)', '\nN = int(input())\nss = []\nfor i in range(N):\n ss.append(input())\n \nprint(len(set(ss)))']
['Wrong Answer', 'Accepted']
['s537976299', 's400537253']
[23868.0, 35576.0]
[472.0, 267.0]
[240, 88]
p02701
u251843176
2,000
1,048,576
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?
['n = int(input())\ns = [input() for i in range(n)]\nlen(set(s))', 'n = int(input())\ns = [input() for i in range(n)]\nlen(set(s))', 'n = int(input())\ns = [input() for i in range(n)]\nprint(len(set(s)))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s873353083', 's884586088', 's389883969']
[35716.0, 35536.0, 35584.0]
[258.0, 253.0, 256.0]
[60, 60, 67]
p02701
u252964975
2,000
1,048,576
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?
['N=int(input())\nS_list = []\nfor i in range(N):\n s = str(input())\n# if not (s in S_list):\n# S_list.append(s)\nprint(len(S_list))', 'N=int(input())\nS_list = []\nfor i in range(N):\n s = str(input())\n if not (s in S_list):\n# S_list.append(s)\nprint(len(S_list))', 'N=int(input())\nS_list = []\ncount = 0\nfor i in range(N):\n s = str(input())\n S_list.append(s)\n if not (s in S_list):\n count = count + 1\nprint(len(S_list))', 'import numpy as np\nN=int(input())\nS_list = np.zeros(N)\n\ne_list = "abcdefghijklmnopqrstuvwxyz"\n\nfor i in range(N):\n s = input()\n n = 0\n for k in range(len(s)):\n n = n + (e_list.index(s[k])+1)*(100**k)\n S_list[i] = n\nprint(len(np.unique(S_list)))\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s478780309', 's695998849', 's703478837', 's994032948']
[9180.0, 9028.0, 23260.0, 31748.0]
[247.0, 21.0, 2206.0, 1292.0]
[130, 129, 158, 283]
p02701
u253389610
2,000
1,048,576
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?
['import sys\nn = int(input().strip())\nitems = set()\nfor _ in range(n):\n items |= {sys.readline().strip()}', 'import sys\nn = int(input().strip())\nitems = set()\nfor _ in range(n):\n items |= {sys.readline().strip()}\nprint(len(items))', 'import sys\nn = int(input().strip())\nitems = set()\nfor _ in range(n):\n items |= {sys.stdin.readline().strip()}\nprint(len(items))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s543319632', 's736129232', 's024511963']
[9136.0, 9128.0, 31084.0]
[22.0, 24.0, 132.0]
[104, 122, 129]
p02701
u257265865
2,000
1,048,576
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?
['N=int(inout())\nS=[input() for i in range(N)]\nprint(len(set(S)))', 'N=int(inout())\nS=list(input() for i in range(N))\nprint(len(set(S)))\n', 'N = input()\nList = list(input() for i in range(N))\nprint(len(set(List)))\n', 'N=int(input())\nS=list(input() for i in range(N))\nprint(len(set(S)))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s176130861', 's434437475', 's903293880', 's696383364']
[8996.0, 9052.0, 9108.0, 35552.0]
[24.0, 24.0, 20.0, 260.0]
[63, 68, 73, 68]
p02701
u258325541
2,000
1,048,576
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?
['N = int(input())\nS = []\n\nfor i in range(N):\n S.append(input())\nset(S)\nprint(len(S))', 'N = int(input())\nS = []\n\nfor i in range(N):\n S.append(input())\nS= set(S)\nprint(len(S))']
['Wrong Answer', 'Accepted']
['s375081330', 's240453572']
[35492.0, 35556.0]
[269.0, 290.0]
[84, 87]
p02701
u260764792
2,000
1,048,576
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?
["n=int(input())\na=[]\ncnt=1\nfor i in range(n):\n\ta.append(input())\nfor i in range(0,n):\n\tfor j in range(i+1,n):\n\t\tif a[i]==a[j]:\n\t\t\tbreak\n\t\telif j == n-1:\n\t\t\tprint('hi')\n\t\t\tcnt+=1\nprint(cnt)", 'n=int(input())\na=list(input() for i in range(n))\nprint(len(set(a)))']
['Wrong Answer', 'Accepted']
['s795792040', 's486672577']
[23176.0, 35612.0]
[2206.0, 254.0]
[187, 67]
p02701
u262065571
2,000
1,048,576
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?
['n = int(input())\na = []\nfor _ in n:\n a.append(input())\nprint(len(set(a))) ', 'n = int(input())\na = []\nfor _ in n:\n i = str(input())\n a.append(i)\nprint(len(set(a))) ', 'n = int(input())\nprint(len(set(list([input() for _ in range(n)])))) ']
['Runtime Error', 'Runtime Error', 'Accepted']
['s408644839', 's716102470', 's242699178']
[8980.0, 9184.0, 36244.0]
[21.0, 23.0, 264.0]
[76, 89, 68]
p02701
u264281836
2,000
1,048,576
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?
['num=int(input())\nlst=[]\nif 1<=num<=2*10**5:\n lst=[input() for i in range(num)]\n print(lst)\n print(len(set(lst)))', 'import collections\n\nnum=int(input())\nlst=[x for x in range(num)]\nc=collections.Counter(lst)\nprint(len(c))', 'num=int(input())\nlst=[]\nif 1<=num<=2*10**5:\n lst=[input() for i in range(num)]\n print(len(set(lst)))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s353069655', 's595260949', 's939104336']
[38072.0, 32548.0, 35700.0]
[274.0, 55.0, 252.0]
[121, 105, 106]
p02701
u264564865
2,000
1,048,576
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?
["port sys\nimport math\nfrom collections import deque\ninput = lambda: sys.stdin.readline().rstrip()\nYes = lambda boolean: print('Yes') if boolean else print('No')\nYES = lambda boolean: print('YES') if boolean else print('NO')\naint = lambda: int(input())\nints = lambda: list(map(int, input().split()))\nis_even = lambda x: True if x%2==0 else False\n\nn = aint()\nget = []\nfor i in range(n):\n s = input()\n if s not in get:\n get.append(s)\nprint(len(get))", 'import sys\ninput = lambda: sys.stdin.readline().rstrip()\naint = lambda: int(input())\nints = lambda: list(map(int, input().split()))\n\nn = aint()\nget = [[],[],[],[],[],[],[],[],[],[]]\nfor i in range(n):\n s = input()\n if s not in get[len(s)-1]:\n get[len(s)-1].append(s)\n\nss = 0\nfor cont in get:\n ss += sum(cont)\nprint(ss)', "import sys\nimport math\nfrom collections import deque\ninput = lambda: sys.stdin.readline().rstrip()\nYes = lambda boolean: print('Yes') if boolean else print('No')\nYES = lambda boolean: print('YES') if boolean else print('NO')\naint = lambda: int(input())\nints = lambda: list(map(int, input().split()))\nis_even = lambda x: True if x%2==0 else False\n\nn = aint()\nget = []\nfor i in range(n):\n s = input()\n get.append(s)\nss = set(get)\nprint(len(ss))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s111005080', 's489409871', 's102250646']
[9012.0, 10288.0, 36060.0]
[21.0, 2206.0, 143.0]
[450, 334, 448]
p02701
u270886147
2,000
1,048,576
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?
['N = int(input())\nS = [input() for _ in range(N)]\n\nS_set = list(set(S))\n\n\n\nprint(len(S))\n', 'N = int(input())\nS = [input() for _ in range(N)]\n\nS_set = list(set(S))\n\n\n\nprint(len(S_set))\n']
['Wrong Answer', 'Accepted']
['s157088062', 's670727576']
[35636.0, 35528.0]
[268.0, 260.0]
[88, 92]
p02701
u277312083
2,000
1,048,576
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?
['n = int(input())\ns = (input() for _ in range(n))\nprint(len(s))\n', 'n = int(input())\ns = {input() for _ in range(n)}\nprint(len(s))\n']
['Runtime Error', 'Accepted']
['s709317664', 's372530071']
[8968.0, 31152.0]
[23.0, 275.0]
[63, 63]
p02701
u280329066
2,000
1,048,576
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?
["import sys \nsys.stdin = open('input.txt', 'r') \nsys.stdout = open('output.txt', 'w') \nt=int(input())\ns=set()\nfor i in range(t):\n # n,m=map(int,input().split())\n n=input()\n s.add(n);\nprint(len(s));\n\n ", ' \nt=int(input())\ns=set()\nfor i in range(t):\n # n,m=map(int,input().split())\n n=input()\n s.add(n);\nprint(len(s));\n\n ']
['Runtime Error', 'Accepted']
['s202355864', 's558826651']
[9028.0, 30980.0]
[23.0, 292.0]
[212, 127]
p02701
u290731659
2,000
1,048,576
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?
['N = int(input())\nitems = []\ncount = 0\nfor x in range(N):\n thing = input()\n if not x in items:\n count += 1\n items.append(thing)\nprint(count)', 'N = int(input())\nitems = []\ncount = 0\nfor x in range(N):\n thing = input()\n if thing not x in items:\n count += 1\n \titems.append(thing)\nprint(count)', 'N = int(input())\nitems = []\ncount = 0\nfor x in range(N):\n thing = input()\n if not x in items:\n count += 1\n items.append(thing)\nprint(count)', 'N = int(input())\nitems = []\ncount = 0\nfor x in range(N):\n thing = input()\n if thing is not in items:\n count += 1\n items.append(thing)\nprint(count)', 'N = int(input())\narr = []\nfor x in range(N):\n arr.append(input())\n\nprint(len(list(set(arr))))']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s002876197', 's098543348', 's245612107', 's777259960', 's483441135']
[10284.0, 8968.0, 10200.0, 9044.0, 35708.0]
[2206.0, 23.0, 2206.0, 25.0, 286.0]
[145, 152, 147, 152, 94]
p02701
u297073817
2,000
1,048,576
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?
['import sys\na = []\nfor l in sys.stdin:\n a.append(int(l))\na = a[1:]\nprint(len(set(a)))', 'hoge = input().split()\nprint(len(set(hoge)))', 'n = int(stdin.readline().rstrip())\ndata = [stdin.readline().rstrip().split() for _ in range(n)]\nprint(len(set(data))-1)', 'from sys import stdin\nimport numpy as np\nn = int(stdin.readline().rstrip())\ndata = [stdin.readline().rstrip().split() for _ in range(n)]\nprint(len(set(np.array(data).reshape(-1,))))']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s729332505', 's735850349', 's895899008', 's903077850']
[9172.0, 9124.0, 9100.0, 117656.0]
[24.0, 22.0, 21.0, 438.0]
[87, 44, 119, 181]
p02701
u297167963
2,000
1,048,576
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?
['row = int(input())\nitem_list = [input() for i in range(row)]\nresult_list = []\nfor j in item_list:\n exist_in_item_list = False\n for k in result_list.len():\n if result_list[k] == item_list[j]:\n exist_in_item_list = True\n break\n if not exist_in_item_list:\n result_list.append(item_list[j])\n\nprint(result_list.len())\n', 'row = int(input())\nitem_list = [input() for i in range(row)]\nresult_list = []\nfor j in item_list:\n exist_in_item_list = False\n for k in result_list.len():\n if result_list[k] == item_list[j]:\n exist_in_item_list = True\n break\n result_list.append(item_list[j])\n\nprint(result_list.len())\n', 'row = int(input())\nitem_list = [input() for i in range(row)]\nprint(len(set(item_list)))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s507471651', 's510438443', 's156530305']
[23296.0, 23288.0, 35532.0]
[228.0, 228.0, 257.0]
[332, 301, 88]
p02701
u307176314
2,000
1,048,576
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?
['# coding:utf-8\n\nn=int(input())\ngacha_list[input() for i in range()]\ngacha_prize=list(set(gacha_list())\nprint(len(gacha_prize()))', 'n=int(input())\na=[]\n \nfor i in range(n):\n word=input()\n a.append(word)\nprint(len(set(a)))\n\n\n']
['Runtime Error', 'Accepted']
['s864629735', 's544460633']
[8932.0, 35716.0]
[22.0, 277.0]
[128, 94]
p02701
u309120194
2,000
1,048,576
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?
['N = int(input())\nS = [input() for _ in range(N)]\n\nprint(len(set(S))', 'N = int(input())\nS = [input() for _ in range(N)]\n \nprint(len(set(S)))']
['Runtime Error', 'Accepted']
['s166240189', 's002322734']
[9032.0, 35668.0]
[24.0, 260.0]
[67, 69]
p02701
u316233444
2,000
1,048,576
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?
['N = int(input())\nS = [input(i) for i in range(N)]\n#print(S)\nans=set(S)\nprint(len(ans))', 'N = int(input())\nS = [input() for _ in range(N)]\n#print(S)\nans=set(S)\nprint(len(ans))']
['Wrong Answer', 'Accepted']
['s924112276', 's928978787']
[35576.0, 35572.0]
[665.0, 265.0]
[86, 85]
p02701
u316649390
2,000
1,048,576
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?
['from collections import Counter\nN = int(input())\nS = list(input().split())\nc = Counter(S)\nprint(len(c))', 'N = int(input())\nS = set()\nfor i in range(N):\n S.add(input())\nprint(len(S))']
['Wrong Answer', 'Accepted']
['s705698028', 's758884398']
[9268.0, 30992.0]
[25.0, 283.0]
[103, 76]
p02701
u317423698
2,000
1,048,576
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?
['import sys\nimport itertools\n\nprint(set(itertools.islice(sys.stdin.buffer, 1, None)))', 'import sys, itertools\nprint(len(set(itertools.islice(sys.stdin.buffer, 1, None))))']
['Wrong Answer', 'Accepted']
['s669315911', 's186059033']
[34800.0, 28532.0]
[111.0, 67.0]
[84, 82]
p02701
u317779196
2,000
1,048,576
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?
['n = int(input())\ns = [int(input()) for _ in range(n)]\nprint(len(set(s)))', 'n = int(input())\ns = [input() for _ in range(n)]\nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s189171015', 's656881960']
[9068.0, 35336.0]
[27.0, 262.0]
[72, 67]
p02701
u322603957
2,000
1,048,576
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?
['newlst = []\nlst =[]\nm = int(input())\nwhile(m<0):\n a = str(input())\n lst.append(a)\n m = m -1\nfor j in lst:\n if j not in newlst:\n newlst.append(j)\nprint(len(newlst))\n', 'newlst = []\nlst =[]\nm = int(input())\nwhile m > 0:\n a = str(input())\n lst.append(a)\n m = m -1\nnewlst = list(dict.fromkeys(lst))\nprint(len(newlst))\n']
['Wrong Answer', 'Accepted']
['s743733105', 's905093102']
[9184.0, 38388.0]
[22.0, 328.0]
[183, 155]
p02701
u325270534
2,000
1,048,576
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?
['a, lists = int(input()), list(map(str, input().split()))\nprint(len(list(set(lists))))', 'x, lists, d = eval(input()), list(map(str, input().split())), {}\nfor item in lists:\n if item in d:\n d[item] += 1\n else:\n d[item] = 1\nprint(len(d))', 'x, lists, d = eval(input()), list(map(str, input().split())), {}\nfor item in lists:\n if item in d:\n d[item] += 1\n else:\n d[item] = 1\nprint(len(d))', 'a, lists = int(input()), []\nfor x in range(a):\n lists.append(input())\nprint(len(list(set(lists))))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s077335446', 's332698619', 's668978712', 's447751632']
[9184.0, 9072.0, 9128.0, 35584.0]
[22.0, 22.0, 23.0, 274.0]
[85, 162, 162, 101]
p02701
u326552320
2,000
1,048,576
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?
['#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# FileName: \tC_fix\n# CreatedDate: 2020-06-27 13:14:18 +0900\n# LastModified: 2020-06-27 13:50:05 +0900\n#\n\n\ndef main():\n n, m = map(int, input().split())\n h = list(map(int, input().split()))\n ma = [0]*n\n for _ in range(m):\n a, b = map(int, input().split())\n ma[a-1] = max(ma[a-1], h[b-1])\n ma[b-1] = max(ma[b-1], h[a-1])\n# print(ma)\n cnt = 0\n for i in range(n):\n if ma[i] < h[i]:\n cnt += 1\n print(cnt)\n\n\n\n\nif __name__ == "__main__":\n main()\n', '#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# FileName: \tC_fix\n# CreatedDate: 2020-06-27 13:59:01 +0900\n# LastModified: 2020-06-27 14:04:38 +0900\n#\n\n\nimport os\nimport sys\n# import numpy as np\n\n\n\ndef main():\n n = int(input())\n s = []\n for i in range(n):\n s.append(input())\n s = list(set(s))\n print(len(s))\n \n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s320387562', 's131163214']
[9180.0, 35712.0]
[25.0, 271.0]
[558, 402]
p02701
u332622654
2,000
1,048,576
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?
['import sys\n\ndef main():\n\n\tN = int(input())\n\t\n\td = {}\n\tfor i in range(N):\n\t\tA = int(input())\n\t\td[A] = 0\n\tprint(len(d))\n\t\nif __name__ == "__main__":\n main()', 'import sys\n\ndef main():\n\n\tN = int(input())\n\t\n\td = {}\n\tfor i in range(N):\n\t\tA = input()\n\t\td[A] = 0\n\tprint(len(d))\n\t\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s103077109', 's074454599']
[9168.0, 35216.0]
[22.0, 264.0]
[157, 152]
p02701
u342563578
2,000
1,048,576
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?
['n,m,q = map(int,input().split())\na = [0 for i in range(q)]\nfor i in range(q):\n a[i] = list(map(int,input().split()))\nfor i in range(1,m+1):\n for j in range(i,m+1):\n for k in range(j,m+1):\n for s in range(k,m+1):\n for p in range(s,m+1):\n for l in range(p,m+1):\n for e in range(l,m+1):\n for u in range(e,m+1):\n for v in range(u,m+1):\n b = [1,f,c,k,s,p,l,e,u,v]\n nn = 0\n for h in range(q):\n if b[a[h][1]-1] - b[a[h][0]-1] == a[h][2]:\n nn += a[h][3]\n ans = max(ans,nn)\nprint(ans)', 'N = int(input())\nalist = a = [input() for i in range(N)]\nalist.sort()\np = 0\nfor i in range(N-1):\n if alist[i] != alist[i+1]:\n p = p +1\nprint(p+1)']
['Runtime Error', 'Accepted']
['s263131339', 's919066215']
[9196.0, 23816.0]
[22.0, 344.0]
[836, 155]
p02701
u345483150
2,000
1,048,576
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?
['n=int(input())\ns=input().split()\ns=list(set(s))\nprint(len(s))', 'n=int(input())\ns=[]\nfor i in range(n):\n s.append(input())\ns=list(set(s))\nprint(len(s))']
['Wrong Answer', 'Accepted']
['s744439494', 's695556199']
[9176.0, 35716.0]
[21.0, 281.0]
[61, 89]
p02701
u345612666
2,000
1,048,576
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?
['N=int(input())\nS=[input() for _ in range(N)]\nprint(len(S))', 'N=int(input())\nS=[input() for _ in range(N)]\nprint(len(S))', 'N=int(input())\nS=[input() for _ in range(N)]\nprint(len(set(S)))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s421740829', 's742814998', 's224424630']
[23204.0, 23220.0, 35544.0]
[224.0, 223.0, 251.0]
[58, 58, 63]
p02701
u345621867
2,000
1,048,576
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?
['N = int(input())\nS = {input().replace("\\n","")}\nprint(len(S))', 'N = int(input())\nSn = []\nfor i in range(N):\n s = input()\n Sn.append(s)\nprint(len(set(Sn)))\n\n']
['Wrong Answer', 'Accepted']
['s832198024', 's046851260']
[9140.0, 35704.0]
[22.0, 279.0]
[61, 98]
p02701
u366424761
2,000
1,048,576
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?
['N = int(input())\nbiki = {}\nfor i in range(N):\n S = input()\n biki.append(S)\nprint(len(biki))\n', 'N = int(input())\nbiki = []\nbise = {}\nfor i in range(N):\n S = input()\n biki.append(S)\nbise=set(biki)\nprint(len(bise))']
['Runtime Error', 'Accepted']
['s861068093', 's713128263']
[9100.0, 35568.0]
[27.0, 292.0]
[98, 122]
p02701
u370721525
2,000
1,048,576
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?
['N = int(input())\nS = [input() for i in range(N) if input() not in S]\n \nprint(len(S))\n', 'N = int(input())\nS = []\nfor i in range(N):\n S.append(input())\n\nprint(len(set(S)))']
['Runtime Error', 'Accepted']
['s727798085', 's105757124']
[9164.0, 35580.0]
[25.0, 265.0]
[86, 82]
p02701
u378153116
2,000
1,048,576
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?
['def gacha(sl):\n print(len(set(sl)))\n\nn = int(input())\nsl = []\nfor _ in range(n):\n sl.append(input())\nprint(sl)\n\ngacha(sl)', 'def gacha(sl):\n print(len(set(sl)))\n\nn = int(input())\nsl = []\nfor _ in range(n):\n sl.append(input())\n# print(sl)\n\ngacha(sl)']
['Wrong Answer', 'Accepted']
['s087468276', 's618208432']
[38220.0, 35644.0]
[290.0, 268.0]
[127, 129]
p02701
u379378343
2,000
1,048,576
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?
['n = int(input())\nset1 = set([])\nfor _ in range():\n s = input()\n set1.add(s)\n \nprint(len(set1))', 'n = int(input())\nset1 = set([])\nfor _ in range(n):\n s = input()\n set1.add(s)\n \nprint(len(set1))']
['Runtime Error', 'Accepted']
['s589233952', 's719134668']
[9164.0, 31236.0]
[23.0, 301.0]
[96, 97]
p02701
u384657160
2,000
1,048,576
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?
['def main(): \n import sys\n from collections import defaultdict\n dic = defaultdict(int)\n\n input = sys.stdin.readline \n\n s = str(input().rstrip())\n m = 0\n\n for i in range(1, len(s) + 1):\n m_1 = pow(10, i-1) % 2019\n m_add = (int(s[-i]) * m_1) % 2019\n m = (m_add + m) % 2019\n dic[m] += 1\n\n ans1 = 0\n\n for x in dic.values():\n if x > 1:\n ans1 += x * (x - 1) // 2\n ans2 = dic[0]\n\n print(ans1 + ans2)\n\nif __name__ == "__main__":\n main()', 'def main():\n import sys\n from collections import Counter\n\n input = sys.stdin.readline\n\n n = int(input())\n s = [str(input()) for i in range(n)]\n co = Counter(s)\n print(len(co))\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s515931692', 's242666188']
[9336.0, 38908.0]
[21.0, 102.0]
[574, 235]
p02701
u385825353
2,000
1,048,576
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?
['n = int(input())\nitems = set()\nfor _ range(n):\n s = input()\n items.add(s)\nprint(len(items))', 'n = int(input())\nitems = set()\nfor _ in range(n):\n s = input()\n items.add(s)\nprint(len(items))\n']
['Runtime Error', 'Accepted']
['s071269380', 's630220271']
[8956.0, 30924.0]
[21.0, 290.0]
[93, 97]
p02701
u389188163
2,000
1,048,576
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?
['N = int(input())\ncount = 0\nfor _ in range(N):\n s = input()\n if not s in lst:\n count += 1\nprint(count)', 'N = int(input())\nS = set()\ncount = 0\nfor _ in range(N):\n s = input()\n S.add(s)\nprint(len(S))']
['Runtime Error', 'Accepted']
['s261608606', 's727259757']
[9112.0, 30892.0]
[24.0, 291.0]
[114, 98]
p02701
u394244719
2,000
1,048,576
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?
['n = int(input())\ns = []\ns_append = s.append\nfor i in range(n):\n s_append(i)\n\nprint(len(set(s)))\n', 'n = int(input())\ns = []\ns_append = s.append\nfor i in range(n):\n s_append(input())\n\nprint(len(set(s)))\n']
['Wrong Answer', 'Accepted']
['s114640842', 's954023159']
[29364.0, 35700.0]
[53.0, 273.0]
[99, 105]
p02701
u398203017
2,000
1,048,576
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?
['N=int(input())\nSS=set()\nwhile N=0:\n S=input()\n SS.add(S)\n N=N-1', 'N=int(input())\nSS=set()\nwhile N=0:\n S=input()\n SS.add(S)\n N=N-1\nprint(len(SS))', 'N=int(input())\nSS=set()\nwhile N=0:\n S=input()\n SS.add(S)\n N=N-1\nprint(len(SS))', 'N=int(input())\nSS=set()\nwhile N!=0:\n S=input()\n SS.add(S)\n N=N-1\nprint(len(SS))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s532609808', 's553161849', 's879921642', 's909029799']
[8940.0, 8944.0, 9008.0, 31172.0]
[20.0, 20.0, 23.0, 316.0]
[66, 81, 81, 83]
p02701
u402342597
2,000
1,048,576
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?
['import collections\nnum = input()\na = [input() for i in range(num)]\nclist = collections.Counter(a)\nprint(len(clist))', 'import collections\nnum = int(input())\na = input().split()\nclist = collections.Counter(a)\nprint(len(clist))', 'import collections\na = input().strip().split()\nnumber = a.pop(0)\nclist = collections.Counter(a)\nprint(len(clist))', 'import collections\na = input().strip().split()\nnumber = a.pop(0)\nclist = collections.Counter(a)\nprint(len(clist))', 'import collections\nnum = int(input())\na = [input() for i in range(num)]\nclist = collections.Counter(a)\nprint(len(clist))']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s022732646', 's129761839', 's133682162', 's179637052', 's275342007']
[9412.0, 9464.0, 9408.0, 9368.0, 38776.0]
[25.0, 22.0, 25.0, 25.0, 273.0]
[115, 106, 113, 113, 120]
p02701
u404678206
2,000
1,048,576
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?
['n=int(input())\nset={}\nfor n in range(n):\n set.append(input())\nprint(len(set))', 'n=int(input())\nset_=set()\n#print(set_)\nfor n in range(n):\n set_.add(input())\n #print(set_)\nprint(len(set_))']
['Runtime Error', 'Accepted']
['s100154064', 's102893358']
[9172.0, 31316.0]
[22.0, 288.0]
[78, 109]
p02701
u406379114
2,000
1,048,576
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?
['def search(list, item):\n low = 0\n high = len(list) - 1\n while(low <= high):\n mid = (low + high) // 2\n guess = list[mid]\n if(guess == item):\n return mid\n if(guess > item):\n high = mid - 1\n else:\n low = mid + 1\n list.insert(low, item)\n print(list)\n return None\n\nn = int(input())\nitem = []\nfor i in range(n):\n s = input()\n search(item, s)\nprint(len(item))\n \n\n', 'n = int(input())\nitem = set()\nfor i in range(n):\n s = input()\n item.add(s)\nprint(len(item))\n \n\n']
['Runtime Error', 'Accepted']
['s369861498', 's846664543']
[138256.0, 31096.0]
[1241.0, 288.0]
[395, 98]
p02701
u408262366
2,000
1,048,576
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?
['import collections\n\nN = int(input())\n\nS_list = set(list(map(str,input().split())))\nprint(len(S_list))', 'N = int(input())\n\nS_list = []\nfor i in range(N):\n S_list.append(input())\nprint(len(set(S_list)))']
['Wrong Answer', 'Accepted']
['s492129542', 's908729983']
[9476.0, 35564.0]
[25.0, 265.0]
[101, 97]
p02701
u409371339
2,000
1,048,576
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?
['import random\n\nN = int(input())\ns = [input() for i in range(N)]\nmemo = []\n\nfor i in range(N):\n r = random.choice(s)\n if r not in memo: \n memo.append(r) \n\nprint(len(memo)) ', 'N = int(input())\ns = [input() for i in range(N)]\nmemo = []\n\nfor i in range(s):\n r = s.random.choice()\n if r not in memo: \n memo.append(r) \n\nprint(len(memo)) ', 'N = int(input())\ns = [input() for i in range(N)]\n\nprint(len(set(s))) ']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s518993701', 's861193029', 's053982995']
[23620.0, 23252.0, 35568.0]
[2206.0, 237.0, 252.0]
[193, 179, 72]
p02701
u413369061
2,000
1,048,576
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?
['n=int(input())\n\nmydic={"",0}\n\nfor i in range(n):\n a=input()\n mydic.update(a)\n\nprint(mydic)\nprint(len(mydic)-2)', 'n=int(input())\n\nli = []\n\nfor i in range(n):\n a=input()\n li.append((a,i))\n\ndi=dict(li)\n\n#print(di)\nprint(len(di))']
['Wrong Answer', 'Accepted']
['s736217700', 's095376345']
[9180.0, 57516.0]
[278.0, 320.0]
[116, 118]
p02701
u421693050
2,000
1,048,576
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?
["import sys, re\nimport math\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import accumulate, permutations, combinations, product\nfrom operator import itemgetter, mul\t# \nfrom copy import deepcopy\nfrom string import ascii_lowercase, ascii_uppercase, digits\nfrom bisect import bisect, bisect_left\nfrom fractions import gcd\t\nfrom heapq import heappush, heappop\n\ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef LIST(): return list(map(int, input().split()))\nsys.setrecursionlimit(10 ** 9)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\n# -*- coding: utf-8 -*-\nn = INT()\nlist = []\n\naddFlag = True\n\nfor x in range(n):\n text = input()\n addFlag = True\n for y in list:\n if text == y:\n addFlag = False\n break\n if addFlag:\n list.append(text)\n \nprint(len(list))", 'import sys\nimport collections\n\nn = int(sys.stdin.readline().strip())\ndata = []\n\nfor x in range(n):\n data.append(input())\n\nprint(len(collections.Counter(data)))']
['Time Limit Exceeded', 'Accepted']
['s243151601', 's030564605']
[11080.0, 38796.0]
[2206.0, 288.0]
[980, 162]
p02701
u425834921
2,000
1,048,576
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?
['n = int(input())\ns = [input() for i in range(n)]\n\nss = sorted(s)\ntest = ss[0]\ncount = 1\n\nfor i in range(n):\n if test != s[i]:\n test = s[i]\n count += 1\n \nprint(count)', 'n = int(input())\ns = [input() for i in range(n)]\n\nss = sorted(s)\ntest = ss[0]\ncount = 1\n\nfor i in range(n):\n if test != ss[i]:\n test = ss[i]\n count += 1\n \nprint(count)']
['Wrong Answer', 'Accepted']
['s945715475', 's623804136']
[25392.0, 25540.0]
[336.0, 353.0]
[175, 177]
p02701
u428199834
2,000
1,048,576
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?
['N=int(input())\nA=list(map(int,input().split()))\na=set(A)\nprint(len(a))', 'N=int(input())\nA=[]\nA.append(int(input()))\na=set(A)\nprint(len(a))', 'n=int(input())\ns=[]\nfor _ in range(n):\n s.append(input())\ns=set(s)\nprint(len(s))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s559742458', 's609645703', 's301392311']
[9148.0, 9088.0, 35492.0]
[24.0, 22.0, 291.0]
[70, 65, 81]
p02701
u429220960
2,000
1,048,576
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?
['N = int(input())\nl = []\nfor i in range(N):\n l.append(int(input()))\nprint(len(set(l)))\n', 'N = int(input())\nl = [input() for i in range(N)]\nprint(len(set(l)))\n']
['Runtime Error', 'Accepted']
['s744691348', 's399687395']
[9108.0, 35544.0]
[20.0, 257.0]
[89, 68]
p02701
u430336181
2,000
1,048,576
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?
['n=int(input())\ns=[input() for _ in range(n)]\n\nprint(len(type(s)))', 'from collections import Counter\nN = int(input())\nS = []\nwhile True:\n S.append(input())\n\nprint(len(Counter(S)))', 'N = int(input())\nS = []\nwhile True:\n S.append(input())\n\nprint(len(Counter(S)))', 'n=int(input())\ns={input() for _ in range(n)}\n\nprint(len(s))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s194534665', 's386175669', 's461717108', 's077275154']
[23408.0, 23752.0, 23296.0, 30996.0]
[230.0, 240.0, 238.0, 272.0]
[65, 113, 81, 59]
p02701
u432098488
2,000
1,048,576
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?
['N = int(input())\n\nans = {}\nfor i in range(N):\n ans.add(input())\n\nprint(len(ans))', 'N = int(input())\n\nans = set()\nfor i in range(N):\n ans.add(input())\n\nprint(len(ans))']
['Runtime Error', 'Accepted']
['s184742234', 's346531789']
[9160.0, 31116.0]
[20.0, 292.0]
[83, 86]
p02701
u434609232
2,000
1,048,576
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?
['N = int(input())\nga = []\nfor _ in range(N):\n ga.append(input())\nprint(len(ga))', 'N = int(input())\nga = []\nfor _ in range(N):\n ga.append(input())\nga = set(ga)\nprint(len(ga))']
['Wrong Answer', 'Accepted']
['s746220103', 's342078690']
[23076.0, 35520.0]
[251.0, 279.0]
[81, 94]
p02701
u436660228
2,000
1,048,576
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?
['N=int(input())\nlist=[]\nfor i in N:\n list.append(input())\n \nprint(len(list)) ', 'N=int(input())\nlist=[]\nfor i in range(N):\n list.append(input())\n \nprint(len(list)) ', 'N=int(input())\nglist=[]\nfor i in range(N):\n glist.append(input())\n\nprint(lens(glist)) \n \n ', 'n=int(input())\ns=[]\nfor i in range(N):\n s.append(input())\n \nprint(len(set(s))) ', 'N=int(input())\nglist=[]\nfor i in range(N):\n glist.append(input())\n \n \nprint(len(set(glist))) ']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s508411617', 's789298662', 's943679306', 's944018871', 's582040716']
[9180.0, 23408.0, 23196.0, 9172.0, 35720.0]
[23.0, 246.0, 247.0, 20.0, 275.0]
[79, 86, 94, 82, 97]
p02701
u440864397
2,000
1,048,576
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?
['\n\n\n\n#include <algorithm>\n\nusing namespace std;\n\n\nint main() {\n\t int a,b;\n\t cin>>a;\n\t std::unordered_set<string> s;\n\t \n\t while(a--){\n\t string str;\n\t cin>>str;\n\t string key=str;\n\t \tif (!(s.find(key) != s.end())){\n\t \t s.insert(str); \n\t \t}\n\t }\n\t cout<< s.size()<<endl;\n\treturn 0;\n}', '\n\n\n#include <algorithm>\n\nusing namespace std;\n\n\nint main() {\n\t int a,b;\n\t cin>>a;vector<string> colour;\n\t \n\t while(a--){\n\t string str;\n\t cin>>str;\n\t string key=str;\n\t \tif (!(std::find(colour.begin(), colour.end(), key) != colour.end())){\n\t \t colour.push_back(str); \n\t \t}\n\t }\n\t cout<< colour.size()<<endl;\n\treturn 0;\n}\n', '\n\n\n#include <algorithm>\n\nusing namespace std;\nint main() {\n\t int a;\n\t cin>>a;\n\t unordered_set<string> s;\n\t while(a--){\n\t string str;\n\t cin>>str;\n\t string key=str;\n\t \tif (!(s.find(key) != s.end())){\n\t \t s.insert(str); \n\t \t}\n\t }\n\t cout<< s.size()<<endl;\n\treturn 0;\n}', 'list1 =[]\nnumber = int(input())\nfor i in range(0,number): \n numbers = input()\n list1.append(numbers)\nsetOfMarks=set(list1)\nprint(len(setOfMarks))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s086328228', 's620984321', 's943034232', 's088997068']
[9008.0, 8940.0, 9008.0, 35640.0]
[19.0, 22.0, 22.0, 284.0]
[404, 417, 389, 154]
p02701
u445670279
2,000
1,048,576
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?
['n=iinput())\ns=list()\nfor i in range(n):\n s.append(input())\nprint(len(set(s)))', 'n=int(input())\ns=list()\nfor i in range(n):\n s.append(input())\nprint(len(set(s)))']
['Runtime Error', 'Accepted']
['s784586176', 's074712624']
[9012.0, 35712.0]
[19.0, 267.0]
[77, 80]
p02701
u449514925
2,000
1,048,576
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?
['# -*- coding: utf-8 -*-\n\nA, B, C, D = map(int, input().split())\n\n#s = input()\n#print(s[0:K-1]+s[K-1].lower()+s[K:N])\n\nwhile(1):\n C = C-B\n if C <= 0:\n print("Yes")\n break\n A = A-D\n if A <= 0:\n print("No")\n break\n', '# -*- coding: utf-8 -*-\n\n#N, K = map(int, input().split())\nN = int(input())\nlist = []\n\nfor i in range(N):\n s = input()\n list.append(s)\n #if not s in list:\n #list.append(s)\n\n#print(list)\nprint(len(set(list)))\n']
['Runtime Error', 'Accepted']
['s168394783', 's121276344']
[9180.0, 35476.0]
[23.0, 281.0]
[312, 285]
p02701
u451618391
2,000
1,048,576
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?
['n = int(input())\nlist = {}\nfor x in range(n):\n\titem = input()\n\tlist[item] = x\nprint(len(lest))', 'n = int(input())\nlist = {}\nfor x in range(n):\n\titem = input()\n\tlist[item] = x\nprint(len(list))\n']
['Runtime Error', 'Accepted']
['s481188179', 's590683732']
[41092.0, 41016.0]
[280.0, 276.0]
[94, 95]