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
p03423
u519721530
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N//2)', 'N = int(input())\nprint(N//3)']
['Wrong Answer', 'Accepted']
['s801621638', 's511114317']
[2940.0, 2940.0]
[17.0, 17.0]
[28, 28]
p03423
u523964576
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\na=[]\nfor i in range(N):\n a.append(input())\n\nimport numpy as np\ns=np.zeros(5)\n\nfor i in a:\n if i[0]=="M":\n s[0]+=1\n elif i[0]=="A":\n s[1]+=1\n elif i[0]=="R":\n s[2]+=1\n elif i[0]=="C":\n s[3]+=1\n elif i[0]=="H":\n s[4]+=1\n else:\n continue\nb=np.unique(s)\nc=0\nif len(b)<3:\n print(0)\nelse:\n for i in range(0,3):\n for j in range(i+1,4):\n for k in range(j+1,5):\n c+=s[i]*s[j]*s[k]\n print(c)\n', 'N=int(input())\nprint(int(N/3))']
['Runtime Error', 'Accepted']
['s548707685', 's392323546']
[3064.0, 2940.0]
[17.0, 17.0]
[502, 30]
p03423
u528807020
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = iot(input())\nprint(N//3)', 'N = int(input())\nprint(N//3)']
['Runtime Error', 'Accepted']
['s176192312', 's668905749']
[2940.0, 2940.0]
[17.0, 18.0]
[28, 28]
p03423
u533039576
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\n\nprint(m // 3)\n', 'n = int(input())\n\nprint(n // 3)\n']
['Runtime Error', 'Accepted']
['s076675435', 's095163259']
[2940.0, 2940.0]
[18.0, 18.0]
[32, 32]
p03423
u536325690
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["n = int(input())\ns = input().split()\n\nif 'Y' in s:\n print('Four')\nelse:\n print('Three')", "import math\n\nn = int(input())\nd = n / 3\n\nif d == 0:\n print('0')\nelse:\n print(math.floor(d))"]
['Runtime Error', 'Accepted']
['s771577853', 's989788128']
[2940.0, 2940.0]
[18.0, 17.0]
[93, 97]
p03423
u538497610
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["N = int(input())\nname_list = [input() for name in range(N)]\nchar_list = ['M', 'A', 'R', 'C', 'H']\ncount_list = [0 for _ in range(N)]\n\nfor name in name_list:\n if name[0] in char_list:\n count_list[char_list.index(name[0])] += 1\nscore=0\nfor x in range(5):\n for y in range(x+1,5):\n for z in range(y+1,5):\n score+=count_list[x]*count_list[y]*count_list[z]\n\nprint(score)\n", 'n = input()\nchars=input().split()\nmyset=set()\nfor char in chars:\n myset.add(char)\n\nprint(len(myset))', 'print(int(input())//3)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s012317087', 's232724280', 's655535470']
[3064.0, 2940.0, 3060.0]
[17.0, 18.0, 19.0]
[396, 103, 22]
p03423
u548514780
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\nprint(N/3)', "N=int(input())\nname=[]\nfor i in range(N):\n name.append(input())\nM=0\nA=0\nR=0\nC=0\nH=0\nletters=['M','A','R','C','H']\nfor i in range(N):\n for j in letters:\n if name[i][0]==j:\n if j=='M':\n M+=1\n elif j=='A':\n A+=1\n elif j=='R':\n R+=1\n elif j=='C':\n C+=1\n elif j=='H':\n H+=1\nif M==0:\n M+=1\nif A==0:\n A+=1\nif C==0:\n C+=1\nif R==0:\n R+=1\nif H==0:\n H+=1\nprint(M*A*C*R*H)", "N=int(input())\nname=[]\nfor i in range(N):\n name.append(input())\nM=0\nA=0\nR=0\nC=0\nH=0\nletters=['M','A','R','C','H']\nfor i in range(N):\n for j in letters:\n if name[i][0]==j:\n if j=='M':\n M+=1\n elif j=='A':\n A+=1\n elif j=='R':\n R+=1\n elif j=='C':\n C+=1\n elif j=='H':\n H+=1\nkazu=!\nif M==0:\n M+=1\nif A==0:\n A+=1\nif C==0:\n C+=1\nif R==0:\n R+=1\nif H==0:\n H+=1\nprint(M*A*C*R*H)", 'N=int(input())\nprint(N//3)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s211016564', 's264357885', 's589249445', 's874965788']
[9100.0, 9172.0, 9064.0, 9144.0]
[28.0, 29.0, 27.0, 33.0]
[25, 430, 437, 26]
p03423
u556589653
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N//2)', 'N = int(input())\nprint(N//3)\n']
['Wrong Answer', 'Accepted']
['s796798675', 's773248589']
[2940.0, 3060.0]
[17.0, 19.0]
[28, 29]
p03423
u558764629
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())/3)', 'print(int(input())//3)']
['Wrong Answer', 'Accepted']
['s332785199', 's347366839']
[2940.0, 2940.0]
[17.0, 17.0]
[21, 22]
p03423
u566574814
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input()//3))', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s551712893', 's193754026']
[2940.0, 2940.0]
[17.0, 17.0]
[22, 22]
p03423
u569272329
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N / 3)\n', 'N = int(input())\nprint(int(N / 3))\n']
['Wrong Answer', 'Accepted']
['s003440594', 's835967913']
[2940.0, 2940.0]
[17.0, 17.0]
[30, 35]
p03423
u570612423
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['# -*- coding: utf-8 -*-\n\na = int(input())\n\nif a < 2:\n print(0)\nelif a%3 == 0:\n print(int(a/3))\nelif a%3 == 1:\n print(int(a/3) - 1)\nelse:\n print(int(a/3) + 1)\n', '# -*- coding: utf-8 -*-\n\na = int(input())\n\nif a < 2:\n print(0)\nelif a%3 == 0:\n print(int(a/3))\nelif a%3 == 1:\n print(int(a/3) - 1)\nelse:\n print(int(a/3)', '# -*- coding: utf-8 -*-\n\na = int(input())\n\nif a < 2:\n print(0)\nelif a%3 == 0:\n print(int(a/3))\nelif a%3 == 1:\n print(int(a/3) - 1)\nelse:\n print(int(a/3) - 1)', '# -*- coding: utf-8 -*-\n\na = int(input())\n\nif a < 2:\n print(0)\nelif a%3 == 0:\n print(int(a/3))\nelif a%3 == 1:\n print(int(a/3))\nelse:\n print(int(a/3))']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s345349068', 's496105342', 's955044414', 's871168483']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[170, 164, 169, 161]
p03423
u583276018
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(n//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s023451177', 's401204500']
[2940.0, 2940.0]
[17.0, 17.0]
[11, 22]
p03423
u584459098
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\n\nif N%3 == 0:\n A = N//3\nelif N<3:\n A = 0\nelse :\n A = N//3 - 1\n\nprint(A)', 'N=int(input())\n\nif N%3 == 0:\n A = N//3\nelif N<3:\n A = 0\nelse:\n A = N//3 + 1\n\nprint(A)', 'N=int(input())\n\nif N<3:\n A = 0\nelse :\n A = N//3\n\nprint(A)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s407646054', 's494956376', 's884507626']
[3068.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[95, 94, 63]
p03423
u591764610
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())//3-1)', 'n = int(input())\nif n<3:\n print(0)\nelif n%3 != 0:\n print(n//3-1)\nelse:\n print(n//3)', 'n = int(input())\nif n<3:\n print(0)\nelif n%3 != 0:\n print(n-1)\nelse:\n print(n)', 'print(int(input())//3)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s148605296', 's281642055', 's739843535', 's605547992']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[24, 86, 80, 22]
p03423
u599137931
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nprint(type(n))\nprint(n//3)\n', 'n = int(input())\nprint(n//3)\n']
['Wrong Answer', 'Accepted']
['s183539117', 's084812128']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 29]
p03423
u601522790
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nif N % 3 >= 1:\n\tprint((N // 3 ) + 1)\nelse:\n\tprint(N//3)', 'N = int(input())\nif N % 3 => 1:\n\tprint((N // 3 ) + 1)\nelse:\n\tprint(N//3)', 'N = int(input())\nif N % 3 >= 1:\n\tprint(N // 3)\nelse:\n\tprint(N//3)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s026510829', 's232967902', 's219566198']
[2940.0, 2940.0, 2940.0]
[17.0, 16.0, 17.0]
[72, 72, 65]
p03423
u603234915
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["print('{}'.fotmat(int(input())//3))\n", "print('{}'.format(int(input())//3))\n"]
['Runtime Error', 'Accepted']
['s045799058', 's863531771']
[2940.0, 2940.0]
[17.0, 17.0]
[36, 36]
p03423
u604693716
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nprint((n-n%3)/3)', 'n=int(input())\nprint (int(((n-n%3)/3)))']
['Wrong Answer', 'Accepted']
['s898552768', 's211970175']
[3316.0, 2940.0]
[21.0, 17.0]
[31, 39]
p03423
u610385881
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N / 3)', 'H, W, D = map(int, input().split())\n\nA = [list(map(int, input().split())) for i in range(H)]\nrA = [[0 for j in range(2)] for i in range(H * W + 1)]\nS = [0 for i in range(H * W + 1)]\nfor i in range(H):\n\tfor j in range(W):\n\t\trA[A[i][j]][0] = i\n\t\trA[A[i][j]][1] = j\n\nQ = int(input())\nfor i in range(Q):\n\tL, R = map(int, input().split())\n\tans = 0\n\tfor j in range(H * W + 1) [L::D]:\n\t\tif j == R:\n\t\t\tbreak\n\t\tif S[j]:\n\t\t\tans += S[j]\n\t\t\tbreak\n\t\tS[j] -= ans\n\t\tans += abs(rA[j + D][1] - rA[j][1]) + abs(rA[j + D][0] - rA[j][0])\n\tfor j in range(H * W + 1)[L::D]:\n\t\tif S[j] > 0:\n\t\t\tbreak\n\t\tS[j] += ans\n\tprint (ans)\n', 'N = int(input())\nprint(int(N / 3))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s396942676', 's428075830', 's031110283']
[2940.0, 3064.0, 3316.0]
[17.0, 18.0, 19.0]
[29, 603, 34]
p03423
u611562941
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['from collections import Counter\n\nN = int(input())\nS = list(map(str,input().split()))\ncounter = Counter(S)\n\nres = 0\nfor s in counter.values():\n res += s\nif s == 3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nprint(N//3)']
['Runtime Error', 'Accepted']
['s152540457', 's673379598']
[3444.0, 2940.0]
[25.0, 17.0]
[208, 28]
p03423
u612635771
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N / 3)', 'N = int(input())\nprint(N // 3)']
['Wrong Answer', 'Accepted']
['s390038209', 's411990167']
[9136.0, 9072.0]
[29.0, 28.0]
[29, 30]
p03423
u614875193
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["N=int(input())\nM,A,R,C,H=0,0,0,0,0\nfor i in range(N):\n s=input()[0]\n if s=='M':\n M+=1\n elif s=='A':\n A+=1\n elif s=='R':\n R+=1\n elif s=='C':\n C+=1\n elif s=='H':\n H+=1\n\nprint(M*A*R + M*A*C + M*A*H + M*R*C + M*R*H + \\\n M*C*H + A*R*C + A*R*H + A*C*H + R*C*H)", 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s116443578', 's868253045']
[3064.0, 2940.0]
[18.0, 17.0]
[312, 22]
p03423
u614964888
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\nprint(X//3)', 'N=int(input())\nprint(N//3)']
['Runtime Error', 'Accepted']
['s665924253', 's139977799']
[2940.0, 2940.0]
[17.0, 17.0]
[26, 26]
p03423
u616188005
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['import math\nn = int(input())\nprint(math.ceil(n/3))', 'n = int(input())\nprint(n//3)']
['Wrong Answer', 'Accepted']
['s745192104', 's022778400']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 28]
p03423
u617225232
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nif n < 3:\n print(0)\nelif n%3 == 0:\n print(int(n/3))\nelif n%3 >0:\n print(int(n//3)+1)\n ', 'n = int(input())\nif n < 3:\n print(0)\nelse:\n print(int(n//3))']
['Wrong Answer', 'Accepted']
['s942836002', 's917905410']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 62]
p03423
u617659131
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input() // 3)', 'print(int(input()) // 3)']
['Runtime Error', 'Accepted']
['s742860220', 's772911838']
[2940.0, 2940.0]
[17.0, 17.0]
[23, 24]
p03423
u621674426
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(int(input)/3))', 'print(int(int(input())/3))']
['Runtime Error', 'Accepted']
['s731103405', 's439749815']
[2940.0, 2940.0]
[18.0, 17.0]
[24, 26]
p03423
u622011073
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input());print(n//3+(n%3!=0))', 'print(int(input())//3)']
['Wrong Answer', 'Accepted']
['s934391686', 's443247942']
[2940.0, 2940.0]
[17.0, 17.0]
[35, 22]
p03423
u626228246
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N//2)', 'N = int(input())\nprint(N//3)\n']
['Wrong Answer', 'Accepted']
['s946677247', 's653470568']
[2940.0, 2940.0]
[17.0, 17.0]
[28, 29]
p03423
u633355062
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['a=int(input())\nprint((a-a%3)/3)', 'a=int(input())\nprint((a-a%3)//3)']
['Wrong Answer', 'Accepted']
['s659439308', 's000350892']
[2940.0, 2940.0]
[18.0, 17.0]
[31, 32]
p03423
u634079249
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(input()//3)', 'import sys\nimport os\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n N = int(sys.stdin.readline().rstrip())\n print(N//3)\n\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s903453618', 's477814482']
[9104.0, 2940.0]
[23.0, 18.0]
[17, 205]
p03423
u635272634
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(input()/3)', 'print(int(int(input())/3))']
['Runtime Error', 'Accepted']
['s291606953', 's247118979']
[2940.0, 2940.0]
[18.0, 17.0]
[16, 26]
p03423
u639691968
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["N = int(input())\nnum = [0,0,0,0,0]\nanswer = 0\nfor i in range(N):\n\ta = input()\n\tif a[0]=='M':\n\t\tnum[0] += 1\n\tif a[0]=='A':\n\t\tnum[1] += 1\n\tif a[0]=='R':\n\t\tnum[2] += 1\n\tif a[0]=='C':\n\t\tnum[3] += 1\n\tif a[0]=='H':\n\t\tnum[4] += 1\n\nfor i in range(3):\n for j in range(i+1, 4):\n\tfor k in range(j+1, 5):\n\t\tanswer += num[i]*num[j]*num[k]\n\nprint(answer)", 'H,W,D = list(map(int, input().split()))\nX = [[0,0] for i in range(H*W+1)]\n\nfor i in range(1, H+1):\n\tA = list(map(int, input().split()))\n\tfor idx, a in enumerate(A):\n\t\tX[a] = [i, idx+1]\n\nQ = int(input())\nL = []\nR = []\nS = [0]*(H*W+1)\n\nfor i in range(Q):\n\tl,r = list(map(int, input().split()))\n\tL.append(l)\n\tR.append(r)\n\nfor i in range(D+1, H*W+1):\n\tS[i] = S[i-D] + abs(X[i][0]-X[i-D][0])+abs(X[i][1]-X[i-D][1])\n\nfor i in range(Q):\n\tprint(S[R[i]] - S[L[i]])\n', 'n = int(input())\nout = int(n / 3)\nprint(out)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s026098190', 's043259758', 's202858846']
[3064.0, 3064.0, 2940.0]
[17.0, 18.0, 33.0]
[341, 456, 44]
p03423
u642012866
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(-(-N//3))', 'N = int(input())\nprint(N//3)']
['Wrong Answer', 'Accepted']
['s925762050', 's893958330']
[9100.0, 8804.0]
[25.0, 30.0]
[32, 28]
p03423
u652569315
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nprint(x//3)', 'n=int(input())\nprint(n//3)']
['Runtime Error', 'Accepted']
['s468852271', 's055343578']
[3060.0, 2940.0]
[18.0, 18.0]
[26, 26]
p03423
u657208344
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nans=n/3\nprint(ans)', 'n=int(input())\nn=n//3\nprint(n)']
['Wrong Answer', 'Accepted']
['s467231940', 's785554887']
[2940.0, 2940.0]
[17.0, 17.0]
[33, 30]
p03423
u662614053
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nprint(n/3)', 'print(int(int(input())/3))']
['Wrong Answer', 'Accepted']
['s919053794', 's791681810']
[2940.0, 2940.0]
[17.0, 20.0]
[25, 26]
p03423
u663438907
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\n \nif N % 3 == 0:\n print(int(N/3))\nelse:\n print(int(N//3)+1)', 'N = int(input())\n\nif N % 3 == 0:\n print(int(N/3))\nelse:\n print(int(N//3)-1)\n ', 'N = int(input())\n \nif N % 3 == 0:\n print(int(N/3))\nelse:\n print(int(N//3))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s536680734', 's875768299', 's746189626']
[2940.0, 2940.0, 2940.0]
[19.0, 19.0, 17.0]
[78, 80, 76]
p03423
u667024514
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nprint(n / 3)', 'print(int(input())//3)']
['Wrong Answer', 'Accepted']
['s764732480', 's638200226']
[2940.0, 2940.0]
[17.0, 17.0]
[29, 22]
p03423
u667084803
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['H, W, D = map(int,input().split())\ndist = [[float("inf") for i in range(H*W+1)] for j in range(H*W+1)]\nfor i in range(H*W+1):\n dist[i][i] = 0\n\npos = [[0,0] for i in range(H*W+1)]\nfor i in range(H):\n A = list(map(int,input().split()))\n for j in range(W):\n pos[A[j]] = [i+1, j+1]\nfor i in range(H*W+1-D):\n dist[i][i+D] = abs(pos[i][0]-pos[i+D][0])+abs(pos[i][1]-pos[i+D][1])\ndistances = [[] for i in range(D)]\nfor i in range(1,H*W+1-D):\n d = dist[i][i+D]\n distances[i%D]+=[d]\ndistances2 = [[0] for i in range(D)]\nfor i in range(D):\n K = len(distances[i])\n for j in range(K):\n distances2[i]+=[distances2[i][-1]+distances[i][j]]\nQ = int(input())\nfor i in range(Q):\n L, R = map(int, input().split())\n q = L%D\n l, r = (L-1)//D, (R-1)//D\n print(distances2[q][r]-distances2[q][l])', 'N= int(input())\nprint(N//3)']
['Runtime Error', 'Accepted']
['s359642257', 's032235904']
[3188.0, 3316.0]
[17.0, 20.0]
[858, 27]
p03423
u668503853
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\nn=[input()[0] for _ in range(N)]\nm,a,r,c,h=n.count("M"),n.count("A"),n.count("R"),n.count("C"),n.count("H")\nprint(m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h)', 'N=int(input())\nname=[input()[0] for _ in range(N)]\nm,a,r,c,h=name.count("M"),name.count("A"),name.count("R"),name.count("C"),name.count("H")\nprint(m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h)', 'print(int(input())//3)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s469670737', 's883045533', 's013009311']
[3060.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0]
[179, 197, 22]
p03423
u672898046
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['s = int(input())\nif s<3:\n print(0)\n\nif s%3 == 0:\n print(s/3)\nelif s%3 == 1:\n print((s//3)+1)\nelse:\n print((s//3)+2)', 's = int(input())\nif s<3:\n print(0)\nelif s%3 == 0:\n print(s//3)\nelif s%3 == 1:\n print((s//3))\nelse:\n print((s//3))']
['Wrong Answer', 'Accepted']
['s057859727', 's861419041']
[2940.0, 2940.0]
[17.0, 17.0]
[119, 117]
p03423
u678009529
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\n\nprint(-(-n//3) if n > 2 else 0)', 'n = int(input())\n\nprint(n//3)']
['Wrong Answer', 'Accepted']
['s390599052', 's761729622']
[2940.0, 2940.0]
[17.0, 18.0]
[49, 29]
p03423
u701318346
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input)//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s288571202', 's358567302']
[2940.0, 3316.0]
[17.0, 19.0]
[20, 22]
p03423
u711539583
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nif n > 2:\n print((n+2)//3)\nelse:\n print(0)', 'n = int(input())\nprint(n // 3)\n']
['Wrong Answer', 'Accepted']
['s883983884', 's356584883']
[8892.0, 9136.0]
[28.0, 26.0]
[61, 31]
p03423
u711768617
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = map(int, input())\nprint(n // 3)', 'n = int(input())\nprint(n // 3)']
['Runtime Error', 'Accepted']
['s063728818', 's165757474']
[9012.0, 9060.0]
[27.0, 31.0]
[35, 30]
p03423
u713830790
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['import java.util.*;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n\n System.out.println(N / 3);\n }\n\n}\n', "if __name__ == '__main__':\n N = int(input())\n S = set(input().split(' '))\n\n if len(S) == 3:\n print('Three')\n else:\n print('Four')", "if __name__ =='__main__':\n N = int(input())\n\n print(N // 3)"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s315802430', 's861660642', 's895483752']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[221, 155, 65]
p03423
u716314620
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())/3)', 'print(int(input())//3)']
['Wrong Answer', 'Accepted']
['s806952421', 's546432232']
[2940.0, 2940.0]
[17.0, 17.0]
[21, 22]
p03423
u735069283
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["N=int(input())\nS=input().split()\nprint('Three' if len(set(S))==3 else 'Four')", 'n = int(input())\nprint(n//3)']
['Runtime Error', 'Accepted']
['s211998540', 's000793202']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 28]
p03423
u735763891
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['def ACBC_089_C():\n _num = int(input())\n _namelist = []\n _countM = 0\n _countA = 0\n _countR = 0\n _countC = 0\n _countH = 0\n\n for i in range(0, _num):\n _name = str(input())\n _namelist.append(_name)\n if _name[0] == "M":\n _countM += 1\n elif _name[0] == "A":\n _countA += 1\n elif _name[0] == "R":\n _countR += 1\n elif _name[0] == "C":\n _countC += 1\n elif _name[0] == "H":\n _countH += 1\n print(_countM * _countA * _countR + \\\n _countM * _countA * _countC + \\\n _countM * _countA * _countH + \\\n _countM * _countR * _countC + \\\n _countM * _countR * _countH + \\\n _countM * _countC * _countH + \\\n _countA * _countR * _countC + \\\n _countA * _countR * _countH + \\\n _countA * _countC * _countH + \\\n _countR * _countC * _countH + \\\n )\n\nACBC_089_C()', '_num = int(input())\nprint(_num // 3)']
['Runtime Error', 'Accepted']
['s441860815', 's996972346']
[3064.0, 3064.0]
[17.0, 17.0]
[950, 36]
p03423
u739798900
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N_str = input()\nN = int(N_str)\n\nGr_num = 3 \n\nN_div = N // Gr_num\nN_rem = N % Gr_num\n\nif N >= 3:\n if N_rem == 0:\n print(N_div)\n elif N_rem > 0:\n print(N_div + 1)\nelif N < 3:\n print(0)', 'N_str = input()\nN = int(N_str)\n\nGr_num = 3 \n\nN_div = N // Gr_num\n\nif N >= 3:\n print(N_div)\nelif N < 3:\n print(0)']
['Wrong Answer', 'Accepted']
['s901417239', 's546823216']
[2940.0, 2940.0]
[17.0, 17.0]
[248, 161]
p03423
u740767776
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input)\nprint(N // 3)', 'N = int(input())\nprint(N // 3)']
['Runtime Error', 'Accepted']
['s374358044', 's168492718']
[2940.0, 2940.0]
[17.0, 17.0]
[28, 30]
p03423
u743154453
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["n = int(input())\nfukuro = list(map(str,input().split()))\ntypes = 'Three'\nfor i in range(len(fukuro)):\n if fukuro[i] == 'Y':\n types = 'Four'\n break\nprint(types)", 'n = int(input())\nprint(int(n/3))\n']
['Runtime Error', 'Accepted']
['s630715431', 's528553166']
[2940.0, 2940.0]
[17.0, 17.0]
[166, 33]
p03423
u763963344
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\n\nif N>=3: \u3000\u3000\u3000\u3000\u3000 \n print(int(N/3))\u3000 \nelse:\n print(0)', 'N = int(input())\n\nx=N//3 \n \nprint(x)']
['Runtime Error', 'Accepted']
['s567499635', 's241691714']
[9008.0, 8908.0]
[22.0, 30.0]
[172, 162]
p03423
u765590009
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input()/3))', 'a = int(input())\nprint(int(a/3))']
['Runtime Error', 'Accepted']
['s719961806', 's101888816']
[2940.0, 2940.0]
[19.0, 17.0]
[21, 32]
p03423
u766407523
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())/3)', 'N = int(input())\nprint(N/3)', 'print(int(input())//3)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s228699430', 's332330816', 's513554582']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[21, 27, 22]
p03423
u768559443
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input()//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s721668851', 's772922879']
[2940.0, 2940.0]
[17.0, 17.0]
[21, 22]
p03423
u771532493
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N-int(input())\nprint(N//3)', 'N=int(input())\nprint(N//3)']
['Runtime Error', 'Accepted']
['s141858651', 's960520557']
[3064.0, 2940.0]
[18.0, 17.0]
[26, 26]
p03423
u776871252
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\n\nprint(N / 3)\n', 'N = int(input())\n\nprint(int(N / 3))\n']
['Wrong Answer', 'Accepted']
['s602161691', 's405428504']
[2940.0, 3060.0]
[18.0, 19.0]
[31, 36]
p03423
u778700306
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['\nn = int(input())\nprint(n / 3)', '\nn = int(input())\nprint(n // 3)']
['Wrong Answer', 'Accepted']
['s293368284', 's720346384']
[2940.0, 2940.0]
[19.0, 17.0]
[30, 31]
p03423
u779830746
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["\na = int(input('生徒の人数 >'))\n\n\nanswer = a // 3\n\n\nprint(answer)", "\na = int(input('生徒の人数 >'))\n\n\nanswer = a // 3\n\n\nprint(answer)", '\na = int(input())\n\n\nanswer = a // 3\n\n\nprint(answer)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s010962993', 's234257454', 's847260404']
[9160.0, 9132.0, 9084.0]
[30.0, 25.0, 28.0]
[94, 94, 75]
p03423
u790812284
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['s = [input() for i in range(3)]\nprint(s[0][0], s[1][1], s[2][2], sep="")', 'N = int(input())\nprint(int(N/3))']
['Runtime Error', 'Accepted']
['s800624367', 's687036489']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 32]
p03423
u790877102
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\n\nM = N/3\n\n\nprint(M)', 'N = int(input())\n\nM = N//3\n\nprint(M)']
['Wrong Answer', 'Accepted']
['s543412548', 's734055296']
[2940.0, 2940.0]
[17.0, 17.0]
[36, 36]
p03423
u798731634
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = 13\nif n % 3 == 0:\n print(n / 3)\nelse:\n print(int(n / 3))', 'n = int(input())\nif n % 3 == 0:\n print(n / 3)\nelse:\n print(int(n / 3) + 1)', 'n = int(input())\nif n % 3 == 0:\n print(int(n / 3))\nelse:\n print(int(n / 3))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s474117973', 's998092555', 's290384667']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[62, 76, 77]
p03423
u809819902
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input)//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s228421751', 's962297119']
[9044.0, 9068.0]
[24.0, 26.0]
[20, 22]
p03423
u814781830
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(input()//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s061822564', 's133085611']
[2940.0, 2940.0]
[17.0, 18.0]
[17, 22]
p03423
u820225607
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['import math\n\nN = float(input())\nprint(math.ceil(N / 3))\n', 'import math\n\nN = float(input())\nprint(math.floor(N / 3))\n']
['Wrong Answer', 'Accepted']
['s676175302', 's047215178']
[2940.0, 2940.0]
[17.0, 18.0]
[56, 57]
p03423
u821802586
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['h, w, d = map(int, input().split())\n\na = [list(map(int, input().split())) for i in range(h)]\n\ndic = [0] * (h * w)\n\nfor i in range(h):\n for j in range(w):\n dic[a[i][j] - 1] = i, j\n\ns = [[0] * (h * w // d + 1) for i in range(d)]\n\nfor i in range(d):\n for j in range(1, h * w // d + 1):\n b = i + d * (j - 1)\n c = i + d * j\n\n if c >= len(dic):\n break\n \n y, x = dic[b]\n ny, nx = dic[c]\n s[i][j] = s[i][j - 1] + abs(ny - y) + abs(nx - x)\n\nq = int(input())\n\nfor i in range(q):\n l, r = map(int, input().split())\n l -= 1\n r -= 1\n print(s[l % d][r // d] - s[l % d][l // d])\n', 'n = int(input())\n\nprint(n // 3)']
['Runtime Error', 'Accepted']
['s097305798', 's232322840']
[3064.0, 3316.0]
[18.0, 20.0]
[648, 31]
p03423
u830162518
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\nprint((N-N%3)/3)', 'N=int(input())\nprint(N//3)']
['Wrong Answer', 'Accepted']
['s174302557', 's736808396']
[2940.0, 2940.0]
[17.0, 17.0]
[31, 26]
p03423
u833871588
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=input()\nprint(str(n//3))', 'print(str(int(input())//3))']
['Runtime Error', 'Accepted']
['s681522113', 's649369541']
[9084.0, 9072.0]
[23.0, 27.0]
[26, 27]
p03423
u840570107
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = input()\nprint(n//3)', 'n = int(input())\nprint(n // 3)']
['Runtime Error', 'Accepted']
['s156995535', 's644448803']
[2940.0, 2940.0]
[18.0, 17.0]
[23, 30]
p03423
u846552659
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['<?php\n$n = intval(trim(fgets(STDIN)));\n$ans = floor($n/3);\nprint "$ans\\n";\n?>', '# -*- coding:utf-8 -*-\nimport math\nif __name__ == "__main__":\n n = int(input())\n print(math.floor(n/3))']
['Runtime Error', 'Accepted']
['s750587272', 's556663927']
[2940.0, 3064.0]
[17.0, 18.0]
[77, 109]
p03423
u858436319
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["a = int(input())\nL = list(map(str, input().split()))\nb = 'Three'\nfor i in range(a):\n if L[i] == 'Y':\n b = 'Four'\n break\nprint(b)", 'print(int(input()) // 3)']
['Runtime Error', 'Accepted']
['s513692202', 's380009849']
[3060.0, 9140.0]
[19.0, 24.0]
[135, 24]
p03423
u863044225
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['a=int(input())\nprint(a/3)', 'a=int(input())\nprint(a//3)']
['Wrong Answer', 'Accepted']
['s463938289', 's095647031']
[2940.0, 2940.0]
[17.0, 17.0]
[25, 26]
p03423
u865413330
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nprint(int(n / 3 - n % 3))', 'n = int(input())\nprint(n / 3 - n % 3)', 'n = int(input())\nprint(int(n / 3 - n % 3)) if n > 3 else print(0)', 'n = int(input())\nprint(n // 3)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s344041154', 's595822296', 's668674360', 's715903272']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 19.0, 18.0]
[42, 37, 65, 30]
p03423
u869154953
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\n\nif N>=2:\n\tprint("0")\nelse:\n\tprint(N%3)', 'N=int(input())\n\nprint(N//3)']
['Wrong Answer', 'Accepted']
['s628404415', 's281030924']
[9088.0, 9096.0]
[28.0, 27.0]
[54, 27]
p03423
u870286225
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["import itertools as it\n# -*- coding: utf-8 -*-\n\nN = int(input())\n\nS = []\nfor i in range(N):\n S.append(input())\n\nfor i in range(N):\n\tS[i] = S[i][0]\n\n\ncount = [S.count('M'), S.count('A'), S.count('R'), S.count('C'), S.count('H')]\n\n\nanswer = count[0]*count[1]*count[2]\nanswer = count[0]*count[1]*count[3] + answer\nanswer = count[0]*count[1]*count[4] + answer\nanswer = count[0]*count[2]*count[3] + answer\nanswer = count[0]*count[2]*count[4] + answer\nanswer = count[0]*count[3]*count[4] + answer\nanswer = count[1]*count[2]*count[3] + answer\nanswer = count[1]*count[2]*count[4] + answer\nanswer = count[1]*count[3]*count[4] + answer\nanswer = count[2]*count[3]*count[4] + answer\n\n\nprint(answer)", '# -*- coding: utf-8 -*-\n\nN = int(input())\n\ng = N / 3\n\nprint("{}".format(g))', '# -*- coding: utf-8 -*-\n\nN = int(input())\n\ng = N // 3\n\nprint("{}".format(g))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s354751465', 's666208676', 's136674700']
[3064.0, 3188.0, 2940.0]
[17.0, 19.0, 17.0]
[806, 126, 127]
p03423
u871841829
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n = int(input())\nprint(n/3)', 'n = int(input())\nprint(n//3)']
['Wrong Answer', 'Accepted']
['s142272206', 's332259362']
[2940.0, 2940.0]
[18.0, 17.0]
[27, 28]
p03423
u882037708
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nprint(n/3)', 'n=int(input())\nprint(n//3)']
['Wrong Answer', 'Accepted']
['s575498142', 's586768622']
[2940.0, 2940.0]
[17.0, 18.0]
[25, 26]
p03423
u928784113
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['# -*- coding: utf-8 -*-\nN = int(input())\nif N > 3:\n print("{}".format(int(N // 3) + 1)\nelif N <= 3:\n print(0)', 'N = int(input())\ncnt = 0\nwhile N>=3:\n N = N-3\n cnt += 1\n\nprint(cnt)']
['Runtime Error', 'Accepted']
['s807333075', 's647614137']
[3188.0, 2940.0]
[19.0, 19.0]
[117, 81]
p03423
u937238023
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())/3)', 'print(int(input())//3)']
['Wrong Answer', 'Accepted']
['s952765447', 's149456358']
[9200.0, 9004.0]
[31.0, 26.0]
[21, 22]
p03423
u940102677
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())%3*3)', 'print(int(int(input())/3))']
['Wrong Answer', 'Accepted']
['s640241580', 's056575888']
[2940.0, 2940.0]
[17.0, 17.0]
[23, 26]
p03423
u941884460
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["tmp =input().split()\nH,W,D=int(tmp[0]),int(tmp[1]),int(tmp[2])\n\nlist = [[0 for x in range(W)] for y in range(H)]\ndict = {}\nfor i in range(H):\n tmp = input().split()\n for d in range(W):\n dict[tmp[d]] = str(i)+' '+str(d)\nresult ={}\ncost ={}\n\ndef calcost(L,R,D):\n if int(R)<=D:\n cost[R] = 0\n return 0\n else:\n posi1 = dict[R].split()\n posi2 = dict[str(int(R)-D)].split()\n costs = abs(int(posi2[0])-int(posi1[0])) + abs(int(posi2[1])-int(posi1[1]))\n if str(int(R)-D) in cost:\n cost[R] = costs + cost[str(int(R)-D)]\n return cost[R]\n else:\n cost[R] = costs + calcost(L,str(int(R)-D),D)\n return cost[R]\n\nfor n in range(D+1,H*W+1):\n calcost(str(1),str(n),D)\n\nQ = int(input())\nfor j in range(Q):\n tmpx = input()\n if tmpx in result:\n print(result[tmpx])\n else:\n tmp = tmpx.split()\n result[tmpx] = cost[tmp[1]]-cost[tmp[0]]\n print(result[tmpx])", 'N=int(input())\nprint(int(N/3))']
['Runtime Error', 'Accepted']
['s101576311', 's403833969']
[3064.0, 2940.0]
[17.0, 17.0]
[984, 30]
p03423
u945419374
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\ns=list(input().split())\nif "Y" in s:\n\tprint("Four")\nelse:\n\tprint("Three")', 'n=int(input())\nprint(n//3)']
['Runtime Error', 'Accepted']
['s312705870', 's870904524']
[2940.0, 2940.0]
[17.0, 18.0]
[88, 26]
p03423
u951492009
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
[" N= int(input())\nans =0\nif N<=2:\n print('0')\nelse:\n ans=N//3\n print(ans)", "N = int(input())\nans =0\nif N<=2:\n print('0')\nelse:\n ans=N//3\n print(ans)"]
['Runtime Error', 'Accepted']
['s399186450', 's648340644']
[2940.0, 3064.0]
[16.0, 17.0]
[81, 81]
p03423
u951601135
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
["N=int(input())\ns=list(map(str,input().split()))\nprint('Three' if s.count('Y')==0 else 'Four')", 'n=int(input())\nprint((n+3-1)//3)', 'n=int(input())\nprint(n//3)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s241433110', 's885091797', 's676984010']
[3060.0, 2940.0, 2940.0]
[19.0, 18.0, 18.0]
[93, 32, 26]
p03423
u957872856
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nS = list(input())\nprint(S)\nif len(set(S)) == 3:\n print("Three")\nelse:\n print("Four")\n', 'a = int(input)\nprint(a//3)', 'a = int(input())\nprint(a//3)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s168720054', 's493477252', 's413788491']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 26, 28]
p03423
u960513073
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input())%%3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s156483220', 's675829599']
[2940.0, 2940.0]
[17.0, 17.0]
[22, 22]
p03423
u966891144
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['num = int(input())\nif num < 3:\n ans = 0\nelse:\n ans = num/3\nprint(ans)', 'num = int(input())\nif num < 3:\n ans = 0\nelse:\n ans = num/3', 'num = int(input())\nif num < 3:\n ans = 0\nelse:\n ans = num//3\nprint(int(ans))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s024846023', 's534465797', 's901553701']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[71, 60, 77]
p03423
u967835038
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\ns=input()\nif("Y" in s):\n print("Four")\nelse:\n print("Three")', 'N=int(input())\nprint(int(N/3))']
['Runtime Error', 'Accepted']
['s587372223', 's921734952']
[2940.0, 3316.0]
[17.0, 20.0]
[85, 30]
p03423
u974935538
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N=int(input())\nS=[input() for _ in range(N)]\n\nMARCH=[0]*5\nfor i in range(N):\n if S[i][0]=="M":\n MARCH[0]+=1\n elif S[i][0]=="A":\n MARCH[1]+=1\n elif S[i][0]=="R":\n MARCH[2]+=1\n elif S[i][0]=="C":\n MARCH[3]+=1\n elif S[i][0]=="H":\n MARCH[4]+=1\n\nans=0\nfor i in range(3):\n for j in range(i+1,4):\n for k in range(j+1,5):\n ans+=MARCH[i]*MARCH[j]*MARCH[k]\nprint(ans)\n', 'N = int(input())\nans = N//3\nprint(ans)']
['Runtime Error', 'Accepted']
['s099943475', 's875282233']
[3064.0, 2940.0]
[17.0, 17.0]
[387, 38]
p03423
u976226963
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['s = input()$\nreturn int(s)//3$\n', 's = input()\nprint(int(s)//3)']
['Runtime Error', 'Accepted']
['s443782862', 's023988575']
[2940.0, 2940.0]
[17.0, 17.0]
[31, 28]
p03423
u977349332
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['N = int(input())\nprint(N/3)', 'print(int(input()) // 3)']
['Wrong Answer', 'Accepted']
['s701441989', 's630728667']
[2940.0, 2940.0]
[17.0, 17.0]
[27, 24]
p03423
u978494963
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['a = int(input())\nprint(a/3)', 'a = int(input())\nprint(a//3)']
['Wrong Answer', 'Accepted']
['s445611940', 's394755943']
[2940.0, 2940.0]
[17.0, 17.0]
[27, 28]
p03423
u979078704
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['a = map(int,input())\na % 3 = b\nprint((a-b)/3)', 'a = int(input())\nb = a % 3\nprint(int((a - b) / 3))']
['Runtime Error', 'Accepted']
['s065148632', 's315352594']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 50]
p03423
u981356974
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['int x\nraw_input(x)\nint y = x%3\nprint(y)', 'x = int(input())\ny = int(x/3)\nprint(y)\n']
['Runtime Error', 'Accepted']
['s115893066', 's585745106']
[2940.0, 2940.0]
[17.0, 17.0]
[39, 39]
p03423
u989326345
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['import math\nN=int(input())\nif N<3:\n n=0\nelse:\n n=math.ceil(N/3)\nprint(n)\n', 'N=int(input())\nprint(N//3)\n']
['Wrong Answer', 'Accepted']
['s298868254', 's803308357']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 27]
p03423
u993461026
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['print(int(input)//3)', 'print(int(input())//3)']
['Runtime Error', 'Accepted']
['s433745836', 's028900071']
[2940.0, 2940.0]
[17.0, 17.0]
[20, 22]
p03423
u994988729
2,000
262,144
There are N students in a school. We will divide these students into some groups, and in each group they will discuss some themes. You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible. Divide the students so that the number of groups consisting of three or more students is maximized.
['n=int(input())\nif n<3:\n print(0)\nelse:\n from math import ceil\n print(ceil(n/3))', 'n=int(input())\nfrom math import floor\nprint(floor(n/3))']
['Wrong Answer', 'Accepted']
['s895473203', 's029346812']
[2940.0, 2940.0]
[17.0, 18.0]
[82, 55]