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
p03101
u430508516
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-H*w-W*h+min(w,h))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(h*W+w*H-min(h,w))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s074689172', 's735863333', 's837096566']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[85, 81, 76]
p03101
u430937688
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = input().split()\nh, w = input().split()\n\ntotal = H * W\nnum_del = h * W + H * w - h * w\nprint(total - num_del)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n \ntotal = H * W\nnum_del = h * W + H * w - h * w\nprint(total - num_del)']
['Runtime Error', 'Accepted']
['s028204468', 's579664873']
[2940.0, 2940.0]
[18.0, 17.0]
[115, 136]
p03101
u432333240
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
["H, W = input().split(' ')\nh, w = input().split(' ')\nH = int(H)\nW = int(W)\nh = int(w)\nw = int(w)\n\nprint(h*W+H*w-h*w)", "H, W = input().split(' ')\nh, w = input().split(' ')\nH = int(H)\nW = int(W)\nh = int(h)\nw = int(w)\n \nprint(H*W - h*W - (H - h)*w)"]
['Wrong Answer', 'Accepted']
['s709509213', 's689037669']
[3064.0, 3060.0]
[17.0, 18.0]
[115, 126]
p03101
u434282696
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import numpy as np\nN,M,C = (int(j) for j in input().split())\nB = [int(j) for j in input().split()]\nlist = [[0]* M]*N\nfor j in range(0,N):\n list[j] = [int(k) for k in input().split()]\ncount = 0\nfor j in range(0,N):\n if np.sum(np.array(list[j]) * np.array(B)) + C > 0:\n count = count + 1\nprint(count)', 'H,W = (int(j) for j in input().split())\nh,w = (int(j) for j in input().split())\nprint(h*W + H*w - h*w)', 'H,W = (int(j) for j in input().split())\nh,w = (int(j) for j in input().split())\nprint(H*W-(h*W + H*w - h*w))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s281370922', 's770849511', 's726639333']
[12432.0, 2940.0, 2940.0]
[150.0, 17.0, 19.0]
[315, 102, 108]
p03101
u434872492
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['N, M, C = map(int,input().split())\n\nB = list(map(int,input().split()))\nA = []\n\nfor i in range(N):\n A.append(list(map(int,input().split())))\n\ncount = 0\nfor i in range(N):\n x = 0\n for j in range(M):\n x += A[i][j] * B[j]\n if (x+C) > 0:\n count += 1\n\nprint(count)', 'H,W = int(input()),int(input())\nh,w = int(input()),int(input())\n\nans = (H - h) * (W - w)\nprint(ans)\n', 'N, M, C = map(int,input().split())\n\nB = list(map(int,input().split()))\nA = []\n\nfor i in range(N):\n A.append(list(map(int,input().split())))\n\ncount = 0\nfor i in range(N):\n x = 0\n for j in range(M):\n x += A[i][j] * B[j]\n if (x+C) > 0:\n count += 1\n\nprint(count)', 'H,W = int(input()),int(input())\nh,w = int(input()),int(input())\n\nsum = H*W\nans = sum - h*W - w*H + (h*w)\n\nprint(ans)', 'H, W = map(int,input().split())\nh, w = map(int,input().split())\nans = H*W -(h*W+w*H) + h*w\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s108504477', 's196963497', 's250663300', 's574016415', 's871031413']
[3188.0, 2940.0, 3064.0, 2940.0, 2940.0]
[18.0, 23.0, 17.0, 17.0, 17.0]
[284, 100, 284, 116, 101]
p03101
u437215432
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['# ABC121A\n\nH, W, h, w = map(int, input().split())\n#print(H*W-h*W-H*w+ h*w)\nprint((H-h)*(W-w))\n', '# ABC121A\n\nH, W = map(int, input().split())\nh, w = map(int, input().split())\n#print(H*W-h*W-H*w+ h*w)\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Accepted']
['s217243358', 's734747260']
[2940.0, 2940.0]
[18.0, 17.0]
[94, 121]
p03101
u439392790
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['n,m,c=map(int,input().split())\nb=list(map(int,input().split()))\na=[list(map(int,input().split())) for d in range(n)]\nans=0\nfor i in range(n):\n C=c\n for j in range(m):\n C=C+a[i][j]*b[j]\n if C>0:\n ans=ans+1\nprint(ans)\n', 'n,m,c=map(int,input().split())\nb=list(map(int,input().split()))\na=[list(map(int,input().split())) for i in range(n)]\nans=0\nfor i in range(n):\n C=c\n for j in range(m):\n C=C+a[i][j]*b[j]\n if C>0:\n ans=ans+1\nprint(ans)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s096599278', 's884491697', 's914762801']
[3060.0, 3060.0, 2940.0]
[18.0, 18.0, 17.0]
[229, 228, 76]
p03101
u440478998
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\n\n print(max(H*W-h*W-(H-h)*w,0))', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint(max(H*W-h*W-(H-h)*w,0))']
['Runtime Error', 'Accepted']
['s344222669', 's803554984']
[8892.0, 9080.0]
[29.0, 26.0]
[93, 92]
p03101
u440949328
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W, h, w = (int(i) for i in input().split())\n\ndef whiecells(H, W, h, w):\n\tans = H * W - (h*W + w*(H-h))\n\treturn ans\n\nprint(ans)\n', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n\ndef whiecells(H, W, h, w):\n\tans = H * W -(h*W + w*(H-h))\n\treturn ans\n\nprint(ans)\n', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n\nans = H * W - (h*W + w*(H-h))\nprint(ans)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s034841818', 's245984565', 's195349567']
[2940.0, 2940.0, 2940.0]
[18.0, 19.0, 18.0]
[130, 160, 120]
p03101
u442581202
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\n\nprint(h*W+w*H-h*w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\n\nprint(H*W-h*W-w*H+h*w)\n']
['Wrong Answer', 'Accepted']
['s723168771', 's431620508']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 82]
p03101
u446828107
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nprint((H-1)*(W-1))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))']
['Wrong Answer', 'Accepted']
['s351077007', 's771928322']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 84]
p03101
u450983668
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W,h,w=map(int,open(0).read().split())\nprint(W*h+H*w-h*w)', 'H,W,h,w=map(int,open(0).read().split());print((H-h)*(W-w))']
['Wrong Answer', 'Accepted']
['s883952702', 's102472735']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 58]
p03101
u452070976
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-H*h-W*w+h*w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-H*w-W*h+h*w)']
['Wrong Answer', 'Accepted']
['s604597977', 's485310748']
[2940.0, 2940.0]
[18.0, 19.0]
[89, 89]
p03101
u453526259
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = (int(i) for i in input().split())\nh,w = (int(i) for i in input().split())\n\n#calc\nr = H-h\nprint((h*W)-(h*w))', 'H,W = (int(i) for i in input().split())\nh,w = (int(i) for i in input().split())\n\n#calc\nr = H-h\nprint((r*W)-(r*w))']
['Wrong Answer', 'Accepted']
['s053904497', 's494628565']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 113]
p03101
u453642820
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input(),split())\nh,w=map(int,input(),split())\nprint(H*W-h*W-w*(H-h))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-h*W-w*(H-h))']
['Runtime Error', 'Accepted']
['s135403840', 's579122367']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 80]
p03101
u456877307
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['# coding: utf-8\n# Your code here!\n\nN, M = (int(i) for i in input().split()) \nAB=[list(map(int,input().split())) for _ in range(N)]\n\nAB.sort()\n\n\nmoney = 0\nfor a, b in AB:\n\n # print(M) \n if M==0:\n break\n elif b < M:\n # print(a*xb)\n money += a*b\n M -= b\n elif b >= M:\n # print(M)\n money += M*a\n M = 0\n # print(M, money)\nprint(money)\n ', 'H, W = (int(i) for i in input().split())\nh, w = (int(i) for i in input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s845267925', 's124409701']
[3060.0, 2940.0]
[18.0, 17.0]
[424, 100]
p03101
u464689569
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a,b,c,d=map(int,input().split())\nprint (a*b-(b*c+a*d-c*d))', 'a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\nprint (a*b-(b*c+a*d-c*d))', 'a=input()\nb=input()\nc=input()\nd=input()\n\naa=int(a)\nbb=int(b)\ncc=int(c)\ndd=int(d)\nprint (aa*bb-(bb*cc+aa*dd-cc*dd))', 'a=input()\nb=input()\nc=input()\nd=input()\n\naa=int(a)\nbb=int(b)\ncc=int(c)\ndd=int(d)\nprint (aa*bb-(bb*cc+aa*dd-cc*dd))', 'a,b=map(int,input().split())\nc,d=map(int,input().split())\nprint ((a-c)*(b-d))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s191574808', 's273949636', 's505664462', 's811183547', 's924737433']
[2940.0, 2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 19.0, 17.0]
[58, 85, 114, 114, 77]
p03101
u465101448
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import numpy as np\nM=np.zeros((H,W))\nH,W=[int(x) for x in input().split()]\nh,w=[int(x) for x in input().split()]\n\nfor n in range(h):\n print\n M[n]=1\nfor m in range(w):\n M.T[m]=1\n \nprint(len(M[M==0]))', 'import numpy as np\nM=np.zeros((H,W))\nH,W=[int(x) for x in input().split()]\nh,w=[int(x) for x in input().split()]\n\nfor n in range(h):\n print\n M[n]=1\nfor m in range(w):\n M.T[m]=1\n \nlen(M[M==0])', 'import numpy as np\nH,W=[int(x) for x in input().split()]\nh,w=[int(x) for x in input().split()]\n\nM=np.zeros((H,W))\n\nfor n in range(h):\n print\n M[n]=1\nfor m in range(w):\n M.T[m]=1\n \nprint(len(M[M==0]))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s204688808', 's732272059', 's008827782']
[21692.0, 17604.0, 12436.0]
[301.0, 289.0, 158.0]
[218, 211, 220]
p03101
u467307100
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\nprin((H-h)*(W-w))', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\nprint((H-1)*(w-1)-(h-1)*(w-1))', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s091844230', 's476110247', 's300388966']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[79, 92, 82]
p03101
u472696272
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint(H*W-h*H-w*W+h*w)', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\nprint(H*W-h*W-w*H+h*w)\n']
['Wrong Answer', 'Accepted']
['s443867050', 's239031824']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 85]
p03101
u477977638
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Accepted']
['s094225447', 's990865707']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 77]
p03101
u485566817
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(h*W + H*w - h*w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H*W - (h*W + H*w - h*w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h) * (W-w))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s395100907', 's622461088', 's575195289']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[88, 95, 86]
p03101
u485716382
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
["import numpy as np\n\nfrom sys import exit\n\ndef main():\n A, B = map(int, input().split(' '))\n values = range(A, B+1)\n # values = []\n\n # for n in N:\n # values.append('{:043b}'.format(n))\n\n values = np.array(values)\n for i, value in enumerate(values):\n if i == 0:\n result = value\n else:\n result = np.bitwise_xor(result, value)\n print(int(result))\n \n # if len(values) == 1:\n # print(int(values[0], 2))\n # return\n\n # result = ''\n\n # if len(values) % 2 == 1:\n # for n in range(43):\n \n # for value in values:\n # if value[n] == '0':\n \n\n \n # result += '1'\n # else:\n # result += '0'\n\n # else:\n # for n in range(43):\n \n\n # for value in values:\n # if value[n] == '0':\n \n\n \n # result += '0'\n # else:\n # result += '1'\n # print(int(result, 2))\n \nmain()\n\n", "def main():\n H, W = map(int, input().split(' '))\n h, w = map(int, input().split(' '))\n \n a = H*W\n b = (h * W) + (w * H) - h * w\n print(a - b)\n \n\n\nmain()"]
['Runtime Error', 'Accepted']
['s933894556', 's378253922']
[12484.0, 2940.0]
[147.0, 17.0]
[989, 159]
p03101
u492447501
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-(h+w-1))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-(h*W+H*w)+h*w)\n']
['Wrong Answer', 'Accepted']
['s047583726', 's835727438']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 92]
p03101
u494871759
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['h,w = list(map(int,input().split())\nh1,w1 = list(map(int,input().split())\n\nprint((h-h1)*(w-w1))\n', 'h,w = list(map(int,input().split())\nh1,w1 = list(map(intinput().split())\n\nprint((h-h1)*(w-w1))', 'h,w = list(map(int,input().split()))\nh1,w1 = list(map(int,input().split()))\n\nprint((h-h1)*(w-w1))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s301949401', 's322114307', 's029981933']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[96, 94, 98]
p03101
u498575211
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['(a, b) = list(map(int, input().split()))\n(c, d) = list(map(int, input().split()))\n\nprint(str((a-c)*(b-d))))', 'input1 = input().split()\ninput2 = input().split()\n\nW = int(input1[0])\nw = int(input2[0])\nH = int(input1[1])\nh = int(input2[1])\n\nprint(str((W-w)*(H-h)))']
['Runtime Error', 'Accepted']
['s252362295', 's893647032']
[2940.0, 3060.0]
[17.0, 17.0]
[107, 151]
p03101
u506858457
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nptint((H-h)*(W-w))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nptint((H-h)*((W-w))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s139256569', 's662454851', 's286205457']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[76, 77, 76]
p03101
u507116804
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['A,B=map(int,input().split())\na,b=map(int,input().split())\n\nA-a=x\nB-b=y\n\nprint(int(x*y))', 'A,B=map(int,input().split())\na,b=map(int,input().split())\n\nA-a=m\nB-b=n\n\nprint(int(m*n))', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s123761511', 's155417623', 's904967297']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[87, 87, 80]
p03101
u509830642
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import sys\ninput = sys.stdin.readline\ndef print_ans(H, W, h, w):\n """Test Case\n >>> print_ans(3, 2, 2, 1)\n 1\n >>> print_ans(5, 5, 2, 3)\n 6\n >>> print_ans(2, 4, 2, 4)\n 0\n """\n print((H - h) * (W -w))\n\n\nif __name__ == \'__main__\':\n H, W = map(int, input().rstrip().split())\n h, w = map(int, input().rstrip().split())\n print_ans(b)\n\n\n', 'import sys\ninput = sys.stdin.readline\ndef print_ans(H, W, h, w):\n """Test Case\n >>> print_ans(3, 2, 2, 1)\n 1\n >>> print_ans(5, 5, 2, 3)\n 6\n >>> print_ans(2, 4, 2, 4)\n 0\n """\n print((H - h) * (W -w))\n\n\nif __name__ == \'__main__\':\n H, W = map(int, input().rstrip().split())\n h, w = map(int, input().rstrip().split())\n print_ans(H, W, h, w)\n\n\n']
['Runtime Error', 'Accepted']
['s720002672', 's338046233']
[3060.0, 3060.0]
[17.0, 18.0]
[367, 376]
p03101
u511449169
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
["H, W = map(str, input().split(' '))\nh, w = map(str, input().split(' '))\n\nprint(H*W - (h*W + w*H - h*w))", "H, W = map(int, input().split(' '))\nh, w = map(int, input().split(' '))\n\nprint(H*W - (h*W + w*H - h*w))"]
['Runtime Error', 'Accepted']
['s900705151', 's306640890']
[2940.0, 2940.0]
[18.0, 17.0]
[103, 103]
p03101
u512138205
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['n, m, c = map(int, input().split())\nb = list(map(int, input().split()))\n\ncount = 0\nfor i in range(0, n):\n a = list(map(int, input().split()))\n s = 0\n for j in range(0, m):\n s += a[j] * b[j]\n if s + c > 0:\n count += 1\nprint(count)\n', 'H, W, h, w = map(int, input().split())\nprint((H - h) * (W - w))\n', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H - h) * (W - w))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s285641721', 's695121527', 's539553075']
[3060.0, 2940.0, 3060.0]
[17.0, 20.0, 20.0]
[256, 64, 91]
p03101
u512474614
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['listA = [] \nwhile True:\n try:\n listA.append(list(map(int,input().split())))\n\n except:\n break;\n\n\nfield = []\n\nfor(int i = 0; i < listA[0][0]; i++)\n field.appnd([])\n \n for(int i = 0; i < listA[0][1]; i++)\n field[i].appnd(0)\n \nfor(int i = 0; i < listA[1][0]; i++)\n for(int j = 0; j < listA[1][1]; j++)\n field[i][j] = 1\n \ncnt = 0\nfor item in field:\n for i in item:\n cnt++\n \nprint(cnt)', 'listA = [] \nwhile True:\n try:\n listA.append(list(map(int,input().split())))\n\n except:\n break;\n\nH = listA[0][0]\nW = listA[0][1]\nh = listA[1][0]\nw = listA[1][1]\n\nans = (H - h) * (W - w)\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s388645379', 's087825402']
[2940.0, 3060.0]
[17.0, 17.0]
[498, 249]
p03101
u513081876
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H*W - h*w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H*W - (W*h + H*w - h*w))\n']
['Wrong Answer', 'Accepted']
['s723046048', 's988325803']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 97]
p03101
u516554284
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*w+W*h-h*w)\n', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-(H*h+W*w-h*w))\n', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*h+W*w-h*w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-(H*w+W*h-h*w))\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s269593399', 's454248490', 's853758463', 's716441675']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[77, 83, 76, 83]
p03101
u517447467
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = list(map(int, input()))\nh, w = list(map(int, input()))\n\nprint(int((H-h)*(W-w)))', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n \nprint(int((H-h)*(W-w)))']
['Runtime Error', 'Accepted']
['s139303275', 's712512337']
[2940.0, 2940.0]
[18.0, 18.0]
[86, 103]
p03101
u519996359
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['input_lines = sys.stdin.read()\n\n[H W] = input_lines[0].split()\n[h w] = input_lines[1].split()\n\nans = H*W-h*W-H*w+h*w\nprint(ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\n\nans = H*W-h*W-H*w+h*w\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s551967141', 's713841576']
[3064.0, 2940.0]
[17.0, 17.0]
[127, 98]
p03101
u522266410
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H=input()\nh=input()\nW=input()\nw=input()\nx=(int(H)-int(h))*(int(W)-int(w))', 'H=input()\nh=input()\nW=input()\nw=input()\nx=(int(H)-int(h))*(int(W)-int(w))\nptint(x)', 'H=input(), W=input()\nH=int(H),W=int(W)\nh=input(),w=input() \nh=int(h),w=int()\nprint((H-h)*(W-w))', 'x=(H-h-)*(W-w)', 'H=input()\nH=int(H)\nh=input()\nh=int(h)\nW=input()\nW=int(W)\nw=input()\nw=int(w)\nprint((H-h)*(W-w))', 'x=(W-w)*(H-h)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s215517775', 's267297171', 's330936851', 's340479501', 's342910290', 's763412382', 's689548138']
[2940.0, 3064.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[73, 82, 95, 14, 94, 13, 120]
p03101
u524994220
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['length, width = int(input()).split()\nx, y = int(input()).split()\n\nprint((length-x) * (width-y))', 'length, width = input().split()\nlength, width = int(length),int(width)\nx, y = input().split()\nx,y = int(x),int(y)\n \nprint((length-x) * (width-y))']
['Runtime Error', 'Accepted']
['s585477993', 's741717916']
[2940.0, 3060.0]
[18.0, 17.0]
[95, 145]
p03101
u525227429
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['A, B = map(int, input().split())\n\ndef xor(n):\n if n % 2 == 0:\n if int(n / 2) % 2 == 0:\n return n\n else:\n return n ^ 1\n else:\n if int((n - 1) / 2) & 2 == 0:\n return 0\n else:\n return 1\n\nprint(xor(A - 1) ^ xor(B))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H - h) * (W - w))']
['Wrong Answer', 'Accepted']
['s405253312', 's579952242']
[3060.0, 2940.0]
[17.0, 17.0]
[244, 90]
p03101
u525404340
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['A, B = map(int, input().split())\nnum = B - A\nresult = (num // 2) % 2\nif num % 2 == 1:\n result ^= (B-1) ^ B\nelse:\n result ^= B\nprint(result)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nresult = H * W - (h * W + H * w - h * w)\nprint(result)']
['Wrong Answer', 'Accepted']
['s417410423', 's259733315']
[2940.0, 2940.0]
[17.0, 18.0]
[141, 121]
p03101
u527261492
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nH*W-(h*W+w*H-h*w)', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nans = 0\nans = H*W-(h*W+w*H-h*w)\nans', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nans = H*W-(h*W+w*H-h*w)\nans\n', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint(H*W-(h*W+w*H-h*w))\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s129966799', 's150542791', 's497696622', 's523654327']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[80, 98, 91, 88]
p03101
u547748135
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a = [int(i) for i in input().split()] \n\nb = a[1]*a[2] - (a[3]*a[2] + a[4]*(a[1]-1[3]))\nprint(b)', 'a = [int(i) for i in input().split()] \nb = [int(i) for i in input().split()] \n\n\nc = a[0]*a[1] - ( b[0]*a[1] + b[1]*(a[0]-b[0]) )\nprint(c)']
['Runtime Error', 'Accepted']
['s230741269', 's988668842']
[3064.0, 3064.0]
[17.0, 17.0]
[95, 137]
p03101
u550535134
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input())\nh, w = map(int, input())\nprint((H-h)*(W-w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Accepted']
['s269782897', 's497438305']
[2940.0, 2940.0]
[17.0, 18.0]
[68, 85]
p03101
u552502395
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = mat(int, input().split())\nh, w = mat(int, input().split())\nprint((H-h)*(W-w))\n', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Accepted']
['s288633580', 's819097376']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 85]
p03101
u553070631
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=(int,input().split())\nh,w=(int,input().split())\nS=H*W\nprint(S-(H*w+W*h)+w*h)\n\n', 'H,W=(int,input().split())\nh,w=(int,input().split())\nS=H*W\nprint(S-(H*w+W*h)+w*h)\n', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nS=H*W\nHw=H*w\nWh=W*h\nwh=w*h\nprint(S-Hw-Wh+wh)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s557351230', 's761310770', 's971653962']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[149, 81, 103]
p03101
u556225812
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['N,M,C=map(int,input().split()) \nB=list(map(int,input().split()))\nA =[list(map(int,input().split()))for i in range(N)]\nans=0\nfor i in range(N):\n X=0\n for j in range(M):\n X+=(A[i][j]*B[j])\n X=X+C\n if 0 < X:\n ans = ans+1\nprint(ans)\n \n', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nB=H*W-h*w\nprint(B)', 'N,M,C=map(int,input().split()) \nB=list(map(int,input().split()))\nA =[list(map(int,input().split()))for i in range(N)]\nans=0\nfor i in range(N):\n X=0\n for j in range(M):\n X += A[i][j]*B[j]\n X=X+C\n if 0 < X:\n ans += 1\nprint(ans)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint((H-h)*(W-w))']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s017071659', 's616528797', 's631070016', 's684343988']
[3060.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[261, 76, 252, 85]
p03101
u556371693
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W=int(HW[0]),int(HW[1])\nh, w=int(hw[0]),int(hw[1])\nans=(W-w)*(H-h)\nprint(ans)', 'H, W=int(HW[0]),int(HW[1])\nh, w=int(hw[0]),int(hw[1])\nprint((W-w)*(H-h))', 'H, W=map(int, input().split())\nh, w=map(int, input().split())\nans=(W-w)*(H-h)\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s470977844', 's658917221', 's294225983']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[80, 72, 88]
p03101
u558059388
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=(int(x) for x in input().split())\nh,w=(int(x) for x in input().split())\n\nprint((H*W)-(h*w))', 'H,W=(int(x) for x in input().split())\nh,w=(int(x) for x in input().split())\n\nprint((H*W)+(h*w)-(H*w)-(h*W))']
['Wrong Answer', 'Accepted']
['s005224592', 's471386867']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 107]
p03101
u560889512
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a,b=map(int,input().split())\nc,d=map(int,input().split())\nres=a*b-c*b-d*a+a*d\nprint(res)', 'a,b=map(int,input().split())\nc,d=map(int,input().split())\nres=a*b-c*b-d*a+c*d\nprint(res)\n']
['Wrong Answer', 'Accepted']
['s620881148', 's316084259']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 89]
p03101
u565901164
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a = list(map(int, input().split()))\nb = list(map(int, input().split()))\n\noutput = (a(0)-b(0))*(a(1)*b(1))\nprint output', 'n = int(input())\nlines = [[int(i) for i in input().split()] for i in range(n)]\ne = map(int, lines().split()) \noutput =(e(0)-e(2))*(e(1)-e(3))\nprint output', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\noutput = (H-h)*(W-w)\nprint output', 'n = int(input())\ne = [[int(i) for i in input().split()] for i in range(n)]\noutput =(e(0)-e(2))*(e(1)-e(3))\nprint output', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\noutput = (H-h)*(W-w)\nprint (output)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s062928635', 's162338949', 's326708170', 's890876709', 's051427811']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[118, 154, 99, 119, 101]
p03101
u568426505
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a,b=map(input().split(" "))\nc,d=map(input().split(" "))\nprint((a-c)*(b-d))', 'a,b=map(int,input().split(" "))\nc,d=map(int,input().split(" "))\nprint((a-c)*(b-d))']
['Runtime Error', 'Accepted']
['s979635934', 's500970790']
[9096.0, 9160.0]
[25.0, 25.0]
[74, 82]
p03101
u580093517
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint(H*W - (h*W + H*w - min(h,w)))', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\nprint((W-w)*(H-h))']
['Wrong Answer', 'Accepted']
['s296814358', 's652233665']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 80]
p03101
u580236524
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['S = list(map(int, input().split()))\ns = list(map(int, input().split()))\n\norigin= S[0]*S[1]\ndeduction = (S[1]*s[0])+((S[1]-s[0])*s[1])\n\nans= origin - deduction\nprint(ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\n\nans=(H*W)-(H*w)-(w*H-h*w)\nprint(ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\n\nans=(H*W)-(h*W)-(w*H-h*w)\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s152290127', 's713932495', 's535697844']
[3060.0, 3064.0, 2940.0]
[17.0, 19.0, 17.0]
[169, 101, 101]
p03101
u582396808
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['N, M = map(int, input().split(" "))\nA_list = []\nB_list = []\ntotal = 0\n\nfor i in range(N):\n A, B = map(int, input().split(" "))\n A_list.append(A)\n B_list.append(B)\n\nz = list(zip(A_list, B_list))\nz.sort()\n\nfor a, b in z:\n if b > M:\n total += M * a\n break\n else:\n total += b * a\n M -= b\n\nprint(total)', 'H, W = map(int, input().split(" "))\nh, w = map(int, input().split(" "))\n\nresult = H * W - (h * W + w * (H - h))\n\nprint (result)']
['Runtime Error', 'Accepted']
['s041509293', 's067833555']
[3064.0, 2940.0]
[17.0, 17.0]
[340, 127]
p03101
u588633699
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input())\nh, w = map(int, input())\n\nprint((H-h)*(W-w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s728196004', 's919647688']
[2940.0, 3060.0]
[18.0, 20.0]
[69, 85]
p03101
u590891496
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint(H*W - h*w)\n', 'H,W = int(input().split())\nh,w = int(input().split())\n\nprint(H*W - h*w)', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nprint((H-h) * (W-w))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s308512644', 's979614849', 's512305401']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[80, 71, 84]
p03101
u593761424
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import numpy as np\n\n\nN, M = map(int, input().split())\nA, B = list(), list()\nfor i in range(N):\n a, b = map(int, input().split())\n A.append(a)\n B.append(b)\nA = np.array(A)\nB = np.array(B)\n\nn_bins = 0\ncost = 0\nindices = np.argsort(A)\nfor idx in indices:\n print(idx, B[idx], A[idx] * B[idx])\n # enough bins @idx\n if n_bins + B[idx] > M:\n cost += A[idx] * (M - n_bins)\n break\n # buy all bins\n else:\n n_bins += B[idx]\n cost += A[idx] * B[idx]\nprint(cost)', 'import numpy as np\n\n\nH, W = map(int, input().split())\nh, w = map(int, input().split())\nboard = np.ones((H, W), dtype=int)\nboard[0:h] = 0\nboard[:, 0:w] = 0\nprint(board.sum())']
['Runtime Error', 'Accepted']
['s772898261', 's574004385']
[12484.0, 12468.0]
[156.0, 151.0]
[501, 173]
p03101
u598229387
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['h, w = map(int,input().split())\nh1, w1 = map(int,input().split())\nprint(h*w - (h + w - 1))', 'h, w = map(int,input().split())\nh1, w1 = map(int,input().split())\nprint((h-h1)*(w-w1))']
['Wrong Answer', 'Accepted']
['s015487050', 's647058534']
[2940.0, 3064.0]
[17.0, 23.0]
[90, 86]
p03101
u598720217
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int, input().split(" "))\nh,w = map(int, input().split(" "))\n\nprint(H*W-H*w-w*H+w*h)\n', 'H,W = map(int, input().split(" "))\nh,w = map(int, input().split(" "))\n\nprint(H*W-H*w-W*h+w*h)\n']
['Wrong Answer', 'Accepted']
['s581422787', 's242648187']
[2940.0, 2940.0]
[17.0, 20.0]
[94, 94]
p03101
u598726179
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n\nwhite = H*W\nif h \nblack = h*W + w*(H-h)\n\nprint(white-black)', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n\nwhite = H*W\nblack = h*W + (w-h)*H\n\nprint(white-black)', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\n\nwhite = H*W\nblack = h*W + w*(H-h)\n\nprint(white-black)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s407320924', 's446677274', 's858219890']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[138, 132, 132]
p03101
u600261652
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H W = map(int, input().split())\nh w = map(int, input().split())\nprint((H-h)*(W-w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s191013066', 's792463787']
[2940.0, 3064.0]
[17.0, 18.0]
[82, 84]
p03101
u609968450
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint(HW-hW-Hw+hw)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint(H*W-h*w)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint(H*W-h*W-H*w+h*w)\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s100431967', 's293169554', 's429720158']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 18.0]
[82, 78, 87]
p03101
u610473220
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint(H*w+h*W-h*w)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint(H*W-H*w-h*W+h*w)']
['Wrong Answer', 'Accepted']
['s689564359', 's555589354']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 86]
p03101
u612721349
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['h, w = map(int,input().split())\nx, y = map(int, input().split())\nprint(h*w - h*x - w*y + x*y)', 'h, w = map(int,input().split())\nx, y = map(int, input().split())\nprint(h*w - h*y - w*x + x*y)']
['Wrong Answer', 'Accepted']
['s561709675', 's427497482']
[2940.0, 2940.0]
[18.0, 17.0]
[93, 93]
p03101
u613401788
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a, b = map(int, input().split())\nh, w = map(int, input().split())\n\nprint((H-h)*(W-w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s482517628', 's403979805']
[2940.0, 2940.0]
[18.0, 17.0]
[85, 85]
p03101
u623036684
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import numpy as np\n\nN, M, C = map(int, input().split())\nM=[int(x) for x in input().split()]\nnlist=[]\n\nfor i in range(N):\n nlist.append([int(x) for x in input().split()])\n\nnlist=np.array(nlist)\nM= np.array(M)\nans=(nlist*M+C).sum(axis=1)\nprint((ans>0).sum())', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))\n ']
['Runtime Error', 'Accepted']
['s877925499', 's153272739']
[12448.0, 2940.0]
[149.0, 18.0]
[259, 89]
p03101
u623687794
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-h*w)', 'a,b=map(int,input().split())\nc,d=map(int,input().split())\nprint((a-c)*(b-d))']
['Wrong Answer', 'Accepted']
['s665560733', 's683159086']
[2940.0, 2940.0]
[17.0, 18.0]
[72, 76]
p03101
u626228246
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().split())\nh,w = map(int,input().split())\ntot = H*W \nprint(tot - {(h*W)+(w*H)-(h*w)})', 'H,W = map(int,input().split())\nh,w = map(int,input().split()) \nprint(H*W - ((h*W)+(w*H)-(h*w)))\n']
['Runtime Error', 'Accepted']
['s824299207', 's688407855']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 96]
p03101
u626337957
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-(H*h+W*w-h*w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H*W-(H*w+W*h-h*w))\n']
['Wrong Answer', 'Accepted']
['s761568982', 's490670413']
[2940.0, 3316.0]
[17.0, 21.0]
[91, 92]
p03101
u626881915
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import math\ndef I():\n return input()\ndef II():\n return int(input())\ndef MII():\n return map(int, input().split())\ndef LMII():\n return list(map(int, input().split()))\ndef P(s):\n return print(s)\n\nimport math\na, b , h, m = map(int, input().split())\nxa = a * math.sin(h/6*math.pi)\nya = a * math.cos(h/6*math.pi)\nxb = b * math.sin(m/30*math.pi)\nyb = b * math.cos(m/30*math.pi)\nprint(math.sqrt((xa-xb)**2 + (ya-yb)**2))\na,b = MII()\nh,w = MII()\nprint((a-h)*(b-w))', 'import math\ndef I():\n return input()\ndef II():\n return int(input())\ndef MII():\n return map(int, input().split())\ndef LMII():\n return list(map(int, input().split()))\ndef P(s):\n return print(s)\n\na,b = MII()\nh,w=MII()\nP((a-h)*(b-w))']
['Runtime Error', 'Accepted']
['s760763513', 's597767261']
[3064.0, 3060.0]
[18.0, 17.0]
[460, 234]
p03101
u627234757
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nres = H * W - h * w\nprint(res)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nres = (H - h) * (W - w)\nprint(res)\n']
['Wrong Answer', 'Accepted']
['s729831977', 's925568213']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 101]
p03101
u627417051
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['A, B = list(map(int, input().split()))\n\nba = B - A \nif A % 2 == 0:\n\tja = "j0"\nelse:\n\tja = "j1"\n\nif B % 2 == 0:\n\tjb = "j0"\nelse:\n\tjb = "j1"\n\na = A\nb = B\na2 = ""\nb2 = ""\n\nif a == 0:\n\ta2 = "0"\nelse:\n\twhile True:\n\t\tif a % 2 == 0:\n\t\t\ta2 += "0"\n\t\telse:\n\t\t\ta2 += "1"\n\t\ta = int(a // 2)\n\t\tif a == 1:\n\t\t\ta2 += "1"\n\t\t\tbreak\nif b == 0:\n\tb2 = "0"\nelse:\n\twhile True:\n\t\tif b % 2 == 0:\n\t\t\tb2 += "0"\n\t\telse:\n\t\t\tb2 += "1"\n\t\tb = int(b // 2)\n\t\tif b == 1:\n\t\t\tb2 += "1"\n\t\t\tbreak\n\na2 += "0" * (len(b2) - len(a2))\nc2 = 0\n\nif a2[0] == "0":\n\tif ba % 4 == 2 or ba % 4 == 1:\n\t\tc2 += 1\n\telse:\n\t\tc2 += 0\n\nif a2[0] == "1":\n\tif ba % 4 <= 1:\n\t\tc2 += 1\n\telse:\n\t\tc2 += 0\n\nfor i in range(1, len(a2)):\n\tn = 0\n\tif a2[i] == "1":\n\t\tif ja == "j1":\n\t\t\tn += 1\n\n\tif b2[i] == "1":\n\t\tif jb == "j0":\n\t\t\tn += 1\n\n\tif n % 2 == 0:\n\t\tc2 += 0\n\telse:\n\t\tc2 += 2 ** i\n\nprint(c2)\n', 'H, W = list(map(int, input().split()))\nh, w = list(map(int, input().split()))\nprint((H - h) * (W - w))']
['Runtime Error', 'Accepted']
['s653206353', 's599736591']
[8860.0, 2940.0]
[2104.0, 18.0]
[823, 102]
p03101
u636162168
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\na=H*W\nprint(a-H*h-(H-h)*w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-W*h-(H-h)*w)']
['Wrong Answer', 'Accepted']
['s394041228', 's805966070']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 80]
p03101
u638150829
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w–map(int,input().split())\nprint(H*W-H*w-h*W+h*w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-H*w-h*W+h*w)\n']
['Runtime Error', 'Accepted']
['s631915256', 's456580968']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 81]
p03101
u639592190
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-H*w-W*h)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Wrong Answer', 'Accepted']
['s354062152', 's908906095']
[2940.0, 2940.0]
[18.0, 18.0]
[76, 76]
p03101
u641460756
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a=list(input().split())\nb=list(input(),split())\nc=int(a[0])\nd=int(a[1])\ne=int(b[0])\nf=int(b[1])\ng=c*d-d*e-c*f+e*f\nprint(g)', 'a=list(input().split())\nb=list(input().split())\nc=int(a[0])\nd=int(a[1])\ne=int(b[0])\nf=int(b[1])\ng=c*d-d*e-c*f+e*f\nprint(g)']
['Runtime Error', 'Accepted']
['s339061556', 's925324853']
[3060.0, 3060.0]
[18.0, 18.0]
[122, 122]
p03101
u647767910
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(h * W + H * w - h * w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H * W - (h * W + H * w - h * w))']
['Wrong Answer', 'Accepted']
['s384540366', 's405143560']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 104]
p03101
u653363401
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=int(input())\nh,w=int(input())\nprint((H-h)*(W-w))\n', 's1 = list(map(int, input().split()))\ns2 = list(map(int, input().split()))\nprint((s1[0]-s2[0])*(s1[1]-s2[1]))']
['Runtime Error', 'Accepted']
['s373009375', 's291092595']
[3064.0, 2940.0]
[18.0, 18.0]
[53, 108]
p03101
u653807637
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['h1, w1 = list(map(int, input().split()))\nh2, w2 = list(map(int, input().split()))\nprint((h1 - h2) * (w2 - w1))', 'h1, w1 = list(map(int, input().split()))\nh2, w2 = list(map(int, input().split()))\nprint((h1 - h2) * (w1 - w2))']
['Wrong Answer', 'Accepted']
['s314749280', 's419443774']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 110]
p03101
u658627575
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['N, M = map(int, input().split())\nl1 = []\nl2 = []\nans = 0\nrest = M\nfor i in (N+1):\n\tl1[i],l2[i] = map(int, input().split())\n\nwhile true:\n\tmin_index = l1.index(min(l1))\n\tans += (min(l1) * l2[min_index])\n\trest -= l2[min_index]\n\tif rest == 0:\n\t\tbreak\n\tl1.pop(min_index)\n\nprint(ans)', 'N, M = map(int, input().split())\n#N = 1\n#M = 1\nl1 = []\nl2 = []\nans = 0\nrest = M\nfor i in range(N):\n\ttemp1, temp2 = map(int, input().split())\n\t#temp1 = 1\n\t#temp2 = 1\n\tl1.append(temp1)\n\tl2.append(temp2)\n\nwhile True:\n\tmin_index = l1.index(min(l1))\n\tans += (min(l1) * l2[min_index])\n\trest -= l2[min_index]\n\tif rest <= 0:\n\t\tbreak\n\tl1.pop(min_index)\n\nprint(ans)', 'N, M, C = map(int, input().split())\nB = []\nA = []\n\nB.append(map(int, input().split()))\nfor i in range(N):\n\tA.append(list(map(int, input().split())))\n\n\nsum = 0\ncount = 0\n\nfor i in range(N):\n\tsum = 0\n\tfor j in range(M):\n\t\tsum += A[i][j]\n\t\tsum += B[j]\n\tsum += C\n\tif sum > 0:\n\t\tcount += 1\n\nprint(sum)', 'N, M = map(int, input().split())\nX = []\nfor i in range(N):\n\tX.append(list(map(int, input().split())))\n\n#Sorted by first element\nX.sort(key=lambda x:x[0])\ni = 0\ntotal = 0\nans = 0\n\nwhile i <= N-1:\n\ttotal += X[i][1]\n\tans += X[i][0] * X[i][1]\n\tif total > M:\n\t\tans -= X[i][0] * (total-M)\n\t\tbreak\n\ti += 1\nprint(ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\n\ntotal = H* W\nans = total - (H*h + W*w - h*w) \nprint (ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nans = H * W - (h+w-1)\nprint (ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\n\ntotal = H* W\nans = total - (H*w + W*h - h*w) \nprint (ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s198847254', 's433045661', 's448414665', 's463625246', 's727050982', 's910637034', 's921661437']
[3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0]
[278, 355, 296, 309, 122, 97, 122]
p03101
u658910361
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['HW = [int(i) for i in input().split()]\nhw = [int(i) for i in input().split()]\n\nprint((HW[0] - hw[0])(HW[1] - hw[1]))', 'HW = [int(i) for i in input().split()]\nhw = [int(i) for i in input().split()]\n\nprint((HW[0] - hw[0])*(HW[1] - hw[1]))']
['Runtime Error', 'Accepted']
['s509462331', 's383646128']
[9168.0, 8984.0]
[30.0, 30.0]
[116, 117]
p03101
u672898046
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(2*W+w*H-w*h)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\n\nprint(H*W-(h*W+H*w-h*w))']
['Wrong Answer', 'Accepted']
['s901612934', 's820757556']
[2940.0, 2940.0]
[17.0, 18.0]
[85, 92]
p03101
u677121387
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['a,b = map(int,input().split())\n\nif a%2 == 0 and b%2 == 0:\n ans = b^((b-a)//2)%2\nelif a%2 == 0 and b%2 != 0:\n ans = ((b-a+1)//2)%2\nelif a%2 != 0 and b%2 == 0:\n ans = a^b^((b-1-a)//2)%2\nelse:\n ans = a^(b-a//2)%2\n\nprint(ans)', 'H,W = map(int,input().split())\nh,w = map(int,input().split())\n\nans = (H-h)*(W-w)\nprint(ans)']
['Wrong Answer', 'Accepted']
['s716716221', 's102286349']
[3060.0, 2940.0]
[17.0, 17.0]
[233, 91]
p03101
u677705680
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['ni = lambda: int(ns())\nna = lambda: list(map(int, input().split()))\nns = lambda: input().rstrip() # ignore trailing spaces\n \nn, m = na()\nab = []\nfor i in range(n):\n ab.append(na())\nab.sort(key=lambda x: x[0])\n \nrem = m\nans = 0\nfor v in ab:\n buy = min(rem, v[1])\n ans += buy * v[0]\n rem -= buy\nprint(ans)', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s553226763', 's433056051']
[3064.0, 2940.0]
[20.0, 17.0]
[316, 82]
p03101
u685244071
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int input().split())\n\ns = (H - h) * (W - w)\n\nprint(s)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\ns = (H - h) * (W - w)\n\nprint(s)\n']
['Runtime Error', 'Accepted']
['s330636195', 's674020306']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 99]
p03101
u685662874
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nprint (H*W - H*h*w)', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nprint ((H-h)*w + (W-w)*(h-1))', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nprint (H*W - (h*w))', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nprint (H*W - (H-h)*(W-w))', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\ns = H * W \nb1 = h * W\nb2 = w * (H - h)\n\nprint(s - b1 - b2)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s163048936', 's217448154', 's269147317', 's545118445', 's788665291']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[80, 90, 80, 86, 120]
p03101
u687599294
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['x,y = input().split(),input().split()\nh,w,hh,ww = x[0],x[1],y[0],y[1]\nprint((h - hh) * (w - ww))', 'import sys\nx,y = input().split(),input().split()\nh,w,hh,ww = x[0],x[1],y[0],y[1]\nprint((h - hh) * (w - ww))', 'x,y = input().split(),input().split()\nh,w,hh,ww = int(x[0]),int(x[1]),int(y[0]),int(y[1])\nprint((h - hh) * (w - ww))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s334470618', 's603551770', 's613527521']
[2940.0, 3064.0, 3060.0]
[18.0, 17.0, 17.0]
[96, 107, 116]
p03101
u692514846
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['HW = input().split()\nhw = input().split\nprint((HW[0]-hw[0])*(HW[1]-hw[1]))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Accepted']
['s343916739', 's185228210']
[2940.0, 2940.0]
[18.0, 18.0]
[74, 84]
p03101
u696434658
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['h, w = map(int, input().split())\ny, x = map(int, input().split())\n\nprint(h * w - h * y - w * x + x * y)', 'h, w = map(int, input().split())\ny, x = map(int, input().split())\n\nprint(h * w - h * x - w * y + x * y)']
['Wrong Answer', 'Accepted']
['s853653112', 's083568402']
[2940.0, 2940.0]
[18.0, 17.0]
[103, 103]
p03101
u700929101
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['l = input().split(" ")\ns = input().split(" ")\n\nH = int(l[0])\nW = int(l[1])\nh = int(s[0])\nw = int(s[1])\n\nprint(HW-(wH + hW - wh))', 'l = input().split(" ")\ns = input().split(" ")\n\nH = int(l[0])\nW = int(l[1])\nh = int(s[0])\nw = int(s[1])\n\nprint(H*W-(w*H + h*W - w*h))']
['Runtime Error', 'Accepted']
['s159743809', 's950933438']
[3060.0, 3060.0]
[17.0, 17.0]
[128, 132]
p03101
u704252625
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['from functools import reduce\nN, M, C = map(int, input().split())\nB = map(int, input().split())\ncount = 0\nfor _ in range(N):\n if 0 < C + reduce(lambda p: p[0]*p[1], zip(map(int, input().split()), B)):\n count += 1\nprint(count)\n', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))\n']
['Runtime Error', 'Accepted']
['s948972119', 's507921804']
[3700.0, 2940.0]
[28.0, 17.0]
[235, 85]
p03101
u705418271
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint(H*W-h*w)', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H-h)*(W-w))']
['Wrong Answer', 'Accepted']
['s466773298', 's123227426']
[9012.0, 9164.0]
[31.0, 30.0]
[72, 76]
p03101
u712082626
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['import numpy as np\n\nN, M, C = [int(x) for x in input().split()]\nB = np.array([int(x) for x in input().split()])\nA = np.empty((N,M))\n\ncount = 0\nfor n in range(N):\n A[n] = [int(m) for m in input().split()]\n count += (sum(A[n] * B)+C > 0)\nprint(count)\n', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(str(H * W - (h * W + w * H - h * w)))']
['Runtime Error', 'Accepted']
['s148923702', 's276039083']
[21576.0, 2940.0]
[320.0, 17.0]
[255, 110]
p03101
u716660050
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H*W)-(h*w))', 'H,W=map(int,input().split())\nh,w=map(int,input().split())\nprint((H*W)-((h*W)+(w*H))+(h*w))']
['Wrong Answer', 'Accepted']
['s909356875', 's705531019']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 90]
p03101
u720636500
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H*W - (H - h)(W - w))', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint(H*W - (H - h)*(W - w))', 'H,W = map(int, input().split())\nh,w = map(int, input().split())\nprint((H-h)*(W-w))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s406828952', 's841913255', 's067483118']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[93, 94, 82]
p03101
u724152875
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W=map(int.input().split())\nh,w=map(int.input().split())\n\nreturn H*W-h*W-w*H+h*w', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nH*W-h*W-w*H+h*w', 'p=[input().split() for i in range(2)]\n\n(p[0][0]-p[1][0])*(p[0][1]-p[1][1])', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\nreturn H*W-h*W-w*H+h*w', 'H,W=map(int, input().split())\nh,w=map(int, input().split())\n\n(H-h)*(W-w)', 'p=[list(map(int,input().split()) for i in range(2))]\n\n(p[0][0]-p[1][0])*(p[0][1]-p[1][1])', 'p=[list(map(int,input().split())) for i in range(2)]\n\n(p[0][0]-p[1][0])*(p[0][1]-p[1][1])', 'p=[list(map(int,input().split())) for i in range(2)]\n\nprint((p[0][0]-p[1][0])*(p[0][1]-p[1][1]))']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s105900026', 's227267385', 's243921203', 's290815561', 's379113696', 's529835544', 's878833982', 's016812840']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[81, 76, 74, 83, 72, 89, 89, 96]
p03101
u730318873
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H,W = map(int,input().rsplit().split())\nh,w = map(int,input().rsplit().split())\nprint(H * W - h * w)', 'H,W = map(int,input().rstrip().split())\nh,w = map(int,input().rstrip().split())\nprint(H * W - h * W - (H - h) * w)\n']
['Runtime Error', 'Accepted']
['s583680474', 's510550215']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 115]
p03101
u736479342
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nans = H*W - (H*h + W*w - h*w)\n\nprint(ans)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nans = H*W - (H*w + W*h - h*w)\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s569318043', 's386697966']
[9160.0, 9156.0]
[27.0, 27.0]
[108, 108]
p03101
u737455052
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(h * W + H * w - h * w)', 'H, W = map(int, input().split())\nh, w = map(int, input().split())\n\nprint(H * W - (h * W + H * w - h * w))']
['Wrong Answer', 'Accepted']
['s727209677', 's120957936']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 105]
p03101
u737715061
2,000
1,048,576
There are H rows and W columns of white square cells. You will choose h of the rows and w of the columns, and paint all of the cells contained in those rows or columns. How many white cells will remain? It can be proved that this count does not depend on what rows and columns are chosen.
['H, W = map(int,input().split())\nh, w = map(int, input().split())\n\nprint(H*W-H*h-W*w+h*w)', 'H, W = map(int,input().split())\nh, w = map(int, input().split())\n\nprint(H*W-H*w-W*h+h*w)']
['Wrong Answer', 'Accepted']
['s116300933', 's138214276']
[2940.0, 2940.0]
[18.0, 17.0]
[88, 88]