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 | u455957070 | 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)\nans = len(set([input() for _ in range(n)]))\nprint(ans)', 'n = int(input())\ns = [input() for i in range(n-1)]\na = []\nindex = a.find(s[i])\nfor i in range(n-1):\n\tif index = -1:\n a.append(i)\nprint(len(s[i])\n', 'n = int(input())\nans = len(set([input() for _ in range(n)]))\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s078576929', 's182233592', 's574482016'] | [9068.0, 8964.0, 35716.0] | [23.0, 22.0, 249.0] | [69, 153, 71] |
p02701 | u457437854 | 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? | ['x = int(input())\ny = []\nresult = []\n\nfor i in range(x):\n y.append(input())\n\nfor i in range(x):\n result = y.index(y[i])\n \nprint(result + 1)', 'x = int(input())\ny = []\nresult = []\n\nfor i in range(x):\n y.append(input())\n\nfor i in range(x):\n result = y.index(y[i])+1\n \nprint(result)', 'x = int(input())\ny = []\nresult = []\n\nfor i in range(x):\n y.append(input())\n \nprint(len(set(y)))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s346401335', 's362048357', 's104064092'] | [23228.0, 23400.0, 35472.0] | [2206.0, 2206.0, 269.0] | [141, 139, 97] |
p02701 | u460229551 | 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 _ in range(n):\n s=input()\n if s in list:\n pass\n else:\n list.append(s)\nprint(str(len(s)))', 'n=int(input())\nset=set()\nfor _ in range(n):\n s=input()\n if s not in set:\n set.add(s)\nprint(str(len(set)))\n'] | ['Wrong Answer', 'Accepted'] | ['s589608571', 's682780108'] | [10212.0, 31172.0] | [2206.0, 297.0] | [138, 119] |
p02701 | u464912173 | 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=[input() for i in range(n)]\nprint(len(set(a))', 'n = int(input())\na=[input() for i in range(n)]\nprint(len(set(a)))'] | ['Runtime Error', 'Accepted'] | ['s108439731', 's369954744'] | [8916.0, 35500.0] | [22.0, 250.0] | [64, 65] |
p02701 | u467881696 | 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(s) \nprint(len(set(s)))', 'N = int(input()) \ns = [input() for i in range(N)] \nprint(len(set(s)))'] | ['Wrong Answer', 'Accepted'] | ['s754517847', 's395784792'] | [38064.0, 35640.0] | [271.0, 255.0] | [117, 69] |
p02701 | u470392120 | 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())\ns_list=list(input() for _ in range(n))\nc=collections.Ceounter(s_list)\nprint(len(c.keys()))', 'import collections \nn=int(input())\ns_list=list(input() for _ in range(n))\nc=collections.Counter(s_list)\nprint(len(c.keys()))'] | ['Runtime Error', 'Accepted'] | ['s298599082', 's514006859'] | [23596.0, 38784.0] | [233.0, 263.0] | [125, 124] |
p02701 | u470560351 | 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() for _ in range(N) ]\nprint(len(set(S)))', 'N = int(input())\nS = [ input() for _ in range(N) ]\nprint(len(set(S)))'] | ['Runtime Error', 'Accepted'] | ['s535020037', 's921752732'] | [9080.0, 35572.0] | [23.0, 264.0] | [52, 69] |
p02701 | u483884608 | 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())\ncount=0\na=[]\nwhile N>0:\n a.append(input())\n N=N-1\nc=collection.Counter(a)\nprint(len(c))', 'import collections\nN=int(input())\ncount=0\na=[]\nwhile N>0:\n a.append(input())\n N=N-1\nc=collections.Counter(a)\nprint(len(c))'] | ['Runtime Error', 'Accepted'] | ['s823588464', 's977890937'] | [23604.0, 38844.0] | [259.0, 294.0] | [123, 124] |
p02701 | u490127109 | 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=set(input().split())\nprint(len(A))\n ', 'N=int(input())\nA=map(chr,input().split())\nprint(len(set(A)))', 'N=int(input())\nA=set(map(str,input().split()))\nprint(len(A))', 'N=int(input())\nA=set(input().split())\nprint(A)\n\n', 'N=int(input())\nA=map(input().split())\nprint(len(set(A)))', 'N=int(input())\nA=set(input() for i in range(N))\nprint(len(A))'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s100194898', 's422163550', 's433610688', 's500188976', 's837649710', 's038571521'] | [9168.0, 9164.0, 9168.0, 9148.0, 9156.0, 31132.0] | [21.0, 23.0, 23.0, 21.0, 23.0, 265.0] | [53, 60, 60, 48, 56, 61] |
p02701 | u496009935 | 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(map(int,input().split()))\nprint(len(list(set(S))))\n', 'n=int(input())\nS=list(input().split())\nprint(len(list(set(S))))\n', 'n=int(input())\nS=[]\nfor i in range(n):\n S.append(input())\nprint(len(list(set(S))))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s500548606', 's845183110', 's997484067'] | [9080.0, 9164.0, 35652.0] | [26.0, 28.0, 278.0] | [73, 64, 86] |
p02701 | u502247093 | 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\nkaisuu = int(input())\ngetprizelist = {}\nfor i in range(kaisuu):\n keihin = input()\n if keihin not in getprizelist:\n getprizelist[i] = keihin\nprint(len(getprizelist))\n', '# coding: utf-8\nkaisuu = int(input())\ngetprizelist = {}\nfor i in range(kaisuu):\n keihin = input()\n if keihin not in getprizelist:\n getprizelist[keihin] = i\nprint(len(getprizelist))\n'] | ['Wrong Answer', 'Accepted'] | ['s124571109', 's549391424'] | [41088.0, 41084.0] | [297.0, 303.0] | [194, 194] |
p02701 | u511457539 | 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 i in range(N)]\n\nS = sorted(S)\ncount = 0\nfirst = 0\nremovecount = 0\n\nfor i in range(N):\n j = 0\n while first + count + 1 < len(S) :\n if S[first]==S[first+1+j]:\n S[first+1+j] = "nullsad"\n count+=1\n j += 1\n print(S)\n else:\n first += count + 1\n removecount += count\n count = 0\n print(S)\n break\n\nfor i in range(removecount + count):\n S.remove("nullsad")\n\nprint(len(S))\n', 'N = int(input())\nS = [str(input()) for i in range(N)]\n\nS = sorted(S)\ncount = 0\nfirst = 0\nremovecount = 0\n\nfor i in range(N):\n j = 0\n while first + count + 1 < len(S) :\n if S[first]==S[first+1+j]:\n S[first+1+j] = "null"\n count+=1\n j += 1\n else:\n first += count + 1\n removecount += count\n count = 0\n break\n\nprint(len(S)-S.count("null"))\n'] | ['Runtime Error', 'Accepted'] | ['s822240384', 's682029650'] | [154068.0, 25492.0] | [2454.0, 423.0] | [523, 432] |
p02701 | u513929200 | 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 = []\nwhile len(li) <N:\n li.append(input())\nprint(len(set(lottery))', 'N = int(input())\nli = []\nwhile len(li) <N:\n li.append(input())\nprint(len(set(lottery)))', 'N = int(input())\nli = []\nwhile len(li) <N:\n li.append(input())\nprint(len(set(li)))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s305328242', 's763564482', 's251243579'] | [8948.0, 23204.0, 35464.0] | [22.0, 261.0, 282.0] | [87, 88, 83] |
p02701 | u525882286 | 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.add(str(input()).lower())\nprint(len(x))\n\n', 'i = int(input())\nx = set()\nfor j in range(i):\n x.add(str(input().lower())\nprint(len(x))', 'n = int(input())\ns = set()\nfor i in range(n):\n s.add(str(input()).lower())\nprint(len(s))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s958467266', 's992566767', 's097419079'] | [31104.0, 8760.0, 31088.0] | [325.0, 23.0, 316.0] | [93, 90, 91] |
p02701 | u529633325 | 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()\nk=set()\nfor i in range(n):\n o=input()\n k.append(o))\nprint(len(k))', 'n=int(input())\nk=[]\nfor i in range(n):\n o=input()\n k.append(o)\nprint(len(set(k)))'] | ['Runtime Error', 'Accepted'] | ['s696149214', 's170023853'] | [9020.0, 35512.0] | [21.0, 278.0] | [77, 83] |
p02701 | u529737989 | 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\n# N = 5\n# S = ['aa', 'a', 'aa', 'aaaa', 'aa']\n\nC = dict([s,1] for s in S)\nL = len(C)", "N = int(input())\nS = [input() for i in range(N)]\n\n# N = 5\n# S = ['aa', 'a', 'aa', 'aaaa', 'aa']\n\nC = dict([s,1] for s in S)\nL = len(C)\nprint(L)"] | ['Wrong Answer', 'Accepted'] | ['s363805533', 's040384233'] | [38456.0, 38512.0] | [269.0, 274.0] | [134, 143] |
p02701 | u531219227 | 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\na_list = []\n\nfor i in range(N):\n a_list.append(list(input()))\n \na_num = len(set(a_list))\n\nprint(a_num)', 'N = int(input())\na_list=[]\nfor i in range(N):\n a_list.append(input())\n \nset(a_list)\n\na_num = len(a_list)\n\nprint(a_num)', 'N = int(input())\na_list\nfor i in range(N):\n a_list.append(input())\n \na_ = set(a_list)\n\na_num = len(a_)\n\nprint(a_num)', 'N = int(input())\na_list=[]\nfor i in range(N):\n a_list.append(input())\n \na_set = set(a_list)\n\na_num = len(a_set)\n\nprint(a_num)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s234852113', 's266396672', 's529337563', 's491688905'] | [39324.0, 35628.0, 9116.0, 35556.0] | [361.0, 271.0, 23.0, 277.0] | [122, 120, 118, 128] |
p02701 | u531374611 | 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=[0]*(N+2)\nc=0\nfor i in range (N):\n S=input()\n a[i]=S\nc=len(set(a))\nprint(c)\n', 'N=int(input())\na=[0]*(N)\nc=0\nfor i in range (N):\n S=input()\n a[i]=S\nc=len(set(a))\nprint(c)\n'] | ['Wrong Answer', 'Accepted'] | ['s422008776', 's014002541'] | [35480.0, 35408.0] | [278.0, 276.0] | [99, 97] |
p02701 | u531599639 | 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=list(input().split())\nlist.sort()\nn=0\ns=list[0]\nfor i in range(N):\n if list[i] != s:\n n+=1\n s=list[i]\nprint(n)', 'N=int(input())\nlist=[input() for i in range(N)]\nlist.sort()\nn=1\ns=list[0]\nfor i in range(N):\n if list[i] != s:\n n+=1\n s=list[i]\nprint(n)'] | ['Runtime Error', 'Accepted'] | ['s807303259', 's091131956'] | [9172.0, 23888.0] | [24.0, 355.0] | [137, 143] |
p02701 | u534527715 | 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 -*-\nfrom collections import Counter\na = int(input())\n\nlist = [input() for i in range(a)]\n\nprint(list)\nprint(len(Counter(list)))', '# -*- coding: utf-8 -*-\nfrom collections import Counter\na = int(input())\n\nlist = [input() for i in range(a)]\n\nprint(len(Counter(list)))'] | ['Wrong Answer', 'Accepted'] | ['s698080898', 's563204876'] | [43752.0, 38772.0] | [295.0, 280.0] | [147, 135] |
p02701 | u536034761 | 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(count(set(S)))', 'N = int(input())\nS = [input() for i in range(N)]\nprint(len(set(S)))'] | ['Runtime Error', 'Accepted'] | ['s888098521', 's544997965'] | [23412.0, 35532.0] | [230.0, 255.0] | [69, 67] |
p02701 | u542605091 | 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 pandas as pd\ndata = input().split()\ndf = pd.DataFrame(data)\nprint(len(pd.unique(df[0])))', 'import collections\nn = int(input())\nS = []\nfor _ in range(n):\n S.append(input()) \nprint(len(collections.Counter(S)))'] | ['Runtime Error', 'Accepted'] | ['s647719371', 's228361254'] | [8856.0, 38756.0] | [23.0, 292.0] | [95, 119] |
p02701 | u542774596 | 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 =[input() for _ in range(n)]: \nprint(len(set(list)))', 'n = int(input())\nlist =[input() for _ in range(n)]\nprint(len(set(list)))'] | ['Runtime Error', 'Accepted'] | ['s813333209', 's751524301'] | [8880.0, 35560.0] | [23.0, 251.0] | [74, 72] |
p02701 | u543019323 | 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())\nstring_list=[input() for i in range(n)]\n\nprint(len(string_list))', 'n=int(input())\nstring_list=[input() for i in range(n)]\n\nprint(len(set(string_list)))'] | ['Wrong Answer', 'Accepted'] | ['s692136570', 's287890182'] | [23240.0, 35636.0] | [228.0, 253.0] | [79, 84] |
p02701 | u546501940 | 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())\nilist=[str(input()) for i in range(n)]\n\n\ndic={}\nfor i in ilist:\n dic[i]=1\n\nprint (len(dic))\n~', 'n=int(input())\nilist=[str(input()) for i in range(n)]\n\n\ndic={}\nfor i in ilist:\n dic[i]=1\n\nprint (len(dic))\n'] | ['Runtime Error', 'Accepted'] | ['s485019128', 's006592109'] | [9016.0, 38576.0] | [20.0, 285.0] | [122, 121] |
p02701 | u547375079 | 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 i in range(0, N):\n items.add(input())\nreturn len(items)', 'N = int(input())\nitems = set()\nfor n in range(0, N):\n items.add(input())\nprint(len(items))'] | ['Runtime Error', 'Accepted'] | ['s475735930', 's753705050'] | [9036.0, 31276.0] | [21.0, 295.0] | [91, 91] |
p02701 | u548976218 | 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(n):\n s.append(int(input))\n\nprint(len(set(s)))', 'n = int(input())\ns = []\nfor _ in range(n):\n s.append(input())\n\nprint(len(set(s)))'] | ['Runtime Error', 'Accepted'] | ['s985294256', 's303237542'] | [9164.0, 35512.0] | [21.0, 267.0] | [87, 84] |
p02701 | u549494450 | 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 = int(input())\nb = []\nfor i in range(a):\n c = input()\n if c not in b == True:\n b.append(c)\nprint(ren(b))', 'a = int(input())\nb = []\nfor i in range(a):\n c = input()\n if c not in b == True:\n b.append(c)\nprint(len(b))\n', 'a = int(input())\nb = []\nfor i in range(a):\n c = input()\n if c not in b == "True":\n b.append(c)\nprint(len(b))', 'a = int(input())\nb = []\nfor i in range(a):\n b.append(input())\nprint(len(set(b)))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s011979789', 's082895994', 's204780815', 's185644922'] | [9180.0, 9176.0, 9208.0, 35584.0] | [239.0, 244.0, 242.0, 267.0] | [119, 120, 121, 83] |
p02701 | u550528193 | 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=input().split()\ns=set(a[1:])\nprint(len(s))', 'a=list(input().split())\ns=set(a[1:])\nprint(len(s))', 'a=int(input())\nb=[]\nfor i in range(a):\n b+=input().split()\nprint(len(set(b)))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s843881232', 's971012188', 's947538484'] | [9108.0, 9108.0, 35576.0] | [21.0, 22.0, 298.0] | [44, 50, 78] |
p02701 | u551415200 | 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? | ['I = input("")\ni = I.split("\\n")\n\nN = int(i[0])\nl = []\nt = 0\n\nfor k in range(N):\n if i[k+1] not in l:\n l.append(i[k+1])\n t = t+1\nprint(len(l))\n', 'I = input("")\ni = I.split(" ")\nprint(i)\n\nN = int(i[0])\nl = []\nt = 0\n\nfor k in range(N):\n if i[k+1] not in l:\n l.append(i[k+1])\n t = t+1\nprint(len(l))\n', 'N = int(input(""))\nM = []\nn = 0\n\nfor i in range(N):\n p = input("")\n M.append(p)\n\nMm = list(set(M))\n\nprint(len(Mm))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s877064801', 's986192069', 's626627255'] | [9116.0, 9160.0, 35572.0] | [23.0, 20.0, 326.0] | [159, 167, 121] |
p02701 | u554129261 | 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, W = map(int, input().split())\nif S <= W:\n print("unsafe")\nelse:\n print("safe")', 'N = int(input())\n\nitems = set()\nfor i in range(N):\n item = input()\n items.add(item)\nprint(len(items))'] | ['Runtime Error', 'Accepted'] | ['s927536535', 's000024912'] | [9168.0, 31176.0] | [24.0, 298.0] | [87, 107] |
p02701 | u554850896 | 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 x = input()\n l.append(x)\ns = len(list(set(l))\nprint(s)\n', 'N = int(input())\nl = []\nfor i in range(N):\n x = input()\n l.append(x)\ns = set(l)\nt = list(s)\nprint(len(t))'] | ['Runtime Error', 'Accepted'] | ['s020574612', 's569126616'] | [9008.0, 35672.0] | [23.0, 317.0] | [101, 111] |
p02701 | u554926677 | 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()\ns = [input() for i in range(n)]\n\nlist(set(s))\n', 'n = input()\ns = [input() for i in range(n)]\n \nprint(len(list(set(s))))', 'n = int(input())\ns = [input() for _ in range(n)]\n \nprint(len(list(set(s))))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s398543049', 's541345854', 's037982497'] | [9056.0, 8988.0, 35640.0] | [20.0, 21.0, 259.0] | [58, 70, 75] |
p02701 | u556587877 | 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? | ['placeHolder = ""\nuWords = 0\nthings = int(input())\n\nfor i in range(things):\n word = input()\n if word != placeHolder:\n uWords += 1\n placeHolder = word\n\nprint(uWords)', 's = set([])\nthings = int(input())\n\nfor i in range(things):\n p = input()\n s.add(p)\n\nprint(len(s))'] | ['Wrong Answer', 'Accepted'] | ['s200559545', 's163245895'] | [9156.0, 31104.0] | [249.0, 292.0] | [183, 102] |
p02701 | u556594202 | 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 = set()\nfor _ in range(n):\n a.append(input())\nprint(len(a))\n', 'N = int(input())\nprint(len(set([input() for _ in range(N)])))'] | ['Runtime Error', 'Accepted'] | ['s065788578', 's668059713'] | [9060.0, 35644.0] | [24.0, 267.0] | [82, 61] |
p02701 | u557494880 | 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 = input()\n if s in S:\n S.append(s)\nprint(len(S))\n', 'N = int(input())\nS = []\nfor i in range(N):\n s = int()\n if s in S:\n S.append(s)\nprint(len(S))', 'N = int(input())\nS = []\nfor i in range(N):\n s = int()\n if s not in S:\n S.append(s)\nprint(len(S))\n', 'N = int(input())\nS = []\nfor i in range(N):\n s = input()\n S.append(s)\nans = len(S)\nS.sort()\nfor i in range(1,N):\n if S[i] == S[i-1]:\n ans -= 1\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s219248007', 's407894424', 's938342310', 's683292263'] | [9184.0, 9192.0, 9164.0, 23808.0] | [234.0, 46.0, 50.0, 371.0] | [108, 105, 110, 168] |
p02701 | u558717347 | 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 = {}\ncnt =0\nfor i in range(n):\n get = input()\n\n if get not in dic:\n dic[get] = 1\n\nprint(len(dic))\nprint(dic)', 'n = int(input())\ndic = {}\ncnt =0\nfor i in range(n):\n get = input()\n\n if get not in dic:\n dic[get] = 1\n\nprint(len(dic))'] | ['Wrong Answer', 'Accepted'] | ['s474987931', 's769727492'] | [38428.0, 35088.0] | [320.0, 284.0] | [143, 132] |
p02701 | u558782626 | 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? | ['group = {}\nfor _ in range(int(input())):\n group.add(input())\nprint(len(group))', 'group = set()\nfor _ in range(int(input())):\n group.add(input())\nprint(len(group))'] | ['Runtime Error', 'Accepted'] | ['s207407705', 's418589105'] | [9164.0, 31280.0] | [21.0, 295.0] | [79, 82] |
p02701 | u563711100 | 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 = [input() for i in range(n)]\n\nl = set(l)\nl = list(l)\nprint(sum(l))', 'n = int(input())\nl = [input() for i in range(n)]\n \nl = set(l)\nl = list(l)\nprint(len(l))'] | ['Runtime Error', 'Accepted'] | ['s669499232', 's131655163'] | [35644.0, 35620.0] | [264.0, 261.0] | [86, 87] |
p02701 | u566237370 | 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? | ['lotteries = []\nnum_of_lot = 0\nnum = int(input())\n\nfor i in range(num):\n lotteries.append(input())\n\nnum_of_lot = len(set(lotteries))', 'lotteries = []\nnum_of_lot = 0\nnum = int(input())\n\nfor i in range(num):\n lotteries.append(input())\n\nnum_of_lot = len(set(lotteries))\nprint(num_of_lot)'] | ['Wrong Answer', 'Accepted'] | ['s241207432', 's165999373'] | [35584.0, 35552.0] | [267.0, 269.0] | [134, 152] |
p02701 | u571647099 | 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 = [input() for i in range(n)]\nprint(len(A) - len(set(A)) + n)', 'n = int(input())\nA = []\ncnt = 0\nfor i in xrange(n):\n m = input()\n if m not in A:\n A.append(m)\n cnt += 1\nprint(cnt)', 'n = int(input())\nA = [input() for i in range(n)]\nprint(-len(A) + len(set(A)) + n)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s569224270', 's911002260', 's439145670'] | [35536.0, 9188.0, 35504.0] | [258.0, 20.0, 253.0] | [80, 134, 82] |
p02701 | u574565611 | 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 = list(map(str, input().split()))\n\nfor i in range(N):\n S_list.remove(S_list[i])\n N -= (N-len(S_list)-1)\n \nprint(N) ', 'N = int(input())\nS = [int(input()) for _ in N]\nprint(len(set(s)))', 'N = int(input())\nS = [input() for _ in range(N)]\nprint(len(set(s)))', 'N = int(input())\nS = [input() for _ in range(N)]\nprint(len(set(S)))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s151859720', 's501711155', 's617262923', 's295137059'] | [9168.0, 9188.0, 23240.0, 35644.0] | [22.0, 25.0, 229.0, 255.0] | [143, 65, 67, 67] |
p02701 | u578441226 | 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().split())\nmylist = list(range(0))\ninp = ''\nfor i in range(n):\n inp = input()\n if (inp not in mylist):\n mylist.append(inp)\nprint(len(mylist))", 'n = int(input())\nprint(len(set([input() for i in range(n)])))'] | ['Runtime Error', 'Accepted'] | ['s014354863', 's836675380'] | [9056.0, 35572.0] | [20.0, 257.0] | [168, 61] |
p02701 | u582396808 | 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#include <set>\n#include <string>\nusing namespace std;\nint main(void){\n int N;\n cin >> N;\n std::set<std::string> s;\n \n for(int i=0; i < N; i++){\n std::string a;\n cin >> a;\n s.insert(a);\n }\n \n cout << s.size() << endl;\n}\n', 'N = int(input())\ns = set()\n\nfor i in range(N):\n s.add(input())\n \nprint (len(s))'] | ['Runtime Error', 'Accepted'] | ['s728386718', 's831684295'] | [8980.0, 31116.0] | [23.0, 299.0] | [284, 85] |
p02701 | u582803594 | 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())\nb=0\n\nfor i in range(0,N):\n S[i]=input()\n\nb=collections.Counter(S)\nprint(len(S))', 'from collections import Counter\nN=int(input())\nb=0\nS=[]\n\nfor i in range(0,N):\n S.append(input())\nb=Counter(S)\nprint(len(b))\n'] | ['Runtime Error', 'Accepted'] | ['s531988138', 's833716601'] | [9152.0, 38876.0] | [24.0, 284.0] | [97, 127] |
p02701 | u590926526 | 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())\ncount=0\ntemp=""\nwhile(num):\n something = input()\n if(temp!=something):\n count+=1\n temp=something\n num-=1\nprint(count)', 'num=int(input())\nsomething=[]\nwhile(num):\n temp=input()\n something.append(temp)\n num-=1\nsomething_set=set(something)\nprint(len(something_set))'] | ['Wrong Answer', 'Accepted'] | ['s528049823', 's042139256'] | [9156.0, 35580.0] | [257.0, 295.0] | [157, 151] |
p02701 | u594862874 | 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 _ in range(N):\n l.append(input())\n\nprint(len(l))', 'N = int(input())\nl = []\nfor _ in range(N):\n l.append(input())\n\nprint(len(set(l)))'] | ['Wrong Answer', 'Accepted'] | ['s021646396', 's493016598'] | [23204.0, 35588.0] | [248.0, 263.0] | [79, 84] |
p02701 | u600261652 | 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()\nlist = [input() for i in range(N)]\nprint(len(set(list)))', 'N = input()\nlist = [input() for i in range(N)]\nprint(len(set(list)))', 'N = input()\nfor i in range(N):\n i = input()\nprint(len(set(i)))', 'N = input()\nfor i in range(N):\n a = input()\nprint(len(set(i)))', 'N = input()\nlist = list(input() for i in range(N))\nprint(len(set(list)))', 'N = input()\nlist = list(input())\nprint(len(set(list)))', 'N = int(input())\nlist = [input() for i in range(N)]\nprint(len(set(list)))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s063361777', 's512250279', 's593977305', 's636299838', 's726192611', 's754230240', 's666381709'] | [9108.0, 9036.0, 9100.0, 8988.0, 9092.0, 9068.0, 35480.0] | [22.0, 23.0, 23.0, 24.0, 21.0, 24.0, 256.0] | [68, 68, 63, 63, 72, 54, 73] |
p02701 | u604269317 | 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\nset_ = []\nfor i in range(num):\n a = int(input())\n set.append(a)\n \nprint(len(set(set_)))\n ', 'num = int(input())\n\nset_ = []\nfor i in range(num):\n a = input()\n set_.append(a)\n \nprint(len(set(set_)))\n '] | ['Runtime Error', 'Accepted'] | ['s592167436', 's639250806'] | [9016.0, 35516.0] | [23.0, 279.0] | [113, 109] |
p02701 | u612223903 | 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(set([int(input()) for _ in range(n)]))\nprint(len(s) )', 'n = int(input())\ns = list(set([input() for _ in range(n)]))\nprint(len(s) )'] | ['Runtime Error', 'Accepted'] | ['s938066271', 's920514254'] | [9080.0, 35640.0] | [20.0, 261.0] | [79, 74] |
p02701 | u616117610 | 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 i in range(n):\n a.apped(str(input()))\nprint(len(set(a)))', 'n = int(input())\na = []\nfor i in range(n):\n a.append(str(input()))\nprint(len(set(a)))\n'] | ['Runtime Error', 'Accepted'] | ['s182368623', 's379792128'] | [9100.0, 35656.0] | [22.0, 302.0] | [85, 87] |
p02701 | u621509924 | 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\ndef histogram_sorted(data):\n table = []\n prev = data[0] \n c = 1\n for i in range(1,len(data)):\n if prev == data[i]:\n c=c+1\n else:\n table.append([prev,c])\n prev = data[i]\n c = 1\n table.append([prev,c])\n return table\n\nT = []\nfor i in range(N):\n T.append(S[i])\n \nprint(len(histogram_sorted(T)))', 'N = int(input())\nS = [input() for i in range(N)]\n\ndef histogram_sorted(data):\n table = []\n prev = data[0]\n c = 1 \n for i in range(1,len(data)):\n if prev == data[i]:\n c=c+1\n else:\n table.append([prev,c])\n prev = data[i]\n c = 1\n table.append([prev,c]) \n return table\n\nT = []\nfor i in range(N):\n T.append(S[i])\n \n \nprint(len(histogram_sorted(sorted(T))))'] | ['Wrong Answer', 'Accepted'] | ['s505267120', 's886886963'] | [42228.0, 44172.0] | [339.0, 446.0] | [422, 436] |
p02701 | u629350026 | 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[i]=str(input())\ns=list(set(s))\nprint(len(s))', 'n=int(input())\ns=[0]*n\nfor i in range(n):\n s[i]=str(input())\ns=list(set(s))\nprint(len(s))'] | ['Runtime Error', 'Accepted'] | ['s505161595', 's989629998'] | [9064.0, 35564.0] | [25.0, 313.0] | [87, 90] |
p02701 | u634046173 | 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 i in range(N):\n a += input()\nprint(len(a))', 'N = int(input())\na= set()\nfor i in range(N):\n a.add(input())\nprint(len(a))'] | ['Runtime Error', 'Accepted'] | ['s970606232', 's897247276'] | [9148.0, 31024.0] | [25.0, 292.0] | [69, 75] |
p02701 | u635621124 | 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 j in range(N):\n S[j]= input()\nprint(len(set(S)))', 'N = int(input())\nS = []\nfor j in range(N):\n S.append(input())\nprint(len(set(S)))'] | ['Runtime Error', 'Accepted'] | ['s898958841', 's317313653'] | [9172.0, 35576.0] | [27.0, 279.0] | [79, 83] |
p02701 | u636481117 | 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\ncount = int(sys.stdin.readline())\nzenbu = []\n\nfor x in range(count):\n keihin = sys.stdin.readline()\n\n if not keihin in zenbu:\n zenbu[len(zenbu)] = keihin\nprint(len(zenbu))', 'count = int(input())\nzenbu = set()\n \nfor x in range(count):\n keihin = input()\n zenbu.add(keihin)\nprint(len(zenbu))'] | ['Runtime Error', 'Accepted'] | ['s061259249', 's887558852'] | [9156.0, 31140.0] | [25.0, 305.0] | [195, 120] |
p02701 | u643679148 | 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)]\nans = set()\n\nfor i in s:\n ans.add(i)\n\nprint(len(ans))\n', 'n = int(input())\ns = [input() for _ in range(n)]\nans = set()\n\nfor i in s:\n ans.add(i)\n\nprint(len(ans))\n'] | ['Runtime Error', 'Accepted'] | ['s962277082', 's056571377'] | [9144.0, 35640.0] | [29.0, 276.0] | [111, 106] |
p02701 | u646203242 | 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=[input() for i in range(N)]\nprint(len(collections.Counter(a)))', 'N=int(input())\na=[]\nfor i in N:\n a.append(input())\nprint(len(collections.Counter(a)))', 'N=int(input())\na=[]\nfor i in N:\n a.append=input()\nprint(len(collections.Counter(a)))', 'import collections\nN=int(input())\na=[input() for i in range(N)]\nprint(collections.Counter(a))', 'N=int(input())\na=[input() for i in range(N)]\nprint(collections.Counter(a))', 'N=int(input())\na=[]\nfor i in range(N):\n a.append(input())\nprint(len(collections.Counter(a)))', 'import collections\nN=int(input())\na=[input() for i in range(N)]\nprint(len(collections.Counter(a)))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s096729858', 's175962437', 's468264812', 's622502823', 's624198222', 's706339369', 's375818686'] | [23252.0, 9040.0, 9068.0, 63160.0, 23200.0, 23256.0, 38700.0] | [231.0, 23.0, 22.0, 358.0, 229.0, 242.0, 268.0] | [79, 86, 85, 93, 74, 93, 98] |
p02701 | u656341025 | 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? | ['count = int(input())\n\nstrlist = []\nfor i in range(count):\n strlist.append(input())\n\nfor i in range(count - 1):\n for j in range(i + 1, count):\n if strlist[i] > strlist[j]:\n tmp = strlist[i]\n strlist[i] = strlist[j]\n strlist[j] = tmp\n\nduplication = 0\nfor i in range(count - 1):\n if strlist[i] == strlist[i + 1]:\n duplication += 1\n \nprint(strlist)\nprint(count - duplication)\n', 'count = int(input())\n\nstrlist = set()\nfor i in range(count):\n strlist.add(input())\n\nprint(len(strlist))'] | ['Wrong Answer', 'Accepted'] | ['s916305667', 's843369446'] | [23360.0, 31140.0] | [2206.0, 290.0] | [399, 104] |
p02701 | u663089555 | 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 0 in range(n)}\nans = len(S)\nprint(ans)\n', 'N=int(input())\nS=[]\nfor i in range(N):\n S.append(input())\nprint(set(S))', 'N=int(input())\nS=[]\nfor i in range(N):\n S.append(input())\nprint(len(set(S)))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s764725874', 's959755116', 's424183577'] | [8984.0, 38252.0, 35560.0] | [20.0, 310.0, 274.0] | [73, 74, 79] |
p02701 | u663710122 | 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? | ['print(len(set([input() for _ in range(int(input()))]))', 'print(len(set([input() for _ in range(int(input()))])))'] | ['Runtime Error', 'Accepted'] | ['s137289581', 's592220491'] | [8964.0, 35548.0] | [21.0, 258.0] | [54, 55] |
p02701 | u664373116 | 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#n,k=list(map(int,input().split()))\nans=defaultdict(int)\nfor i in range(n):\n s=input()\n ans[s]+=1\n\nprint(len(ans.keys()))', 'from collections import defaultdict\nn=int(input())\n#n,k=list(map(int,input().split()))\nans=defaultdict(int)\nfor i in range(n):\n s=input()\n ans[s]+=1\n\nprint(len(ans.keys()))\n'] | ['Runtime Error', 'Accepted'] | ['s384117566', 's910021994'] | [9180.0, 35600.0] | [26.0, 310.0] | [142, 179] |
p02701 | u665852386 | 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()\nc = 0\n\nfor j in range(len(s)-1):\n for i in range(j+3, len(s)):\n if int(s[j:i+1]) % 2019 == 0:\n c = c + 1\n\nprint(c)', 'n = int(input())\nli = [input() for i in range(n)]\nl = list(set(li))\n\nprint(len(l))'] | ['Wrong Answer', 'Accepted'] | ['s230840467', 's772692032'] | [9136.0, 35580.0] | [23.0, 273.0] | [147, 82] |
p02701 | u667084803 | 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(len(S))', 'N = int(input())\nS = set([input() for i in range(N)])\nprint(len(S))'] | ['Wrong Answer', 'Accepted'] | ['s631521541', 's428757881'] | [23216.0, 35552.0] | [229.0, 263.0] | [62, 67] |
p02701 | u669335047 | 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 = map(int, input().split())\ns = list(map(int, input().split()))\n\nprint(len(set(s)))\n', 'a = int(input())\ns=[input() for i in range(a)]\n\nprint(len(set(s)))'] | ['Runtime Error', 'Accepted'] | ['s227226698', 's008116740'] | [9088.0, 35456.0] | [24.0, 255.0] | [86, 66] |
p02701 | u670597938 | 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? | ['numOfStr= int(input())\nstrlist = []\ntotal = 0\nfor i in range(0,numOfStr):\n strlist.append(input())\nstrlist.sort()\nfor i in range(1,numOfStr):\n if strlist[i] != strlist[i-1]:\n total += 1\nprint(total)', 'numOfStr= int(input())\nstrlist = []\ntotal = 1\nfor i in range(0,numOfStr):\n strlist.append(input())\nstrlist.sort()\nfor i in range(1,numOfStr):\n if strlist[i] != strlist[i-1]:\n total += 1\nprint(total)'] | ['Wrong Answer', 'Accepted'] | ['s598438696', 's759804636'] | [24028.0, 23880.0] | [351.0, 379.0] | [211, 211] |
p02701 | u673338219 | 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\ninput = sys.stdin.readline\nn = int(input())\nd = []\nda = d.append\nfor _ in range(n-1):\n di = str(input())\n da(di)\ndi = str(input())+"\\n"\nda(di)\nprint(len(list(set(d))))', 'n = int(input())\ns = [""]*n\nfor i in range(n):\n si = str(input())\n s[i] = si\ns.sort()\nc = 0\ns.append("A")\nfor i in range(n):\n if s[i] != s[i+1]:\n c += 1\nprint(c)'] | ['Wrong Answer', 'Accepted'] | ['s463365210', 's887178748'] | [35716.0, 23884.0] | [116.0, 386.0] | [180, 167] |
p02701 | u674588203 | 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 _=input()\n S.append(i)\nSet=set(S)\nprint(len(Set))', 'N=int(input())\nS=[]\nfor i in range(N):\n S.append(i)\nSet=set(S)\nprint(len(Set))', 'N=int(input())\nS={}\nfor i in range(N):\n S.add(i)\nprint(len(S))', 'N=int(input())\nS=[]\nfor i in range(N):\n _=input()\n S.append(_)\nSet=set(S)\nprint(len(Set))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s257153988', 's629074680', 's940685996', 's497205791'] | [29304.0, 29260.0, 9068.0, 35588.0] | [259.0, 57.0, 23.0, 295.0] | [95, 81, 65, 95] |
p02701 | u677253688 | 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 s:\n s.add(input())\nprint(len(s))', 'n = int(input())\ns = set()\nfor i in range(n):\n s.add(input())\nprint(len(s))'] | ['Wrong Answer', 'Accepted'] | ['s897696556', 's164859410'] | [9168.0, 31016.0] | [23.0, 288.0] | [69, 78] |
p02701 | u681390786 | 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=map(int,input().split())\nb=list(map(lambda n: str(n),input().split()))\ndef func(a,b):\n ab=set(b)\n return len(ab)\nprint(func(a,b))', 'a=map(int,input().split())\nb=input().split()\ndef func(a,b):\n ab=set(b)\n return len(ab)\nprint(func(a,b))', 'a=map(int,input().split())\nb=input().split()\ndef func(a,b):\n ab=set(b)\n return len(ab)\nprint(func(a,b))', 'a=int(input())\nb=list(map(str,a.split()))\ndef func(b):\n return len(set(b))\nprint(func(b))', 'a=map(int,input().split())\nb=list(map(int,input().split()))\ndef func(a,b):\n ab=set(b)\n return len(ab)\n', 'a=int(input())\nb=[input() for i in range(a)]\ndef func(b):\n return len(set(b))\nprint(func(b))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s149161226', 's524333102', 's790222186', 's880951216', 's901869792', 's356895056'] | [9060.0, 9116.0, 8980.0, 9168.0, 9168.0, 35512.0] | [21.0, 20.0, 22.0, 24.0, 21.0, 265.0] | [137, 109, 109, 92, 108, 95] |
p02701 | u690419532 | 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? | ["f = open('C/C.txt','r')\nsys.stdin = f\n\nN = int(input())\nl = []\nfor i in range(N):\n l.append(input())\n\nc = collections.Counter(l)\nprint(len(c))", 'import collections\nN = int(input())\nl = []\nfor i in range(N):\n l.append(input())\n\nc = collections.Counter(l)\nprint(len(c))\n'] | ['Runtime Error', 'Accepted'] | ['s486478884', 's097839489'] | [8960.0, 38836.0] | [26.0, 290.0] | [145, 126] |
p02701 | u695199406 | 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 = []\nk = 0\nfor i in range(N):\n S = input()\n l.append(S)\nfor i in range(N):\n while True:\n try:\n a = l.index(l[i])\n except ValueError:\n k += 1\n break\nprint(k) ', 'N = int(input())\nl = []\nk = 1\nfor i in range(N):\n S = input()\n l.append(S)\nl.sort()\nfor i in range(N-1):\n if l[i] != l[i+1]:\n k += 1\n else:\n pass\nprint(k) '] | ['Time Limit Exceeded', 'Accepted'] | ['s107425286', 's677121116'] | [23280.0, 23740.0] | [2206.0, 365.0] | [232, 181] |
p02701 | u696231671 | 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())\nprint(set(S))', 'N = int(input())\nS = []\nfor i in range(N):\n S.append(input())\nprint(len(set(S)))'] | ['Wrong Answer', 'Accepted'] | ['s575343977', 's342487572'] | [38352.0, 35488.0] | [330.0, 277.0] | [78, 83] |
p02701 | u697559326 | 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())\nS = []\n\nfor i in range(N):\n S.append(input())\n\nc = collections.counter(S)\n\nprint(len(c))\n', 'import collections\n\nN = int(input())\nS = []\n\nfor i in range(N):\n S.append(input())\n\nc = collections.Counter(S)\n\nprint(len(c))\n'] | ['Runtime Error', 'Accepted'] | ['s677938637', 's164064960'] | [23608.0, 38924.0] | [247.0, 276.0] | [129, 129] |
p02701 | u697634943 | 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\n\nclass Main:\n s = set([i.sprit() for i in sys.stdin.readlines()]);\n\n print(len(s));', 'import sys;\n\n\nclass Main:\n s = set([i for i in sys.stdin.readlines()]);\n\n print(len(s));\n\n', 'import sys;\n\n\nclass Main:\n s = set([i.strip() for i in sys.stdin.readlines()]);\n\n print(len(s));\n\n', 'import sys;\nclass Main:\n \n s = set([i.strip() for i in sys.stdin.readlines()]);\n \n print(len(s));\n \n', '\n\n\nclass Main:\n N = int(input());\n s = set([input() for i in range(N)]);\n print(len(s))\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s638184551', 's648504895', 's757316755', 's907959469', 's073110124'] | [23080.0, 35924.0, 37272.0, 37276.0, 35544.0] | [40.0, 95.0, 115.0, 107.0, 275.0] | [102, 96, 104, 115, 97] |
p02701 | u700929101 | 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())\nslist = []\nfor i in range(n):\n news = str(input())\n slist.append(news)\n# print(slist)\nslist_u = list(set(slist))\nprint(slist_u)\nslist_u_len = len(slist_u)\nprint(slist_u_len)', 'n = int(input())\nslist = []\nfor i in range(n):\n news = str(input())\n slist.append(news)\n# print(slist)\nslist_u = list(set(slist))\n# print(slist_u)\nslist_u_len = len(slist_u)\nprint(slist_u_len)'] | ['Wrong Answer', 'Accepted'] | ['s964556445', 's777552706'] | [35656.0, 35440.0] | [337.0, 318.0] | [196, 198] |
p02701 | u701017915 | 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())\nstr_list = sorted(list(input() for _ in range(N)))\nstr_set = list(set(str_list))\nprint(str_set)\nl = len(str_set)\nprint(l)', 'N = int(input())\nstr_list = sorted(list(input() for _ in range(N)))\nstr_set = list(set(str_list))\nl = len(str_set)\nprint(l)'] | ['Wrong Answer', 'Accepted'] | ['s123311285', 's590624655'] | [36096.0, 36156.0] | [372.0, 340.0] | [138, 123] |
p02701 | u702018889 | 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(set(input().split()))\nprint(len(s))', 'n=int(input())\ns=list(set([input() for _ in range(n)]))\nprint(len(s))'] | ['Wrong Answer', 'Accepted'] | ['s078595320', 's385779595'] | [9152.0, 35500.0] | [22.0, 264.0] | [57, 69] |
p02701 | u717839182 | 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 actual(N, s_list):\n return len(set(s_list))\n\nN = int(input())\n\ns_list = []\n\nfor _ in range(N)\n\ts = input()\n \ts_list.append(s)\n \nprint(actual(N, s_list)) ', 'def actual(N, s_list):\n return len(set(s_list))\n\nN = int(input())\n\ns_list = []\n\nfor _ in range(N):\n s = input()\n s_list.append(s)\n \nprint(actual(N, s_list)) \n'] | ['Runtime Error', 'Accepted'] | ['s671080264', 's991316219'] | [9012.0, 35580.0] | [23.0, 286.0] | [166, 168] |
p02701 | u727072969 | 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())\nl = [input() for _ in range(n)]\n\nc = collections.Counter(l)\nprint(c)', 'N = int(input())\nS = [input() for _ in range(N)]\nprint(len(set(S)))'] | ['Wrong Answer', 'Accepted'] | ['s087238015', 's960858536'] | [63096.0, 35532.0] | [365.0, 261.0] | [105, 67] |
p02701 | u727148417 | 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\n \nN = int(input())\nS = {}\nfor i in range(N):\n S[i] = input()\nprint(len(Counter(S.keys()).keys()))', 'from collections import Counter\n \nN = int(input())\nS = {}\nfor i in range(N):\n S[i] = input()\nprint(len(Counter(S.values()).keys()))'] | ['Wrong Answer', 'Accepted'] | ['s786174866', 's690500163'] | [58684.0, 58812.0] | [282.0, 293.0] | [130, 132] |
p02701 | u741579801 | 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 = [int(input()) for _ in range(N)]\nalready = []\nfor a in A:\n if a not in already:\n already.append(a)\nprint(len(already))', 'N = int(input())\nA = [input() for _ in range(N)]\nprint(len(list(set(A))))'] | ['Runtime Error', 'Accepted'] | ['s370574254', 's899054343'] | [9180.0, 35720.0] | [21.0, 261.0] | [143, 73] |
p02701 | u745687363 | 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(int(input()))\nT = set(S)\nprint(len(T))', 'n = int(input())\nS=[]\nfor i in range(n):\n S.append(input())\nT = set(S)\nprint(len(T))\n'] | ['Runtime Error', 'Accepted'] | ['s855877092', 's092456722'] | [9180.0, 35568.0] | [27.0, 283.0] | [90, 86] |
p02701 | u751539777 | 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.add(input())\n \nprint(len(s))', 'N = int(input())\ns = set()\n\nfor i in range(N):\n s.add(input())\n \nprint(len(s))'] | ['Runtime Error', 'Accepted'] | ['s734892621', 's338286693'] | [9048.0, 30964.0] | [21.0, 297.0] | [81, 84] |
p02701 | u752898745 | 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=int(input())\n*b,=map(str, open(0).read().split())\ns=set(b)\nprint(min(a,len(s)))', "a=int(input())\nb=[input() for _ in range(10)]\ns=set(b)\nprint(min(a,len(s)-1) if '' in b else min(a,len(s)))", 'a=int(input())\n*b,=map(open(0))\ns=set(b)\nprint(min(a,len(s)))', 'a,*b=map(str, open(0).read().split())\ns=set(b)\nprint(min(int(a),len(s)))'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s438960686', 's605151599', 's869919813', 's827529508'] | [38968.0, 9188.0, 9184.0, 39028.0] | [100.0, 23.0, 24.0, 96.0] | [81, 107, 61, 72] |
p02701 | u755250447 | 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)]\nnum = 0\nfor i in range(len(s)):\n if i-1<0 or s[i] != s[i-1]:\n num = num + 1\n\nprint(num)', 'N = int(input())\ns = [input() for i in range(N)]\n\nprint(len(set(s)))'] | ['Wrong Answer', 'Accepted'] | ['s312336909', 's990301381'] | [23228.0, 35576.0] | [268.0, 256.0] | [144, 68] |
p02701 | u758973277 | 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(len(S))', 'N = int(input())\nS = set([input() for i in range(N)])\nprint(len(S))'] | ['Wrong Answer', 'Accepted'] | ['s516544093', 's462060766'] | [23256.0, 35720.0] | [223.0, 269.0] | [62, 67] |
p02701 | u761638117 | 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\nbase1 = 1007\nmod1 = 10**9+7\ndic = {}\n\nfor s in S:\n for i,e in enumerate(s):\n n = len(s)\n hash1 = [0]*(n+1)\n power1 = [1]*(n+1)\n hash1[i+1] = (hash1[i]*base1 + ord(e))%mod1\n power1[i+1] = (power1[i]*base1)%mod1\n key = hash1[n]\n dic.setdefault(key, s)\n\nprint(len(dic))', 'n = int(input())\nS = [input() for _ in range(n)]\n\nimport hashlib\nbase1 = 1007\nmod1 = 10**9+7\ndic = {}\n\nfor s in S:\n hs = hashlib.md5(s.encode()).hexdigest()\n dic.setdefault(hs, s)\n\nprint(len(dic))'] | ['Wrong Answer', 'Accepted'] | ['s426003511', 's081619421'] | [23404.0, 56924.0] | [1707.0, 412.0] | [344, 198] |
p02701 | u763383823 | 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\ninput = sys.stdin.readline\nN = int(input())\n= []\nS_append = S.append\nS = [input() for _ in range(N)]\ncount = 0\nwhile len(S) >0:\n S.remove(S[0])\n count += 1\n \nprint(count)', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nS = []\nS_append = S.append\nfor i in range(N):\n S_append(input())\ncount = 0\nwhile len(S) >0:\n S.remove(S[0])\n count += 1\n\nprint(count)', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nS = [input() for i in range(N)]\ncount = 0\nwhile len(S) >0:\n [S for S in S if S != S[0]]\n count += 1\n\nprint(count)', 'N, *S = map(open(0).read().split())\nprint(len(set(S))', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nS = [input() for _ in range(N)]\ncount = 0\nwhile len(S) >0:\n S.remove(S[0])\n count += 1\n \nprint(count)', 'N, *S = open(0).read().split()\nprint(len(set(S)))'] | ['Runtime Error', 'Wrong Answer', 'Time Limit Exceeded', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s261718932', 's267700107', 's363022726', 's390106147', 's556951945', 's966424532'] | [8932.0, 22988.0, 24848.0, 8964.0, 23372.0, 38720.0] | [23.0, 2206.0, 2206.0, 22.0, 2206.0, 68.0] | [183, 191, 170, 53, 158, 49] |
p02701 | u764604930 | 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 solve():\n number=int(input())\n items=[]\n for i in range(number):\n item=input()\n items.append(item)\n count=1\n for i in range(1,number):\n if items[i]!=items[i-1]:\n count+=1\n print(count)\n\n return\nsolve()', '"""write your code in method solve"""\ndef solve():\n \n number=int(input())\n items=[]\n for i in range(number):\n item=input()\n items.append(item)\n a=set(items)\n print(len(a))\n\n return\nsolve()'] | ['Wrong Answer', 'Accepted'] | ['s778473328', 's044565832'] | [23396.0, 35704.0] | [258.0, 263.0] | [258, 222] |
p02701 | u765699396 | 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=list(input())\nx=0\nif len(s)<=3:\n x=0\n print(x)\nelse :\n for j in range(len(s)):\n count=0\n for i in range(len(s)-j):\n a="".join(s[j:j+count+1])\n if int(a) % 2019 ==0:\n x+=1\n count+=1\n else:\n count+=1\nprint(x)', 'N=int(input())\na=[]\nfor i in range(N):\n a.append(input())\na_uni=list(set(a))\nprint(len(a_uni))'] | ['Wrong Answer', 'Accepted'] | ['s832191304', 's926918338'] | [9204.0, 35576.0] | [23.0, 290.0] | [309, 97] |
p02701 | u767797498 | 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\nimport io\nimport sys\nimport math\n\ndef solve():\n \n pass\n\ndef main():\n # input\n n = int(input())\n s_list = sys.stdin.readlines()\n print(s_list)\n # process\n ans = str( len( set(s_list)) )\n \n # output\n print(ans)\n return ans\n \n### DEBUG I/O ###\n_DEB = 0 # 1:ON / 0:OFF\n\n_INPUT = """\\\n5\ngrape\ngrape\ngrape\ngrape\ngrape\n"""\n_EXPECTED = """\\\n1\n"""\n\ndef logd(str):\n """usage:\n if _DEB: logd(f"{str}")\n """\n if _DEB: print(f"[deb] {str}")\n\n### MAIN ###\nif __name__ == "__main__":\n if _DEB:\n sys.stdin = io.StringIO(_INPUT)\n print("!! Debug Mode !!")\n\n ans = main()\n\n if _DEB:\n print()\n if _EXPECTED.strip() == ans.strip(): print("!! Success !!")\n else: print(f"!! Failed... !!\\nANSWER: {ans}\\nExpected: {_EXPECTED}")', '# -*- coding: utf-8 -*-\n\nimport io\nimport sys\nimport math\n\ndef solve():\n \n pass\n\ndef main():\n # input\n n = int(input())\n s_list = open(0).read().split() \n \n # process\n ans = str( len( set(s_list)) )\n \n # output\n print(ans)\n return ans\n \n### DEBUG I/O ###\n_DEB = 0 # 1:ON / 0:OFF\n\n_INPUT = """\\\n5\ngrape\ngrape\ngrape\ngrape\ngrape\n"""\n_EXPECTED = """\\\n1\n"""\n\ndef logd(str):\n """usage:\n if _DEB: logd(f"{str}")\n """\n if _DEB: print(f"[deb] {str}")\n\n### MAIN ###\nif __name__ == "__main__":\n if _DEB:\n sys.stdin = io.StringIO(_INPUT)\n print("!! Debug Mode !!")\n\n ans = main()\n\n if _DEB:\n print()\n if _EXPECTED.strip() == ans.strip(): print("!! Success !!")\n else: print(f"!! Failed... !!\\nANSWER: {ans}\\nExpected: {_EXPECTED}")', '# -*- coding: utf-8 -*-\n\nimport io\nimport sys\nimport math\n\ndef solve():\n \n pass\n\ndef main():\n # input\n n = int(input())\n s_list = []\n for s in range(n):\n s_list.append(input())\n \n # process\n s_set = set(s_list)\n ans = str( len( s_set) )\n \n # output\n print(ans)\n return ans\n \n### DEBUG I/O ###\n_DEB = 0 # 1:ON / 0:OFF\n\n_INPUT = """\\\n5\ngrape\ngrape\ngrape\ngrape\ngrape\n"""\n_EXPECTED = """\\\n1\n"""\n\ndef logd(str):\n """usage:\n if _DEB: logd(f"{str}")\n """\n if _DEB: print(f"[deb] {str}")\n\n### MAIN ###\nif __name__ == "__main__":\n if _DEB:\n sys.stdin = io.StringIO(_INPUT)\n print("!! Debug Mode !!")\n\n ans = main()\n\n if _DEB:\n print()\n if _EXPECTED.strip() == ans.strip(): print("!! Success !!")\n else: print(f"!! Failed... !!\\nANSWER: {ans}\\nExpected: {_EXPECTED}")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s280875315', 's935645947', 's745372332'] | [38092.0, 37868.0, 35532.0] | [98.0, 69.0, 266.0] | [852, 841, 890] |
p02701 | u770558697 | 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())\nstring_list=[input() for i in range(n)]\nc = collections.Counter(string_list)\nprint(len(c))\n\n', 'from collections import Counter\nn = int(input())\nstring_list=[input() for i in range(n)]\nc = collections.Counter(string_list)\nprint(len(c))\n\n', 'n = int(input())\ns = [input() for _ in range(n)]\nprint(len(set(s)))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s126164518', 's444482552', 's632722506'] | [23088.0, 23664.0, 35572.0] | [232.0, 231.0, 255.0] | [109, 141, 67] |
p02701 | u771538568 | 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\na=int(input())\nlist1=[]\nfor i in range(a)\nlist1.append(input())\na=set(list1)\nprint(len(a))\n\n', 'a=int(input())\nlist1=[]\nfor i in range(a):\n list1.append(input())\na=set(list1)\nprint(len(a))'] | ['Runtime Error', 'Accepted'] | ['s183971333', 's262301269'] | [8948.0, 35652.0] | [20.0, 274.0] | [124, 93] |
p02701 | u796028551 | 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().split())\nS = []\nfor _ in range(N):\n keihin = input().split()\n if keihin not in S:S.append(keihin)\n\nprint(len(S))', 'N = int(input())\nS = []\nfor _ in range(N):\n S.append(input())\n\nprint(len(set(S)))'] | ['Runtime Error', 'Accepted'] | ['s365715432', 's109305765'] | [9040.0, 35720.0] | [20.0, 268.0] | [134, 84] |
p02701 | u797798686 | 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 sys import stdin\ndata = stdin.readlines()\n\nn = int(data[0].split()[0])\n\nprint(n)\n\nl = []\nfor i in range(n):\n if not data[i+1].split()[0] in l:\n l.append(data[i+1].split()[0])\nprint(len(l))', 'from sys import stdin\ndata = stdin.readlines()\n\nn = int(data[0].split()[0])\n\nl = []\nfor i in range(n):\n l.append(data[i+1].split()[0])\nprint(len(set(l)))'] | ['Wrong Answer', 'Accepted'] | ['s264721655', 's148221183'] | [24612.0, 49808.0] | [2206.0, 130.0] | [203, 156] |
p02701 | u798260206 | 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(map(str,input().split()))\nl = []\n\nfor i in range(N):\n l.append(s[i])\n \nprint(len(set(l)))', 'n = int(input())\ns = input()\nl = []\n\nfor i in range(N):\n l.append(s[i])\n \n\nprint(len(list(set(l))))', 'n = int(input())\ns = list(map(int,input().split()))\nl = []\n\nfor i in range(N):\n l.append(s[i])\n \nprint(len(set(l)))', 'n = int(input())\ns = list(input())\nS = len(s)\nl = []\n\nif n>=S:\n for i in range(n):\n l.append(s[i])\n print(len(set(l)))\n\nelif n<S:\n for i in range(S):\n l.append(s[i])\n print(len(set(l)))', 'n = int(input())\ns = [input() for i in range(n)]\nS = len(set(s))\n\nprint(S)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s007086940', 's123775481', 's188929691', 's737073438', 's058649276'] | [9184.0, 9164.0, 9180.0, 9012.0, 35588.0] | [21.0, 24.0, 23.0, 23.0, 265.0] | [116, 100, 116, 199, 74] |
p02701 | u800058906 | 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\na=[]\nc=0\n\nfor i in s:\n if i not in a:\n c+=1\n\nprint(c)', 'n=int(input())\ns=[input() for i in range(n)]\n\ns=set(s)\n\nprint(len(s))'] | ['Wrong Answer', 'Accepted'] | ['s725711095', 's197386054'] | [23256.0, 35612.0] | [253.0, 269.0] | [109, 69] |
p02701 | u809986472 | 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\nA=''\nfor i in range(0,N):\n B=input()\n if A==B:\n count+=0\n else:\n count+=1\nprint(count) ", 'N=int(input())\nx=set([input() for i in range(N)])\nprint(len(x))'] | ['Wrong Answer', 'Accepted'] | ['s485036896', 's808776262'] | [9216.0, 35720.0] | [245.0, 269.0] | [121, 63] |
p02701 | u815053012 | 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? | ['list1=[]\nnum=int(input())\nfor i in range (0,num):\n\tsome=input()\n list1.append(some)\nprint(len(set(i for i in list1 if i.isalpha())))', 'num=int(input())\nfor i in range (0,num):\n\tsome=input(list1[])\n list1.append(some)\nprint(len(set(i for i in list1 if i.isalpha())))', 'num=int(input())\nfor i in range (0,num):\n\tsome=input()\n list1.append(some)\nprint(len(set(i for i in list1 if i.isalpha())))', 'num=int(input())\nfor i in range (0,num):\n\tsome=input(list1[])\n list1.append(some)\nprint(len(set(i for i in lst if i.isalpha())))', 'list1=[]\nnum=int(input())\nfor i in range (0,num):\n list1.append(input())\nprint(len(set(i for i in list1 if i.isalpha())))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s090314170', 's149095769', 's256224360', 's940671331', 's135153059'] | [9020.0, 9016.0, 9016.0, 9012.0, 35700.0] | [23.0, 22.0, 21.0, 19.0, 286.0] | [135, 133, 126, 131, 124] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.