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
p03276
u919730120
2,000
1,048,576
There are N candles placed on a number line. The i-th candle from the left is placed on coordinate x_i. Here, x_1 < x_2 < ... < x_N holds. Initially, no candles are burning. Snuke decides to light K of the N candles. Now, he is at coordinate 0. He can move left and right along the line with speed 1. He can also light a candle when he is at the same position as the candle, in negligible time. Find the minimum time required to light K candles.
[' from bisect import bisect\n n,k=map(int,input().split())\n x=list(map(int,input().split()))\n g=bisect(x,0)\n if x[n-1]<=0 or x[0]>=0:\n print(max(abs(x[k-1]),abs(x[0])))\n else:\n if g>=k:\n s=g-k\n else:\n s=0\n t=0\n while s<=n-k:\n if x[s]<0 and x[s+k-1]>0:\n if t==0:\n t=min(2*abs(x[s])+x[s+k-1],abs(x[s])+2*x[s+k-1])\n else:\n t=min(t,2*abs(x[s])+x[s+k-1],abs(x[s])+2*x[s+k-1])\n else:\n t=min(t,max(abs(x[s]),abs(x[s+k-1])))\n s+=1\n print(t)', 'n,k=map(int,input().split())\nx=list(map(int,input().split()))\ndist=0\nans=10**9\nfor i in range(n-k+1):\n l=x[i]\n r=x[i+k-1]\n dist=r-l\n ans=min(ans,dist+min(abs(l),abs(r)))\nprint(ans)']
['Runtime Error', 'Accepted']
['s831132310', 's128417100']
[2940.0, 14252.0]
[17.0, 86.0]
[628, 192]
p03276
u942033906
2,000
1,048,576
There are N candles placed on a number line. The i-th candle from the left is placed on coordinate x_i. Here, x_1 < x_2 < ... < x_N holds. Initially, no candles are burning. Snuke decides to light K of the N candles. Now, he is at coordinate 0. He can move left and right along the line with speed 1. He can also light a candle when he is at the same position as the candle, in negligible time. Find the minimum time required to light K candles.
['N,K = map(int,input().split())\nX = list(map(int,input().split()))\nx_n = [0] + sorted([-x for x in X if x < 0])\nx_p = [0] + sorted([x for x in X if x >= 0])\nsize_n,size_p = len(x_n), len(x_p)\nans = 2 * 10**10\nfor i in range(K+1):\n\tif i < size_n and K-i < size_p:\n\t\tprint(i, x_n[i], x_p[K-i])\n\t\tans = min(ans, x_n[i] + x_p[K-i] + min(x_n[i], x_p[K-i]))\nprint(ans)', 'N,K = map(int,input().split())\nX = list(map(int,input().split()))\nx_n = sorted([-x for x in X if x < 0])\nx_p = sorted([x for x in X if x >= 0])\nsize_n,size_p = len(x_n), len(x_p)\nans = 2 * 10**8\nif size_n >= K:\n\tans = min(ans, x_n[K-1])\nif size_p >= K:\n\tans = min(ans, x_p[K-1])\nprint(ans)\nfor i in range(1,K):\n\tif i <= size_n and K-i <= size_p:\n\t\tans = min(ans, x_n[i-1] + x_p[K-i-1] + min(x_n[i-1], x_p[K-i-1]))\nprint(ans)', 'N,K = map(int,input().split())\nX = list(map(int,input().split()))\nx_n = [0] + sorted([-x for x in X if x < 0])\nx_p = [0] + sorted([x for x in X if x >= 0])\nsize_n,size_p = len(x_n), len(x_p)\nans = 2 * 10**10\nfor i in range(K+1):\n\tif i < size_n and K-i < size_p:\n\t\tans = min(ans, x_n[i] + x_p[K-i] + min(x_n[i], x_p[K-i]))\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s439088004', 's736373578', 's928733769']
[14252.0, 14696.0, 14252.0]
[181.0, 99.0, 93.0]
[361, 424, 332]
p03276
u974402118
2,000
1,048,576
There are N candles placed on a number line. The i-th candle from the left is placed on coordinate x_i. Here, x_1 < x_2 < ... < x_N holds. Initially, no candles are burning. Snuke decides to light K of the N candles. Now, he is at coordinate 0. He can move left and right along the line with speed 1. He can also light a candle when he is at the same position as the candle, in negligible time. Find the minimum time required to light K candles.
['N,K =(int(i) for i in input().split())\nx = (int(i) for i in input().split())\ni = 0\nt_min = float("inf")\nwhile i+K <= N :\n left = abs(x[i])+abs(x[i+K-1]-x[i])\n right = abs(x[i+K-1])+abs(x[i+K-1]-x[i])\n if min(left,right)<t_min:\n t_min = min(left,right)\n i += 1\nprint(t_min)', 'N,K =(int(i) for i in input().split())\nx = list((int(i) for i in input().split()))\ni = 0\nt_min = float("inf")\nwhile i+K-1 <= N-1 :\n left = abs(x[i])+abs(x[i+K-1]-x[i])\n right = abs(x[i+K-1])+abs(x[i+K-1]-x[i])\n if min(left,right)<t_min:\n t_min = min(left,right)\n i += 1\nprint(t_min)']
['Runtime Error', 'Accepted']
['s016664731', 's218563387']
[16988.0, 20380.0]
[37.0, 114.0]
[279, 289]
p03280
u004208081
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1]) + 1)', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1]) + 1)', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1]) + 1)', 'a = list(map(int, input().split()))\n\nprint(a[0] * a[1] - (1 * a[0]) - (1 * a[1]) + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s685037438', 's685037438', 's685037438', 's685037438', 's856392159', 's856392159', 's856392159', 's856392159']
[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]
[78, 78, 78, 78, 85, 85, 85, 85]
p03280
u013296940
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A,B = map(int,input().split())\nS = (A-1)*(B-1)\nprint(S)', 'A,B = map(int,input().split())\nS = (A-1)*(B-1)\nprint(S)', 'A,B = map(int,input().split())\nS = (A-1)*(B-1)\nprint(S)', 'A,B = map(int,input().split())\nS = (A-1)*(B-1)\nprint(S)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s064527352', 's064527352', 's064527352', 's064527352', 's779342437', 's779342437', 's779342437', 's779342437']
[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]
[52, 52, 52, 52, 55, 55, 55, 55]
p03280
u023229441
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b=map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b=map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b=map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s630048235', 's630048235', 's630048235', 's630048235', 's732317298', 's732317298', 's732317298', 's732317298']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[45, 45, 45, 45, 47, 47, 47, 47]
p03280
u029000441
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['import math\nimport collections\nimport sys\n\n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n\na,b=MI()\nans=a*b-a-b\nprint(ans)', 'import math\nimport collections\nimport sys\n\n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n\na,b=MI()\nans=a*b-a-b\nprint(ans)', 'import math\nimport collections\nimport sys\n\n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n\na,b=MI()\nans=a*b-a-b\nprint(ans)', 'import math\nimport collections\nimport sys\n\n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n\na,b=MI()\nans=a*b-a-b\nprint(ans)', 'import math\nimport collections\nimport sys\n \n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n \na,b=MI()\nans=a*b-a-b+1\nprint(ans)', 'import math\nimport collections\nimport sys\n \n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n \na,b=MI()\nans=a*b-a-b+1\nprint(ans)', 'import math\nimport collections\nimport sys\n \n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n \na,b=MI()\nans=a*b-a-b+1\nprint(ans)', 'import math\nimport collections\nimport sys\n \n#input = sys.stdin.readline\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\ndef LI2(): return [int(input()) for i in range(n)]\ndef MXI(): return [[LI()]for i in range(n)]\n \na,b=MI()\nans=a*b-a-b+1\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s103692230', 's103692230', 's103692230', 's103692230', 's043086735', 's043086735', 's043086735', 's043086735']
[3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0]
[20.0, 20.0, 20.0, 20.0, 21.0, 21.0, 21.0, 21.0]
[319, 319, 319, 319, 323, 323, 323, 323]
p03280
u036340997
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['s = input()\nk = int(input())\n\nfor i in map(int, s[:k]):\n if i != 1:\n print(i)\n break\nelse:\n print(1)\n', 's = input()\nk = int(input())\n\nfor i in map(int, s[:k]):\n if i != 1:\n print(i)\n break\nelse:\n print(1)\n', 's = input()\nk = int(input())\n\nfor i in map(int, s[:k]):\n if i != 1:\n print(i)\n break\nelse:\n print(1)\n', 's = input()\nk = int(input())\n\nfor i in map(int, s[:k]):\n if i != 1:\n print(i)\n break\nelse:\n print(1)\n', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s375720926', 's375720926', 's375720926', 's375720926', 's054247002', 's054247002', 's054247002', 's054247002']
[2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 3316.0, 3316.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 21.0, 21.0, 21.0, 21.0]
[109, 109, 109, 109, 57, 57, 57, 57]
p03280
u037221289
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["A B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "A B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "A B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "A B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "S = input()\nK = int(input())\nif all(S[x] == '1' for x in range(K)):\n print(1)\n exit()\nelse:\n for i in S:\n if i != '1':\n print(i)\n exit()", "A, B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "A, B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "A, B = map(int,input().split(' '))\nprint((A-1) * (B-1))", "A, B = map(int,input().split(' '))\nprint((A-1) * (B-1))"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s349806516', 's349806516', 's797323298', 's797323298', 's971957118', 's971957118', 's349806516', 's349806516', 's797323298', 's797323298', 's971957118', 's971957118', 's326219820', 's326219820', 's326219820', 's326219820']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[54, 54, 152, 152, 152, 152, 54, 54, 152, 152, 152, 152, 55, 55, 55, 55]
p03280
u038027079
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a = int(input())\nb = int(input())\nprint((a-1)*(b-1))', 'a = int(input())\nb = int(input())\nprint((a-1)*(b-1))', 'a = int(input())\nb = int(input())\nprint((a-1)*(b-1))', 'a = int(input())\nb = int(input())\nprint((a-1)*(b-1))', 'a,b = map(int, input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int, input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int, input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int, input().split())\nprint((a-1)*(b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s459884630', 's459884630', 's459884630', 's459884630', 's481770868', 's481770868', 's481770868', 's481770868']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[52, 52, 52, 52, 51, 51, 51, 51]
p03280
u038685094
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['x = int(input())\ny = int(input())\nprint((x-1)*(y-1))', 'x = int(input())\ny = int(input())\nprint((x-1)*(y-1))', 'x = int(input())\ny = int(input())\nprint((x-1)*(y-1))', 'x = int(input())\ny = int(input())\nprint((x-1)*(y-1))', 'x,y=map(int,input().split())\nprint((x-1)*(y-1))', 'x,y=map(int,input().split())\nprint((x-1)*(y-1))', 'x,y=map(int,input().split())\nprint((x-1)*(y-1))', 'x,y=map(int,input().split())\nprint((x-1)*(y-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s471644246', 's471644246', 's471644246', 's471644246', 's294417026', 's294417026', 's294417026', 's294417026']
[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]
[52, 52, 52, 52, 47, 47, 47, 47]
p03280
u041382530
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["S=input()\nK=int(input())\nfor j in S:\n\tif j=='1':\n\t\tif j==K:\n\t\t\tco='1'\n\t\t\tbreak\n\telse:\n\t\tco=j\n\t\tbreak\nprint(co)", "S=input()\nK=int(input())\nfor j in S:\n\tif j=='1':\n\t\tif j==K:\n\t\t\tco='1'\n\t\t\tbreak\n\telse:\n\t\tco=j\n\t\tbreak\nprint(co)", "S=input()\nK=int(input())\nfor j in S:\n\tif j=='1':\n\t\tif j==K:\n\t\t\tco='1'\n\t\t\tbreak\n\telse:\n\t\tco=j\n\t\tbreak\nprint(co)", "S=input()\nK=int(input())\nfor j in S:\n\tif j=='1':\n\t\tif j==K:\n\t\t\tco='1'\n\t\t\tbreak\n\telse:\n\t\tco=j\n\t\tbreak\nprint(co)", 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s446770544', 's446770544', 's446770544', 's446770544', 's883017654', 's883017654', 's883017654', 's883017654']
[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]
[110, 110, 110, 110, 47, 47, 47, 47]
p03280
u050708958
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nprint(a * b - a - b)', 'a, b = map(int, input().split())\nprint(a * b - a - b)', 'a, b = map(int, input().split())\nprint(a * b - a - b)', 'a, b = map(int, input().split())\nprint(a * b - a - b)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s055996678', 's055996678', 's055996678', 's055996678', 's742928707', 's742928707', 's742928707', 's742928707']
[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]
[53, 53, 53, 53, 57, 57, 57, 57]
p03280
u057429331
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\nprint(A*B-A-B+1)', 'A = int(input())\nB = int(input())\nprint(A*B-A-B+1)', 'A = int(input())\nB = int(input())\nprint(A*B-A-B+1)', 'A = int(input())\nB = int(input())\nprint(A*B-A-B+1)', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)\n', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)\n', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)\n', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s430350980', 's430350980', 's430350980', 's430350980', 's697942811', 's697942811', 's697942811', 's697942811']
[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]
[50, 50, 50, 50, 50, 50, 50, 50]
p03280
u059210959
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['#encoding utf-8\n\na = int(input())\nb = int(input())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na = int(input())\nb = int(input())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na = int(input())\nb = int(input())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na = int(input())\nb = int(input())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na, b = map(int, input().split())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na, b = map(int, input().split())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na, b = map(int, input().split())\n\narea = (a-1)*(b-1)\nprint(area)\n', '#encoding utf-8\n\na, b = map(int, input().split())\n\narea = (a-1)*(b-1)\nprint(area)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s462394480', 's462394480', 's462394480', 's462394480', 's811491115', 's811491115', 's811491115', 's811491115']
[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]
[83, 83, 83, 83, 82, 82, 82, 82]
p03280
u067694718
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=[int(i) for i in input.split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input.split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input(split())]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input(split())]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input.split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input.split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input(split())]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input(split())]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input().split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input().split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input().split()]\nprint((a-1)*(b-1))', 'a,b=[int(i) for i in input().split()]\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s041491468', 's041491468', 's132247311', 's132247311', 's041491468', 's041491468', 's132247311', 's132247311', 's056590533', 's056590533', 's056590533', 's056590533']
[9032.0, 9032.0, 9028.0, 9028.0, 9032.0, 9032.0, 9028.0, 9028.0, 9028.0, 9028.0, 9028.0, 9028.0]
[24.0, 24.0, 23.0, 23.0, 24.0, 24.0, 23.0, 23.0, 25.0, 25.0, 25.0, 25.0]
[54, 54, 55, 55, 54, 54, 55, 55, 56, 56, 56, 56]
p03280
u071852601
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=input()\nb=input()\nif a>1 and b>1:\n C=(a-1)*(b-1)\nelse:\n break\nprint(C)', 'a=input()\nb=input()\nif a>1 and b>1:\n C=(a-1)*(b-1)\nelse:\n break\nprint(C)', 'S=input()\nK=int(input())\nl=len(S)\nr=0\nq=0\nif l==1:\n print(int(S))\nelse:\n for i in range(0,l-1):\n if int(S[i]) != 1:\n r=int(S[i])\n q=i\n break\n if q>K:\n print(1) \n else:\n print(r)', 'S=input()\nK=int(input())\nl=len(S)\nr=0\nq=0\nif l==1:\n print(int(S))\nelse:\n for i in range(0,l-1):\n if int(S[i]) != 1:\n r=int(S[i])\n q=i\n break\n if q>K:\n print(1) \n else:\n print(r)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'A=int(input())\nB=int(input())\nif A>1 and B>1:\n C=(A-1)*(B-1)\nelse:\n break\nprint(C)', 'A=int(input())\nB=int(input())\nif A>1 and B>1:\n C=(A-1)*(B-1)\nelse:\n break\nprint(C)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint("{}".format(C))', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint("{}".format(C))', 'A=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'A=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'a=input()\nb=input()\nif a>1 and b>1:\n C=(a-1)*(b-1)\nelse:\n break\nprint(C)', 'a=input()\nb=input()\nif a>1 and b>1:\n C=(a-1)*(b-1)\nelse:\n break\nprint(C)', 'S=input()\nK=int(input())\nl=len(S)\nr=0\nq=0\nif l==1:\n print(int(S))\nelse:\n for i in range(0,l-1):\n if int(S[i]) != 1:\n r=int(S[i])\n q=i\n break\n if q>K:\n print(1) \n else:\n print(r)', 'S=input()\nK=int(input())\nl=len(S)\nr=0\nq=0\nif l==1:\n print(int(S))\nelse:\n for i in range(0,l-1):\n if int(S[i]) != 1:\n r=int(S[i])\n q=i\n break\n if q>K:\n print(1) \n else:\n print(r)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'A=int(input())\nB=int(input())\nif A>1 and B>1:\n C=(A-1)*(B-1)\nelse:\n break\nprint(C)', 'A=int(input())\nB=int(input())\nif A>1 and B>1:\n C=(A-1)*(B-1)\nelse:\n break\nprint(C)', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint("{}".format(C))', '# -*- coding: utf-8 -*-\nA=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint("{}".format(C))', 'A=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'A=int(input())\nB=int(input())\nC=(A-1)*(B-1)\nprint(C)', 'A,B=list(map(int,input().split()))\nC=(A-1)*(B-1)\nprint(C)', 'A,B=list(map(int,input().split()))\nC=(A-1)*(B-1)\nprint(C)', 'A,B=list(map(int,input().split()))\nC=(A-1)*(B-1)\nprint(C)', 'A,B=list(map(int,input().split()))\nC=(A-1)*(B-1)\nprint(C)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s031130026', 's031130026', 's613403227', 's613403227', 's623201514', 's623201514', 's857687003', 's857687003', 's882092274', 's882092274', 's938018520', 's938018520', 's031130026', 's031130026', 's613403227', 's613403227', 's623201514', 's623201514', 's857687003', 's857687003', 's882092274', 's882092274', 's938018520', 's938018520', 's145312686', 's145312686', 's145312686', 's145312686']
[2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[74, 74, 243, 243, 76, 76, 84, 84, 89, 89, 52, 52, 74, 74, 243, 243, 76, 76, 84, 84, 89, 89, 52, 52, 57, 57, 57, 57]
p03280
u071916806
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=input().split.\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split.\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split.\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split.\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split()\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split()\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split()\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))', 'a,b=input().split()\nA=int(a)\nB=int(b)\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s472474945', 's472474945', 's472474945', 's472474945', 's177949442', 's177949442', 's177949442', 's177949442']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[55, 55, 55, 55, 56, 56, 56, 56]
p03280
u079022116
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["s=input()\nk=int(input())\nif s.count('1') == len(s):\n print(1)\nelse:\n count = 0\n for i in s:\n if i != '1':\n print(i)\n break\n else:\n count+=1\n if count == k:\n print(1)\n break", "s=input()\nk=int(input())\nif s.count('1') == len(s):\n print(1)\nelse:\n count = 0\n for i in s:\n if i != '1':\n print(i)\n break\n else:\n count+=1\n if count == k:\n print(1)\n break", "s=input()\nk=int(input())\nif s.count('1') == len(s):\n print(1)\nelse:\n count = 0\n for i in s:\n if i != '1':\n print(i)\n break\n else:\n count+=1\n if count == k:\n print(1)\n break", "s=input()\nk=int(input())\nif s.count('1') == len(s):\n print(1)\nelse:\n count = 0\n for i in s:\n if i != '1':\n print(i)\n break\n else:\n count+=1\n if count == k:\n print(1)\n break", 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s148440192', 's148440192', 's148440192', 's148440192', 's260395144', 's260395144', 's260395144', 's260395144']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[215, 215, 215, 215, 47, 47, 47, 47]
p03280
u089142196
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A,B=map(input().split())\nprint((A-1)*(B-1))', 'A,B=map(input().split())\nprint((A-1)*(B-1))', 'A,B=map(input().split())\nprint((A-1)*(B-1))', 'A,B=map(input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s222741086', 's222741086', 's222741086', 's222741086', 's835274073', 's835274073', 's835274073', 's835274073']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[43, 43, 43, 43, 47, 47, 47, 47]
p03280
u089376182
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['print((int(input()) - 1)*(int(input()) - 1))', 'print((int(input()) - 1)*(int(input()) - 1))', 'print((int(input()) - 1)*(int(input()) - 1))', 'print((int(input()) - 1)*(int(input()) - 1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s331104047', 's331104047', 's331104047', 's331104047', 's984721418', 's984721418', 's984721418', 's984721418']
[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]
[44, 44, 44, 44, 51, 51, 51, 51]
p03280
u092781267
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['input_lines = raw_input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = raw_input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = raw_input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = raw_input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n', 'input_lines = input().split()\na = int(input_lines[0])\nb = int(input_lines[1])\n\nprint(a * b - (a + b - 1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s590273011', 's590273011', 's590273011', 's590273011', 's131311246', 's131311246', 's131311246', 's131311246']
[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]
[110, 110, 110, 110, 106, 106, 106, 106]
p03280
u095426154
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n \nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n \nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if int(arr_q[0])<=int(arr_m[0]) and int(arr_m[1])<=int(arr_q[1]):\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\nfor i in range(q):\n sect[i]=input().split(" ")\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if int(arr_q[0])<=int(arr_m[0]) and int(arr_m[1])<=int(arr_q[1]):\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\nfor i in range(q):\n sect[i]=input().split(" ")\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', '\ncond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', '\ncond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n \nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n \nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n \ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if int(arr_q[0])<=int(arr_m[0]) and int(arr_m[1])<=int(arr_q[1]):\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\nfor i in range(q):\n sect[i]=input().split(" ")\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if int(arr_q[0])<=int(arr_m[0]) and int(arr_m[1])<=int(arr_q[1]):\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\nfor i in range(q):\n sect[i]=input().split(" ")\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', '\ncond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', '\ncond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n#print(train)\n\ndef judge(arr_m,arr_q):\n a=0\n #print(arr_m)\n #print(arr_q)\n #print("*")\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\n #print(train)\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\n #print(sect)\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\ndef judge(arr_m,arr_q):\n a=0\n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'cond=input().split(" ")\nn=int(cond[0])\nm=int(cond[1])\nq=int(cond[2])\ntrain=[[0 for i in range(2)] for j in range(m)]\nsect=[[0 for i in range(2)] for j in range(q)]\n\n\ndef judge(arr_m,arr_q):\n a=0\n \n if arr_q[0]<=arr_m[0] and arr_m[1]<=arr_q[1]:\n a=1\n return a\n\nfor i in range(m):\n train[i]=input().split(" ")\n train[i]=list(map(int,train[i]))\nfor i in range(q):\n sect[i]=input().split(" ")\n sect[i]=list(map(int,sect[i]))\nfor i in range(q):\n ans=0\n for j in range(m):\n ans+=judge(train[j],sect[i])\n print(ans)', 'nums=input().split(" ")\nprint((int(nums[0])-1)*(int(nums[1])-1))', 'nums=input().split(" ")\nprint((int(nums[0])-1)*(int(nums[1])-1))', 'nums=input().split(" ")\nprint((int(nums[0])-1)*(int(nums[1])-1))', 'nums=input().split(" ")\nprint((int(nums[0])-1)*(int(nums[1])-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s142535354', 's142535354', 's204172061', 's204172061', 's234970370', 's234970370', 's252199402', 's252199402', 's279735349', 's279735349', 's389907537', 's389907537', 's445149461', 's445149461', 's575763080', 's575763080', 's910478677', 's910478677', 's142535354', 's142535354', 's204172061', 's204172061', 's234970370', 's234970370', 's252199402', 's252199402', 's279735349', 's279735349', 's389907537', 's389907537', 's445149461', 's445149461', 's575763080', 's575763080', 's910478677', 's910478677', 's878533906', 's878533906', 's878533906', 's878533906']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[652, 652, 650, 650, 549, 549, 650, 650, 503, 503, 674, 674, 549, 549, 549, 549, 555, 555, 652, 652, 650, 650, 549, 549, 650, 650, 503, 503, 674, 674, 549, 549, 549, 549, 555, 555, 64, 64, 64, 64]
p03280
u099566485
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=int(input())\nb=int(input())\nans=a*b-a-b+1\nprint(ans)', 'a=int(input())\nb=int(input())\nans=a*b-a-b+1\nprint(ans)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nans=a*b-a-b+1\nprint(ans)', 'a=int(input())\nb=int(input())\nans=a*b-a-b+1\nprint(ans)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\nprint(a*b-a-b+1)', 'a,b=map(int,input().split())\nans=a*b-a-b+1\nprint(ans)', 'a,b=map(int,input().split())\nans=a*b-a-b+1\nprint(ans)', 'a,b=map(int,input().split())\nans=a*b-a-b+1\nprint(ans)', 'a,b=map(int,input().split())\nans=a*b-a-b+1\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s047902205', 's047902205', 's779783517', 's779783517', 's879277406', 's879277406', 's047902205', 's047902205', 's779783517', 's779783517', 's879277406', 's879277406', 's567747075', 's567747075', 's567747075', 's567747075']
[2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[30.0, 30.0, 17.0, 17.0, 20.0, 20.0, 30.0, 30.0, 17.0, 17.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0]
[54, 54, 46, 46, 46, 46, 54, 54, 46, 46, 46, 46, 53, 53, 53, 53]
p03280
u102126195
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))', 'A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))', 'A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))', 'A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))', 'A, B = map(int, input().split())\nprint((A - 1) * (B - 1))\n', 'A, B = map(int, input().split())\nprint((A - 1) * (B - 1))\n', 'A, B = map(int, input().split())\nprint((A - 1) * (B - 1))\n', 'A, B = map(int, input().split())\nprint((A - 1) * (B - 1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s303209359', 's303209359', 's303209359', 's303209359', 's682369184', 's682369184', 's682369184', 's682369184']
[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]
[58, 58, 58, 58, 58, 58, 58, 58]
p03280
u102902647
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['\nA = int(input())\nB = int(input())\n\nprint(A*B-A-B+1)\n', '\nA = int(input())\nB = int(input())\n\nprint(A*B-A-B+1)\n', "import numpy as np\ndef main():\n N, M, Q = map(int, input().split())\n LR = []\n for i in range(M):\n l, r = map(int, input().split())\n LR.append([l-1, r])\n PQ = []\n for i in range(Q):\n p, q = map(int, input().split())\n PQ.append([p-1, q-1])\n ar = np.zeros([M, N])\n for m in range(M):\n ar[m, LR[m][0]:LR[m][1]] = 1\n flags_start = [np.ones(M, dtype=np.bool)]\n flags_end = []\n for i in range(1, N):\n flags_start.append((ar[:, :i].max(axis=1)==0))# * (ar[:, i:].max(axis=1)==1))\n flags_end.append((ar[:, i:].max(axis=1)==0))# * (ar[:, :i].max(axis=1)==1))\n flags_end.append(np.ones(M, dtype=np.bool))\n for q in range(Q):\n left = PQ[q][0]\n right = PQ[q][1]\n print(sum(flags_start[left] * flags_end[right]))\n\nif __name__=='__main__':\n main()", "import numpy as np\ndef main():\n N, M, Q = map(int, input().split())\n LR = []\n for i in range(M):\n l, r = map(int, input().split())\n LR.append([l-1, r])\n PQ = []\n for i in range(Q):\n p, q = map(int, input().split())\n PQ.append([p-1, q-1])\n ar = np.zeros([M, N])\n for m in range(M):\n ar[m, LR[m][0]:LR[m][1]] = 1\n flags_start = [np.ones(M, dtype=np.bool)]\n flags_end = []\n for i in range(1, N):\n flags_start.append((ar[:, :i].max(axis=1)==0))# * (ar[:, i:].max(axis=1)==1))\n flags_end.append((ar[:, i:].max(axis=1)==0))# * (ar[:, :i].max(axis=1)==1))\n flags_end.append(np.ones(M, dtype=np.bool))\n for q in range(Q):\n left = PQ[q][0]\n right = PQ[q][1]\n print(sum(flags_start[left] * flags_end[right]))\n\nif __name__=='__main__':\n main()", '\nA = int(input())\nB = int(input())\n\nprint(A*B-A-B+1)\n', '\nA = int(input())\nB = int(input())\n\nprint(A*B-A-B+1)\n', "import numpy as np\ndef main():\n N, M, Q = map(int, input().split())\n LR = []\n for i in range(M):\n l, r = map(int, input().split())\n LR.append([l-1, r])\n PQ = []\n for i in range(Q):\n p, q = map(int, input().split())\n PQ.append([p-1, q-1])\n ar = np.zeros([M, N])\n for m in range(M):\n ar[m, LR[m][0]:LR[m][1]] = 1\n flags_start = [np.ones(M, dtype=np.bool)]\n flags_end = []\n for i in range(1, N):\n flags_start.append((ar[:, :i].max(axis=1)==0))# * (ar[:, i:].max(axis=1)==1))\n flags_end.append((ar[:, i:].max(axis=1)==0))# * (ar[:, :i].max(axis=1)==1))\n flags_end.append(np.ones(M, dtype=np.bool))\n for q in range(Q):\n left = PQ[q][0]\n right = PQ[q][1]\n print(sum(flags_start[left] * flags_end[right]))\n\nif __name__=='__main__':\n main()", "import numpy as np\ndef main():\n N, M, Q = map(int, input().split())\n LR = []\n for i in range(M):\n l, r = map(int, input().split())\n LR.append([l-1, r])\n PQ = []\n for i in range(Q):\n p, q = map(int, input().split())\n PQ.append([p-1, q-1])\n ar = np.zeros([M, N])\n for m in range(M):\n ar[m, LR[m][0]:LR[m][1]] = 1\n flags_start = [np.ones(M, dtype=np.bool)]\n flags_end = []\n for i in range(1, N):\n flags_start.append((ar[:, :i].max(axis=1)==0))# * (ar[:, i:].max(axis=1)==1))\n flags_end.append((ar[:, i:].max(axis=1)==0))# * (ar[:, :i].max(axis=1)==1))\n flags_end.append(np.ones(M, dtype=np.bool))\n for q in range(Q):\n left = PQ[q][0]\n right = PQ[q][1]\n print(sum(flags_start[left] * flags_end[right]))\n\nif __name__=='__main__':\n main()", '\nA, B = map(int, input().split())\n\nprint(A*B-A-B+1)\n', '\nA, B = map(int, input().split())\n\nprint(A*B-A-B+1)\n', '\nA, B = map(int, input().split())\n\nprint(A*B-A-B+1)\n', '\nA, B = map(int, input().split())\n\nprint(A*B-A-B+1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s675622730', 's675622730', 's952036924', 's952036924', 's675622730', 's675622730', 's952036924', 's952036924', 's891135311', 's891135311', 's891135311', 's891135311']
[2940.0, 2940.0, 12512.0, 12512.0, 2940.0, 2940.0, 12512.0, 12512.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 149.0, 149.0, 17.0, 17.0, 149.0, 149.0, 17.0, 17.0, 17.0, 17.0]
[53, 53, 841, 841, 53, 53, 841, 841, 52, 52, 52, 52]
p03280
u106103668
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,iput().split())\nprint((a-1)*(b-1))', 'a,b=map(int,iput().split())\nprint((a-1)*(b-1))', 'a,b=map(int,iput().split())\nprint((a-1)*(b-1))', 'a,b=map(int,iput().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s361754636', 's361754636', 's361754636', 's361754636', 's501707971', 's501707971', 's501707971', 's501707971']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[46, 46, 46, 46, 47, 47, 47, 47]
p03280
u106297876
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nc=(a-1)*(b-1)\nc', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nc', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nc', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nc', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a, b = map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s022889261', 's022889261', 's022889261', 's022889261', 's753189091', 's753189091', 's753189091', 's753189091']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[48, 48, 48, 48, 55, 55, 55, 55]
p03280
u112065131
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['# -*- coding: utf-8 -*-\n\ndef main():\n\n N = int(input())\n\n ans = 0\n\n for i in range(1, N+1):\n if i % 2 == 1:\n\n count = 0\n\n for j in range(1, i+1):\n if i % j == 0:\n count +=1\n if count == 8:\n ans += 1\n \n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n N = int(input())\n\n ans = 0\n\n for i in range(1, N+1):\n if i % 2 == 1:\n\n count = 0\n\n for j in range(1, i+1):\n if i % j == 0:\n count +=1\n if count == 8:\n ans += 1\n \n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n N = int(input())\n\n ans = 0\n\n for i in range(1, N+1):\n if i % 2 == 1:\n\n count = 0\n\n for j in range(1, i+1):\n if i % j == 0:\n count +=1\n if count == 8:\n ans += 1\n \n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n N = int(input())\n\n ans = 0\n\n for i in range(1, N+1):\n if i % 2 == 1:\n\n count = 0\n\n for j in range(1, i+1):\n if i % j == 0:\n count +=1\n if count == 8:\n ans += 1\n \n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n A, B = map(int, input().split())\n\n ans = (A-1) * (B-1)\n\n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n A, B = map(int, input().split())\n\n ans = (A-1) * (B-1)\n\n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n A, B = map(int, input().split())\n\n ans = (A-1) * (B-1)\n\n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n A, B = map(int, input().split())\n\n ans = (A-1) * (B-1)\n\n print(ans)\n\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s046459277', 's046459277', 's046459277', 's046459277', 's295595109', 's295595109', 's295595109', 's295595109']
[9104.0, 9104.0, 9104.0, 9104.0, 8828.0, 8828.0, 8828.0, 8828.0]
[22.0, 22.0, 22.0, 22.0, 24.0, 24.0, 24.0, 24.0]
[368, 368, 368, 368, 155, 155, 155, 155]
p03280
u115877451
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s620727276', 's620727276', 's620727276', 's620727276', 's816935480', 's816935480', 's816935480', 's816935480']
[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]
[39, 39, 39, 39, 47, 47, 47, 47]
p03280
u122195031
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input.split())\nprint((a-1)*(b-1))', 'a,b = map(int,input.split())\nprint((a-1)*(b-1))', 'a,b = map(int,input.split())\nprint((a-1)*(b-1))', 'a,b = map(int,input.split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s578990141', 's578990141', 's578990141', 's578990141', 's497045381', 's497045381', 's497045381', 's497045381']
[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]
[47, 47, 47, 47, 49, 49, 49, 49]
p03280
u129978636
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A, B = map( int, input().split())\n\nprint((A * B) - (A + B))', 'A, B = map( int, input().split())\n\nprint((A * B) - (A + B))', 'A, B = map( int, input().split())\n\nprint((A * B) - (A + B))', 'A, B = map( int, input().split())\n\nprint((A * B) - (A + B))', 'A, B = map( int, input().split())\n \nprint((A * B) - (A + B - 1))', 'A, B = map( int, input().split())\n \nprint((A * B) - (A + B - 1))', 'A, B = map( int, input().split())\n \nprint((A * B) - (A + B - 1))', 'A, B = map( int, input().split())\n \nprint((A * B) - (A + B - 1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s386872433', 's386872433', 's386872433', 's386872433', 's321180868', 's321180868', 's321180868', 's321180868']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[59, 59, 59, 59, 64, 64, 64, 64]
p03280
u140251125
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['# input\nA = int(input())\nB = int(input())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA = int(input())\nB = int(input())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA = int(input())\nB = int(input())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA = int(input())\nB = int(input())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA, B = map(int, input().split())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA, B = map(int, input().split())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA, B = map(int, input().split())\n\nans = (A - 1) * (B - 1)\nprint(ans)', '# input\nA, B = map(int, input().split())\n\nans = (A - 1) * (B - 1)\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s547387345', 's547387345', 's547387345', 's547387345', 's252150954', 's252150954', 's252150954', 's252150954']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[20.0, 20.0, 20.0, 20.0, 17.0, 17.0, 17.0, 17.0]
[77, 77, 77, 77, 76, 76, 76, 76]
p03280
u142211940
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b = map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b = map(int,input(),split())\nprint(a*b-a-b+1)', 'a,b = map(int,input(),split())\nprint(a*b-a-b+1)', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)', 'A, B = map(int, input().split())\nprint(A*B-A-B+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s524614842', 's524614842', 's524614842', 's524614842', 's000762289', 's000762289', 's000762289', 's000762289']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[47, 47, 47, 47, 49, 49, 49, 49]
p03280
u148019779
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["#!/usr/bin/env python3\nimport sys\n\ndef main():\n a = int(sys.stdin.readline().rstrip())\n b = int(sys.stdin.readline().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a = int(sys.stdin.readline().rstrip())\n b = int(sys.stdin.readline().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\n\ndef main():\n a = int(input().rstrip())\n b = int(input().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\n\ndef main():\n a = int(input().rstrip())\n b = int(input().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a = int(sys.stdin.readline().rstrip())\n b = int(sys.stdin.readline().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a = int(sys.stdin.readline().rstrip())\n b = int(sys.stdin.readline().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\n\ndef main():\n a = int(input().rstrip())\n b = int(input().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\n\ndef main():\n a = int(input().rstrip())\n b = int(input().rstrip())\n\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a, b = [int(x) for x in sys.stdin.readline().rstrip().split()]\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a, b = [int(x) for x in sys.stdin.readline().rstrip().split()]\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a, b = [int(x) for x in sys.stdin.readline().rstrip().split()]\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()", "#!/usr/bin/env python3\nimport sys\n\ndef main():\n a, b = [int(x) for x in sys.stdin.readline().rstrip().split()]\n print((a-1)*(b-1))\n \n\nif __name__ == '__main__':\n main()"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s307269555', 's307269555', 's735017417', 's735017417', 's307269555', 's307269555', 's735017417', 's735017417', 's200985849', 's200985849', 's200985849', 's200985849']
[3316.0, 3316.0, 2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 17.0, 17.0, 17.0, 17.0]
[200, 200, 163, 163, 200, 200, 163, 163, 180, 180, 180, 180]
p03280
u151042563
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\nS = 4*(((A-1)/2) *((B-1)/2))\nprint(int(S))', 'A = int(input())\nB = int(input())\nS = 4*(((A-1)/2) *((B-1)/2))\nprint(int(S))', 'A = int(input())\nB = int(input())\nS = 4*(((A-1)/2) *((B-1)/2))\nprint(int(S))', 'A = int(input())\nB = int(input())\nS = 4*(((A-1)/2) *((B-1)/2))\nprint(int(S))', 'l = input().split()\nS = 4*(((int(l[0])-1)/2) *((int(l[1])-1)/2))\nprint(int(S))', 'l = input().split()\nS = 4*(((int(l[0])-1)/2) *((int(l[1])-1)/2))\nprint(int(S))', 'l = input().split()\nS = 4*(((int(l[0])-1)/2) *((int(l[1])-1)/2))\nprint(int(S))', 'l = input().split()\nS = 4*(((int(l[0])-1)/2) *((int(l[1])-1)/2))\nprint(int(S))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s799180033', 's799180033', 's799180033', 's799180033', 's617497981', 's617497981', 's617497981', 's617497981']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[76, 76, 76, 76, 78, 78, 78, 78]
p03280
u160861278
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input.split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input.split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input.split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input.split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input().split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input().split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input().split())\n\nprint(a*b-a-b+1)', 'a, b = map(int, input().split())\n\nprint(a*b-a-b+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s361300905', 's361300905', 's361300905', 's361300905', 's213616806', 's213616806', 's213616806', 's213616806']
[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]
[48, 48, 48, 48, 50, 50, 50, 50]
p03280
u164261323
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input()).split())\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int(input().split()))\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s039307826', 's039307826', 's335926660', 's335926660', 's577105851', 's577105851', 's938862421', 's938862421', 's039307826', 's039307826', 's335926660', 's335926660', 's577105851', 's577105851', 's938862421', 's938862421', 's754571308', 's754571308', 's754571308', 's754571308']
[2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 50, 50, 50, 50]
p03280
u166849422
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['r = int(input())\nl = int(input())\nprint((r-1)*(l-1))', 'r = int(input())\nl = int(input())\nprint((r-1)*(l-1))', 'r = int(input())\nl = int(input())\nprint((r-1)*(l-1))', 'r = int(input())\nl = int(input())\nprint((r-1)*(l-1))', 'n,m = map(int,input().split())\nprint((n-1)*(m-1))', 'n,m = map(int,input().split())\nprint((n-1)*(m-1))', 'n,m = map(int,input().split())\nprint((n-1)*(m-1))', 'n,m = map(int,input().split())\nprint((n-1)*(m-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s429295893', 's429295893', 's429295893', 's429295893', 's667353701', 's667353701', 's667353701', 's667353701']
[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]
[52, 52, 52, 52, 49, 49, 49, 49]
p03280
u167161639
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=int(input())\nb=int(input())\ns=(a-1)*(b-1)\nprint(s)', 'a=int(input())\nb=int(input())\ns=(a-1)*(b-1)\nprint(s)', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\ns=(a-1)*(b-1)\nprint(s)', 'a=int(input())\nb=int(input())\ns=(a-1)*(b-1)\nprint(s)', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))', 'a,b=(int(i) for i in input().split())\nprint((a-1)*(b-1))', 'a,b=(int(i) for i in input().split())\nprint((a-1)*(b-1))', 'a,b=(int(i) for i in input().split())\nprint((a-1)*(b-1))', 'a,b=(int(i) for i in input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s480898630', 's480898630', 's484827049', 's484827049', 's480898630', 's480898630', 's484827049', 's484827049', 's097023758', 's097023758', 's097023758', 's097023758']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[52, 52, 48, 48, 52, 52, 48, 48, 56, 56, 56, 56]
p03280
u174440851
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\n(A-1) * (B-1)', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\n(A-1) * (B-1)', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\n(A-1) * (B-1)', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\n(A-1) * (B-1)', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\nprint((A-1) * (B-1))', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\nprint((A-1) * (B-1))', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\nprint((A-1) * (B-1))', 'inputs=input().split()\nA=int(inputs[0])\nB=int(inputs[1])\nprint((A-1) * (B-1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s117040442', 's117040442', 's117040442', 's117040442', 's244515597', 's244515597', 's244515597', 's244515597']
[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]
[70, 70, 70, 70, 77, 77, 77, 77]
p03280
u175590965
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input(),split())\nprint(a*b-a-b)', 'a,b = map(int,input(),split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input(),split())\nprint(a*b-a-b)', 'a,b = map(int,input(),split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s097865936', 's097865936', 's520382336', 's520382336', 's097865936', 's097865936', 's520382336', 's520382336', 's182744894', 's182744894', 's182744894', 's182744894']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 18.0, 18.0, 18.0, 18.0]
[45, 45, 45, 45, 45, 45, 45, 45, 49, 49, 49, 49]
p03280
u177756077
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['N=int(input())\nnum=0\nfor j in range(1,N+1,2):\n \tcnt=0\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n# print("---")\nprint(num)\n', 'N=int(input())\nnum=0\nfor j in range(1,N+1,2):\n \tcnt=0\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n# print("---")\nprint(num)\n', 'import math\n\nN=int(input())\ncnt=0\nnum=0\nfor j in range(1,N+2,2):\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n cnt=0\n# print("---")\nprint(num)', 'import math\n\nN=int(input())\ncnt=0\nnum=0\nfor j in range(1,N+2,2):\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n cnt=0\n# print("---")\nprint(num)', 'N=int(input())\nnum=0\nfor j in range(1,N+1,2):\n \tcnt=0\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n# print("---")\nprint(num)\n', 'N=int(input())\nnum=0\nfor j in range(1,N+1,2):\n \tcnt=0\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n# print("---")\nprint(num)\n', 'import math\n\nN=int(input())\ncnt=0\nnum=0\nfor j in range(1,N+2,2):\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n cnt=0\n# print("---")\nprint(num)', 'import math\n\nN=int(input())\ncnt=0\nnum=0\nfor j in range(1,N+2,2):\n for i in range(1,j+1):\n# print(i)\n# print(j)\n if j%i==0 :\n cnt=cnt+1\n if cnt==8 :\n# print(cnt)\n num+=1\n cnt=0\n# print("---")\nprint(num)', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s926074179', 's926074179', 's950288677', 's950288677', 's926074179', 's926074179', 's950288677', 's950288677', 's832618841', 's832618841', 's832618841', 's832618841']
[3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3316.0, 3316.0, 3316.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 19.0, 19.0]
[240, 240, 259, 259, 240, 240, 259, 259, 47, 47, 47, 47]
p03280
u181949308
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['inp = input()\nn = int(inp)\n\nif n < 105:\n print(0)\nelif 105 <= n <135:\n print(1)\nelif 135 <= n <165:\n print(2)\nelif 165 <= n <189:\n print(3)\nelif 189 <= n <195:\n print(4)\nelif 195 <= n:\n print(5)', 'inp = input()\nn = int(inp)\n\nif n < 105:\n print(0)\nelif 105 <= n <135:\n print(1)\nelif 135 <= n <165:\n print(2)\nelif 165 <= n <189:\n print(3)\nelif 189 <= n <195:\n print(4)\nelif 195 <= n:\n print(5)', 'inp = input()\nn = int(inp)\n\nif n < 105:\n print(0)\nelif 105 <= n <135:\n print(1)\nelif 135 <= n <165:\n print(2)\nelif 165 <= n <189:\n print(3)\nelif 189 <= n <195:\n print(4)\nelif 195 <= n:\n print(5)', 'inp = input()\nn = int(inp)\n\nif n < 105:\n print(0)\nelif 105 <= n <135:\n print(1)\nelif 135 <= n <165:\n print(2)\nelif 165 <= n <189:\n print(3)\nelif 189 <= n <195:\n print(4)\nelif 195 <= n:\n print(5)', 'inp = input()\ninp = inp.split()\nmen = (int(inp[0]) - 1 ) * (int(inp[1]) - 1)\nprint(men)', 'inp = input()\ninp = inp.split()\nmen = (int(inp[0]) - 1 ) * (int(inp[1]) - 1)\nprint(men)', 'inp = input()\ninp = inp.split()\nmen = (int(inp[0]) - 1 ) * (int(inp[1]) - 1)\nprint(men)', 'inp = input()\ninp = inp.split()\nmen = (int(inp[0]) - 1 ) * (int(inp[1]) - 1)\nprint(men)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s492613783', 's492613783', 's492613783', 's492613783', 's894058308', 's894058308', 's894058308', 's894058308']
[3060.0, 3060.0, 3060.0, 3060.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]
[201, 201, 201, 201, 87, 87, 87, 87]
p03280
u184902932
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a = int(input())\nb = int(input())\n\nprint( (a-1)*(b-1))\n', 'a = int(input())\nb = int(input())\n\nprint( (a-1)*(b-1))\n', 'a = int(input())\nb = int(input())\n\nprint( (a-1)*(b-1))\n', 'a = int(input())\nb = int(input())\n\nprint( (a-1)*(b-1))\n', 'a, b = map(int, input().split())\n \nprint( (a-1)*(b-1))', 'a, b = map(int, input().split())\n \nprint( (a-1)*(b-1))', 'a, b = map(int, input().split())\n \nprint( (a-1)*(b-1))', 'a, b = map(int, input().split())\n \nprint( (a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s822756477', 's822756477', 's822756477', 's822756477', 's419678510', 's419678510', 's419678510', 's419678510']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[55, 55, 55, 55, 54, 54, 54, 54]
p03280
u185294445
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['S =int(input())\nT=int(input())\n\nprint((S-1)*(T-1))', 'S =int(input())\nT=int(input())\n\nprint((S-1)*(T-1))', 'S =int(input())\nT=int(input())\n\nprint((S-1)*(T-1))', 'S =int(input())\nT=int(input())\n\nprint((S-1)*(T-1))', 'li=list(map(int, input().split()))\nprint((li[0]-1)*(li[1]-1))', 'li=list(map(int, input().split()))\nprint((li[0]-1)*(li[1]-1))', 'li=list(map(int, input().split()))\nprint((li[0]-1)*(li[1]-1))', 'li=list(map(int, input().split()))\nprint((li[0]-1)*(li[1]-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s367706636', 's367706636', 's367706636', 's367706636', 's305795606', 's305795606', 's305795606', 's305795606']
[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]
[50, 50, 50, 50, 61, 61, 61, 61]
p03280
u185948224
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["S = input()\nK = int(input())\n \nans = 0\ns0 = 0\n \nfor s in S:\n if s == '1':\n s0 += 1\n if s0 == K:break\n else: break\nprint(s)", "S = input()\nK = int(input())\n \nans = 0\ns0 = 0\n \nfor s in S:\n if s == '1':\n s0 += 1\n if s0 == K:break\n else: break\nprint(s)", "S = input()\nK = int(input())\n \nans = 0\ns0 = 0\n \nfor s in S:\n if s == '1':\n s0 += 1\n if s0 == K:break\n else: break\nprint(s)", "S = input()\nK = int(input())\n \nans = 0\ns0 = 0\n \nfor s in S:\n if s == '1':\n s0 += 1\n if s0 == K:break\n else: break\nprint(s)", 'A, B = map(int, input().split())\n\nprint(A * B - A - B + 1)', 'A, B = map(int, input().split())\n\nprint(A * B - A - B + 1)', 'A, B = map(int, input().split())\n\nprint(A * B - A - B + 1)', 'A, B = map(int, input().split())\n\nprint(A * B - A - B + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s753241052', 's753241052', 's753241052', 's753241052', 's289681878', 's289681878', 's289681878', 's289681878']
[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]
[142, 142, 142, 142, 58, 58, 58, 58]
p03280
u187883751
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input().split)\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split)\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split)\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split)\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split())\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split())\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split())\nprint(a*b-(a+b-1))\n', 'a,b=map(int,input().split())\nprint(a*b-(a+b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s858736492', 's858736492', 's858736492', 's858736492', 's342627028', 's342627028', 's342627028', 's342627028']
[9008.0, 9008.0, 9008.0, 9008.0, 9008.0, 9008.0, 9008.0, 9008.0]
[25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0]
[46, 46, 46, 46, 48, 48, 48, 48]
p03280
u192908410
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else 2 if n >=n 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else 2 if n >=n 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else if 2 if n >= 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else if 2 if n >= 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else 2 if n >=n 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else 2 if n >=n 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else if 2 if n >= 135 else 1 if n >= 105 else 0)', 'n = int(input())\nprint(4 if n >= 189 else 3 if n >= 165 else if 2 if n >= 135 else 1 if n >= 105 else 0)', 'print((lambda x:(x[0]-1)*(x[1]-1))(list(map(int,input().split()))))', 'print((lambda x:(x[0]-1)*(x[1]-1))(list(map(int,input().split()))))', 'print((lambda x:(x[0]-1)*(x[1]-1))(list(map(int,input().split()))))', 'print((lambda x:(x[0]-1)*(x[1]-1))(list(map(int,input().split()))))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s031278852', 's031278852', 's295642042', 's295642042', 's031278852', 's031278852', 's295642042', 's295642042', 's406495682', 's406495682', 's406495682', 's406495682']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[102, 102, 104, 104, 102, 102, 104, 104, 67, 67, 67, 67]
p03280
u194689114
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['l = int(input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = int(input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'N = int(input())\nlist = []\nfor i in range(1, N):\n numbers = []\n for a in range(1, i):\n if i % a == 0:\n numbers.append()\n if len(numbers) == 8:\n list.append(i)\nprint(len(list))', 'N = int(input())\nlist = []\nfor i in range(1, N):\n numbers = []\n for a in range(1, i):\n if i % a == 0:\n numbers.append()\n if len(numbers) == 8:\n list.append(i)\nprint(len(list))', 'l = int(input().split())\nprint(l[0] * l[1] - (l[0] + l[1] -1))', 'l = int(input().split())\nprint(l[0] * l[1] - (l[0] + l[1] -1))', 'l = input().split()\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = input().split()\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) - 1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) - 1))', 'l = int(input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = int(input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'N = int(input())\nlist = []\nfor i in range(1, N):\n numbers = []\n for a in range(1, i):\n if i % a == 0:\n numbers.append()\n if len(numbers) == 8:\n list.append(i)\nprint(len(list))', 'N = int(input())\nlist = []\nfor i in range(1, N):\n numbers = []\n for a in range(1, i):\n if i % a == 0:\n numbers.append()\n if len(numbers) == 8:\n list.append(i)\nprint(len(list))', 'l = int(input().split())\nprint(l[0] * l[1] - (l[0] + l[1] -1))', 'l = int(input().split())\nprint(l[0] * l[1] - (l[0] + l[1] -1))', 'l = input().split()\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = input().split()\nprint(l(0) * l(1) - (l(0) + l(1) -1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) - 1))', 'l = map(int, raw_input().split())\nprint(l(0) * l(1) - (l(0) + l(1) - 1))', 'a, b = map(int, input().split())\n \nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\n \nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\n \nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\n \nprint((a - 1) * (b - 1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s010994742', 's010994742', 's049893429', 's049893429', 's506155521', 's506155521', 's540521077', 's540521077', 's741573039', 's741573039', 's872878095', 's872878095', 's010994742', 's010994742', 's049893429', 's049893429', 's506155521', 's506155521', 's540521077', 's540521077', 's741573039', 's741573039', 's872878095', 's872878095', 's332049699', 's332049699', 's332049699', 's332049699']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[62, 62, 71, 71, 191, 191, 62, 62, 57, 57, 72, 72, 62, 62, 71, 71, 191, 191, 62, 62, 57, 57, 72, 72, 59, 59, 59, 59]
p03280
u194884141
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['data = input()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input().split()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input().split()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input().split()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)', 'data = input().split()\na = int(data[0])\nb = int(data[1])\nprint(a * b - a - b + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s741301115', 's741301115', 's741301115', 's741301115', 's514903739', 's514903739', 's514903739', 's514903739']
[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]
[73, 73, 73, 73, 81, 81, 81, 81]
p03280
u201234972
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['import sys\ninput = sys.stdin.readline\nN, M, Q = map( int, input().split())\nNN = [ [ 0 for _ in range(N+1)] for _ in range(N+1)]\nfor _ in range(M):\n L, R = map( int, input().split())\n NN[L][R] += 1\nSum = [ [ 0 ] for _ in range(N+1)]\nfor i in range(1,N+1):\n for j in range(1,N+1):\n Sum[i].append(Sum[i][-1]+NN[i][j])\nfor _ in range(Q):\n p, q = map(int, input().split())\n ans = 0\n for i in range(p,q+1):\n ans += Sum[i][q] - Sum[i][p-1]\n print(ans)', 'import sys\ninput = sys.stdin.readline\nN, M, Q = map( int, input().split())\nNN = [ [ 0 for _ in range(N+1)] for _ in range(N+1)]\nfor _ in range(M):\n L, R = map( int, input().split())\n NN[L][R] += 1\nSum = [ [ 0 ] for _ in range(N+1)]\nfor i in range(1,N+1):\n for j in range(1,N+1):\n Sum[i].append(Sum[i][-1]+NN[i][j])\nfor _ in range(Q):\n p, q = map(int, input().split())\n ans = 0\n for i in range(p,q+1):\n ans += Sum[i][q] - Sum[i][p-1]\n print(ans)', 'A = int(input())\nB = int(input())\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\nprint(A*B - A - B + 1)', 'import sys\ninput = sys.stdin.readline\nN, M, Q = map( int, input().split())\nNN = [ [ 0 for _ in range(N+1)] for _ in range(N+1)]\nfor _ in range(M):\n L, R = map( int, input().split())\n NN[L][R] += 1\nSum = [ [ 0 ] for _ in range(N+1)]\nfor i in range(1,N+1):\n for j in range(1,N+1):\n Sum[i].append(Sum[i][-1]+NN[i][j])\nfor _ in range(Q):\n p, q = map(int, input().split())\n ans = 0\n for i in range(p,q+1):\n ans += Sum[i][q] - Sum[i][p-1]\n print(ans)', 'import sys\ninput = sys.stdin.readline\nN, M, Q = map( int, input().split())\nNN = [ [ 0 for _ in range(N+1)] for _ in range(N+1)]\nfor _ in range(M):\n L, R = map( int, input().split())\n NN[L][R] += 1\nSum = [ [ 0 ] for _ in range(N+1)]\nfor i in range(1,N+1):\n for j in range(1,N+1):\n Sum[i].append(Sum[i][-1]+NN[i][j])\nfor _ in range(Q):\n p, q = map(int, input().split())\n ans = 0\n for i in range(p,q+1):\n ans += Sum[i][q] - Sum[i][p-1]\n print(ans)', 'A = int(input())\nB = int(input())\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\nprint(A*B - A - B + 1)', 'A, B = map( int, input().split())\nprint(A*B - A - B + 1)', 'A, B = map( int, input().split())\nprint(A*B - A - B + 1)', 'A, B = map( int, input().split())\nprint(A*B - A - B + 1)', 'A, B = map( int, input().split())\nprint(A*B - A - B + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s292869690', 's292869690', 's958647890', 's958647890', 's292869690', 's292869690', 's958647890', 's958647890', 's849728672', 's849728672', 's849728672', 's849728672']
[3064.0, 3064.0, 3316.0, 3316.0, 3064.0, 3064.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0, 20.0, 17.0, 17.0, 20.0, 20.0, 17.0, 17.0, 17.0, 17.0]
[479, 479, 56, 56, 479, 479, 56, 56, 56, 56, 56, 56]
p03280
u207822067
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\nprint(int((A-1)*(B-1)))', 'A = int(input())\nB = int(input())\nprint(int((A-1)*(B-1)))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint(int((A-1)*(B-1)))', 'A = int(input())\nB = int(input())\nprint(int((A-1)*(B-1)))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))\n', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))\n', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))\n', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s120961455', 's120961455', 's424688911', 's424688911', 's120961455', 's120961455', 's424688911', 's424688911', 's380636740', 's380636740', 's380636740', 's380636740']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[57, 57, 52, 52, 57, 57, 52, 52, 48, 48, 48, 48]
p03280
u215115622
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a = input()\nm = int(a[0])\nn = int(a[1])\n\nprint(m*n - m - n +1)', 'a = input()\nm = int(a[0])\nn = int(a[1])\n\nprint(m*n - m - n +1)', 'a = input()\nm = int(a[0])\nn = int(a[1])\n\nprint(m*n - m - n +1)', 'a = input()\nm = int(a[0])\nn = int(a[1])\n\nprint(m*n - m - n +1)', 'a = input().split()\nm = int(a[0])\nn = int(a[1])\n \nprint(m*n - m - n +1)', 'a = input().split()\nm = int(a[0])\nn = int(a[1])\n \nprint(m*n - m - n +1)', 'a = input().split()\nm = int(a[0])\nn = int(a[1])\n \nprint(m*n - m - n +1)', 'a = input().split()\nm = int(a[0])\nn = int(a[1])\n \nprint(m*n - m - n +1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s197307885', 's197307885', 's197307885', 's197307885', 's729883231', 's729883231', 's729883231', 's729883231']
[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]
[62, 62, 62, 62, 71, 71, 71, 71]
p03280
u216631280
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nprint(a * b - a + b - 1)', 'a, b = map(int, input().split())\nprint(a * b - a + b - 1)', 'a, b = map(int, input().split())\nprint(a * b - a + b - 1)', 'a, b = map(int, input().split())\nprint(a * b - a + b - 1)', 'a, b = map(int, input().split())\nprint(a * b - ( a + b - 1))', 'a, b = map(int, input().split())\nprint(a * b - ( a + b - 1))', 'a, b = map(int, input().split())\nprint(a * b - ( a + b - 1))', 'a, b = map(int, input().split())\nprint(a * b - ( a + b - 1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s846874656', 's846874656', 's846874656', 's846874656', 's510134775', 's510134775', 's510134775', 's510134775']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[57, 57, 57, 57, 60, 60, 60, 60]
p03280
u220345792
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A, B = map(int, input().split())\nprint(A*B)', 'A, B = map(int, input().split())\nprint(A*B)', 'N = int(input())\nans = 0\nif N < 105:\n pass\nelse:\n for i in range(105, N+1, 2):\n cnt = 0\n for j in range(1, N+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n \nprint(ans) \n\n', 'N = int(input())\nans = 0\nif N < 105:\n pass\nelse:\n for i in range(105, N+1, 2):\n cnt = 0\n for j in range(1, N+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n \nprint(ans) \n\n', 'A, B = map(int, input().split())\nprint(A*B)', 'A, B = map(int, input().split())\nprint(A*B)', 'N = int(input())\nans = 0\nif N < 105:\n pass\nelse:\n for i in range(105, N+1, 2):\n cnt = 0\n for j in range(1, N+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n \nprint(ans) \n\n', 'N = int(input())\nans = 0\nif N < 105:\n pass\nelse:\n for i in range(105, N+1, 2):\n cnt = 0\n for j in range(1, N+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n \nprint(ans) \n\n', 'A, B = map(int, input().split())\nprint((A-1)*(B-1))\n', 'A, B = map(int, input().split())\nprint((A-1)*(B-1))\n', 'A, B = map(int, input().split())\nprint((A-1)*(B-1))\n', 'A, B = map(int, input().split())\nprint((A-1)*(B-1))\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s482624403', 's482624403', 's708646720', 's708646720', 's482624403', 's482624403', 's708646720', 's708646720', 's232400241', 's232400241', 's232400241', 's232400241']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[43, 43, 212, 212, 43, 43, 212, 212, 52, 52, 52, 52]
p03280
u221345507
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A=int(input())\nB=int(input())\nprint((A-1)*(B-1))', 'A=int(input())\nB=int(input())\nprint((A-1)*(B-1))', 'A=int(input())\nB=int(input())\nprint((A-1)*(B-1))', 'A=int(input())\nB=int(input())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s458444031', 's458444031', 's458444031', 's458444031', 's627222506', 's627222506', 's627222506', 's627222506']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[48, 48, 48, 48, 47, 47, 47, 47]
p03280
u228223940
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['n,m,q = map(int,input().split())\n\nlr = [[0 for i in range(n+1)] for j in range(n+1)]\n#lr = [[int(i) for i in input().split()]for j in range(m)]\n\nst = [0] * (n+1)\ned = [0] * (n+1)\n\nfor i in range(m):\n l,r = map(int,input().split())\n lr[l][r] += 1\n\npq = [[int(i) for i in input().split()]for j in range(q)]\n\ndp = [[0 for i in range(n+1)] for j in range(n+1)]\n\n#print(lr)\n\nfor i in range(1,n+1):\n #print(i)\n for j in range(i,n+1):\n #print(i,j)\n dp[i][j] = dp[i][j-1]+lr[i][j]\n\nfor i in range(q):\n st = pq[i][0]\n ed = pq[i][1]\n tmp = 0\n for j in range(ed-st+1):\n tmp += dp[st+j][ed]\n print(tmp)\n#print(dp)', 'n,m,q = map(int,input().split())\n\nlr = [[0 for i in range(n+1)] for j in range(n+1)]\n#lr = [[int(i) for i in input().split()]for j in range(m)]\n\nst = [0] * (n+1)\ned = [0] * (n+1)\n\nfor i in range(m):\n l,r = map(int,input().split())\n lr[l][r] += 1\n\npq = [[int(i) for i in input().split()]for j in range(q)]\n\ndp = [[0 for i in range(n+1)] for j in range(n+1)]\n\n#print(lr)\n\nfor i in range(1,n+1):\n #print(i)\n for j in range(i,n+1):\n #print(i,j)\n dp[i][j] = dp[i][j-1]+lr[i][j]\n\nfor i in range(q):\n st = pq[i][0]\n ed = pq[i][1]\n tmp = 0\n for j in range(ed-st+1):\n tmp += dp[st+j][ed]\n print(tmp)\n#print(dp)', 'n,m,q = map(int,input().split())\n\nlr = [[0 for i in range(n+1)] for j in range(n+1)]\n#lr = [[int(i) for i in input().split()]for j in range(m)]\n\nst = [0] * (n+1)\ned = [0] * (n+1)\n\nfor i in range(m):\n l,r = map(int,input().split())\n lr[l][r] += 1\n\npq = [[int(i) for i in input().split()]for j in range(q)]\n\ndp = [[0 for i in range(n+1)] for j in range(n+1)]\n\n#print(lr)\n\nfor i in range(1,n+1):\n #print(i)\n for j in range(i,n+1):\n #print(i,j)\n dp[i][j] = dp[i][j-1]+lr[i][j]\n\nfor i in range(q):\n st = pq[i][0]\n ed = pq[i][1]\n tmp = 0\n for j in range(ed-st+1):\n tmp += dp[st+j][ed]\n print(tmp)\n#print(dp)', 'n,m,q = map(int,input().split())\n\nlr = [[0 for i in range(n+1)] for j in range(n+1)]\n#lr = [[int(i) for i in input().split()]for j in range(m)]\n\nst = [0] * (n+1)\ned = [0] * (n+1)\n\nfor i in range(m):\n l,r = map(int,input().split())\n lr[l][r] += 1\n\npq = [[int(i) for i in input().split()]for j in range(q)]\n\ndp = [[0 for i in range(n+1)] for j in range(n+1)]\n\n#print(lr)\n\nfor i in range(1,n+1):\n #print(i)\n for j in range(i,n+1):\n #print(i,j)\n dp[i][j] = dp[i][j-1]+lr[i][j]\n\nfor i in range(q):\n st = pq[i][0]\n ed = pq[i][1]\n tmp = 0\n for j in range(ed-st+1):\n tmp += dp[st+j][ed]\n print(tmp)\n#print(dp)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s200524645', 's200524645', 's200524645', 's200524645', 's509516383', 's509516383', 's509516383', 's509516383']
[3064.0, 3064.0, 3064.0, 3064.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]
[649, 649, 649, 649, 47, 47, 47, 47]
p03280
u228636605
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['n = int(input())\ncount1 = 0\n\nfor i in range(1, n + 1, 2):\n count2 = 0\n\n for j in range(1, i + 1):\n if i % j == 0:\n count2 += 1\n\n if count2 == 8:\n count1 += 1\n\nprint(count1)', 'n = int(input())\ncount1 = 0\n\nfor i in range(1, n + 1, 2):\n count2 = 0\n\n for j in range(1, i + 1):\n if i % j == 0:\n count2 += 1\n\n if count2 == 8:\n count1 += 1\n\nprint(count1)', 'n = int(input())\ncount1 = 0\n\nfor i in range(1, n + 1, 2):\n count2 = 0\n\n for j in range(1, i + 1):\n if i % j == 0:\n count2 += 1\n\n if count2 == 8:\n count1 += 1\n\nprint(count1)', 'n = int(input())\ncount1 = 0\n\nfor i in range(1, n + 1, 2):\n count2 = 0\n\n for j in range(1, i + 1):\n if i % j == 0:\n count2 += 1\n\n if count2 == 8:\n count1 += 1\n\nprint(count1)', 'A , B = map(int,input().split())\n\nprint((A -1) * (B - 1))', 'A , B = map(int,input().split())\n\nprint((A -1) * (B - 1))', 'A , B = map(int,input().split())\n\nprint((A -1) * (B - 1))', 'A , B = map(int,input().split())\n\nprint((A -1) * (B - 1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s470078716', 's470078716', 's470078716', 's470078716', 's226563476', 's226563476', 's226563476', 's226563476']
[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]
[206, 206, 206, 206, 57, 57, 57, 57]
p03280
u234631479
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s157262737', 's157262737', 's157262737', 's157262737', 's575319367', 's575319367', 's575319367', 's575319367']
[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]
[40, 40, 40, 40, 51, 51, 51, 51]
p03280
u239301277
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s716375733', 's716375733', 's716375733', 's716375733', 's249912681', 's249912681', 's249912681', 's249912681']
[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]
[39, 39, 39, 39, 47, 47, 47, 47]
p03280
u242196904
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a = int(input())\nb = int(input())\nprint(a * b - a - b + 1)', 'a = int(input())\nb = int(input())\nprint(a * b - a - b + 1)', 'a = int(input())\nb = int(input())\nprint(a * b - a - b + 1)', 'a = int(input())\nb = int(input())\nprint(a * b - a - b + 1)', 'a,b = list(map(int,input().split()))\nprint(a * b - a - b + 1)', 'a,b = list(map(int,input().split()))\nprint(a * b - a - b + 1)', 'a,b = list(map(int,input().split()))\nprint(a * b - a - b + 1)', 'a,b = list(map(int,input().split()))\nprint(a * b - a - b + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s629604156', 's629604156', 's629604156', 's629604156', 's539012832', 's539012832', 's539012832', 's539012832']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[58, 58, 58, 58, 61, 61, 61, 61]
p03280
u244916949
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['import sys\nn = int(input())\n\n\ncn = 0\n\ncy = 0\n\nif n < 105:\n print(0)\n sys.exit()\n\nfor i in range(105, n+1):\n if i % 2 == 0:\n continue\n\n for j in range(1, i+1):\n if i % j == 0:\n cy += 1\n if cy == 8:\n cn += 1\n cy = 0\nprint(cn)\n', 'import sys\nn = int(input())\n\n\ncn = 0\n\ncy = 0\n\nif n < 105:\n print(0)\n sys.exit()\n\nfor i in range(105, n+1):\n if i % 2 == 0:\n continue\n\n for j in range(1, i+1):\n if i % j == 0:\n cy += 1\n if cy == 8:\n cn += 1\n cy = 0\nprint(cn)\n', 'import sys\nn = int(input())\n\n\ncn = 0\n\ncy = 0\n\nif n < 105:\n print(0)\n sys.exit()\n\nfor i in range(105, n+1):\n if i % 2 == 0:\n continue\n\n for j in range(1, i+1):\n if i % j == 0:\n cy += 1\n if cy == 8:\n cn += 1\n cy = 0\nprint(cn)\n', 'import sys\nn = int(input())\n\n\ncn = 0\n\ncy = 0\n\nif n < 105:\n print(0)\n sys.exit()\n\nfor i in range(105, n+1):\n if i % 2 == 0:\n continue\n\n for j in range(1, i+1):\n if i % j == 0:\n cy += 1\n if cy == 8:\n cn += 1\n cy = 0\nprint(cn)\n', 'a,b = map(int,input().split())\n\nc = (a - 1) * (b - 1)\n\nprint(c)\n', 'a,b = map(int,input().split())\n\nc = (a - 1) * (b - 1)\n\nprint(c)\n', 'a,b = map(int,input().split())\n\nc = (a - 1) * (b - 1)\n\nprint(c)\n', 'a,b = map(int,input().split())\n\nc = (a - 1) * (b - 1)\n\nprint(c)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s883335084', 's883335084', 's883335084', 's883335084', 's623230850', 's623230850', 's623230850', 's623230850']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[20.0, 20.0, 20.0, 20.0, 17.0, 17.0, 17.0, 17.0]
[324, 324, 324, 324, 65, 65, 65, 65]
p03280
u246572032
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nprint(a*b - a*1 + b*1)', 'a, b = map(int, input().split())\nprint(a*b - a*1 + b*1)', 'a, b = map(int, input().split())\nprint(a*b - a*1 + b*1)', 'a, b = map(int, input().split())\nprint(a*b - a*1 + b*1)', 'A,B = map(int,input().split())\nprint(A*B-(A*1+B*1)+1)', 'A,B = map(int,input().split())\nprint(A*B-(A*1+B*1)+1)', 'A,B = map(int,input().split())\nprint(A*B-(A*1+B*1)+1)', 'A,B = map(int,input().split())\nprint(A*B-(A*1+B*1)+1)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s465696829', 's465696829', 's465696829', 's465696829', 's448667313', 's448667313', 's448667313', 's448667313']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[55, 55, 55, 55, 53, 53, 53, 53]
p03280
u246820565
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\nprint((a-1)*(b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s656691870', 's656691870', 's656691870', 's656691870', 's816926778', 's816926778', 's816926778', 's816926778']
[3188.0, 3188.0, 3188.0, 3188.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[51, 51, 51, 51, 50, 50, 50, 50]
p03280
u248670337
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s433120556', 's433120556', 's433120556', 's433120556', 's664994605', 's664994605', 's664994605', 's664994605']
[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]
[40, 40, 40, 40, 47, 47, 47, 47]
p03280
u249727132
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nprint(a * b - a - b -1)', 'a, b = map(int, input().split())\nprint(a * b - a - b -1)', 'a, b = map(int, input().split())\nprint(a * b - a - b -1)', 'a, b = map(int, input().split())\nprint(a * b - a - b -1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)', 'a, b = map(int, input().split())\nprint(a * b - a - b + 1)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s248906080', 's248906080', 's248906080', 's248906080', 's833467487', 's833467487', 's833467487', 's833467487']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[56, 56, 56, 56, 57, 57, 57, 57]
p03280
u263830634
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A, B = map(int, input().split())\nprint ((A-1)*(B-1)', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1)', 'A, B = map(int, input().split())\nprint (A*B)', 'A, B = map(int, input().split())\nprint (A*B)', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1)', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1)', 'A, B = map(int, input().split())\nprint (A*B)', 'A, B = map(int, input().split())\nprint (A*B)', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1))', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1))', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1))', 'A, B = map(int, input().split())\nprint ((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s075423774', 's075423774', 's206866547', 's206866547', 's075423774', 's075423774', 's206866547', 's206866547', 's438262675', 's438262675', 's438262675', 's438262675']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[51, 51, 44, 44, 51, 51, 44, 44, 52, 52, 52, 52]
p03280
u266768906
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['import numpy\n\nl = raw_input().split()\n\nc =((l[0] - 1) * (l[1] - 1))\n\nprint(c)', 'import numpy\n\nl = raw_input().split()\n\nc =((l[0] - 1) * (l[1] - 1))\n\nprint(c)', 'import numpy\n\nl = raw_input().split()\n\nc =((l[0] - 1) * (l[1] - 1))\n\nprint(c)', 'import numpy\n\nl = raw_input().split()\n\nc =((l[0] - 1) * (l[1] - 1))\n\nprint(c)', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s021185433', 's021185433', 's021185433', 's021185433', 's487011621', 's487011621', 's487011621', 's487011621']
[12420.0, 12420.0, 12420.0, 12420.0, 2940.0, 2940.0, 2940.0, 2940.0]
[148.0, 148.0, 148.0, 148.0, 17.0, 17.0, 17.0, 17.0]
[77, 77, 77, 77, 57, 57, 57, 57]
p03280
u267300160
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input().split())\nprint((a*b)-a-b+1))', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1))', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1))', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1))', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1)', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1)', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1)', 'a,b = map(int,input().split())\nprint((a*b)-a-b+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s124106695', 's124106695', 's124106695', 's124106695', 's860009105', 's860009105', 's860009105', 's860009105']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[50, 50, 50, 50, 49, 49, 49, 49]
p03280
u269767135
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A = int(input())\nB = int(input())\n\nprint((A-1)*(B-1))\n', 'A = int(input())\nB = int(input())\n\nprint((A-1)*(B-1))\n', 'A = int(input())\nB = int(input())\n\nprint((A-1)*(B-1))\n', 'A = int(input())\nB = int(input())\n\nprint((A-1)*(B-1))\n', 'L = list(map(int, input().split()))\n\nprint((L[0]-1)*(L[1]-1))\n', 'L = list(map(int, input().split()))\n\nprint((L[0]-1)*(L[1]-1))\n', 'L = list(map(int, input().split()))\n\nprint((L[0]-1)*(L[1]-1))\n', 'L = list(map(int, input().split()))\n\nprint((L[0]-1)*(L[1]-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s582565246', 's582565246', 's582565246', 's582565246', 's790536284', 's790536284', 's790536284', 's790536284']
[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]
[54, 54, 54, 54, 62, 62, 62, 62]
p03280
u277802731
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['#106a\na,b=map(int,input().split())\npritn((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\npritn((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\npritn((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\npritn((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\nprint((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\nprint((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\nprint((a-1)*(b-1))', '#106a\na,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s605520205', 's605520205', 's605520205', 's605520205', 's412368602', 's412368602', 's412368602', 's412368602']
[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]
[53, 53, 53, 53, 53, 53, 53, 53]
p03280
u280016524
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A=int(input())\nB=int(input())\nprint(A*B-(A+B-1))', 'A=int(input())\nB=int(input())\nprint(A*B-(A+B-1))', 'A=int(input())\nB=int(input())\nprint(A*B-(A+B-1))', 'A=int(input())\nB=int(input())\nprint(A*B-(A+B-1))', 'listA=list(map(int,input().split()))\n\nprint(listA[0]*listA[1]-(listA[0]+listA[1]-1))', 'listA=list(map(int,input().split()))\n\nprint(listA[0]*listA[1]-(listA[0]+listA[1]-1))', 'listA=list(map(int,input().split()))\n\nprint(listA[0]*listA[1]-(listA[0]+listA[1]-1))', 'listA=list(map(int,input().split()))\n\nprint(listA[0]*listA[1]-(listA[0]+listA[1]-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s957642609', 's957642609', 's957642609', 's957642609', 's044688914', 's044688914', 's044688914', 's044688914']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[48, 48, 48, 48, 84, 84, 84, 84]
p03280
u283751459
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input().split())\n\nprint((a-1)(b-1))', 'a,b = map(int,input().split())\n\nprint((a-1)(b-1))', 'a,b = map(int,input().split())\n\nprint((a-1)(b-1))', 'a,b = map(int,input().split())\n\nprint((a-1)(b-1))', 'a,b = map(int,input().split())\n\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\n\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\n\nprint((a-1)*(b-1))\n', 'a,b = map(int,input().split())\n\nprint((a-1)*(b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s074051051', 's074051051', 's074051051', 's074051051', 's876485382', 's876485382', 's876485382', 's876485382']
[8984.0, 8984.0, 8984.0, 8984.0, 9072.0, 9072.0, 9072.0, 9072.0]
[26.0, 26.0, 26.0, 26.0, 25.0, 25.0, 25.0, 25.0]
[49, 49, 49, 49, 51, 51, 51, 51]
p03280
u284854859
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'x,y = map(int,input().split())\nprint((x-1)*(y-1))', 'x,y = map(int,input().split())\nprint((x-1)*(y-1))', 'x,y = map(int,input().split())\nprint((x-1)*(y-1))', 'x,y = map(int,input().split())\nprint((x-1)*(y-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s656049688', 's656049688', 's656049688', 's656049688', 's919447000', 's919447000', 's919447000', 's919447000']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[49, 49, 49, 49, 49, 49, 49, 49]
p03280
u286623856
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["line = input(),split(' ')\nA, B = [int(i) for i in line]\n\nS = (A-1)*(B-1)\n\nprint(S)", "line = input(),split(' ')\nA, B = [int(i) for i in line]\n\nS = (A-1)*(B-1)\n\nprint(S)", "import sys\n\narray = input().split(' ')\na = array[0]\nb = array[1]\n\nprint((a-1) * (b-1))", "import sys\n\narray = input().split(' ')\na = array[0]\nb = array[1]\n\nprint((a-1) * (b-1))", 'S = input()\nK = input()\nflag = 0\nfor i in range(len(S)):\n if S[i] =="1":\n continue\n elif S[i] =="2":\n print("2")\n flag = 1\n elif S[i] =="3":\n print("3")\n flag = 1\n elif S[i] =="4":\n print("4")\n flag = 1\n elif S[i] =="5":\n print("5")\n flag = 1\n elif S[i] =="6":\n print("6")\n flag = 1\n elif S[i] =="7":\n print("7")\n flag = 1\n elif S[i] =="8":\n print("8")\n flag = 1\n elif S[i] =="9":\n print("9")\n flag = 1\n\n break\nif flag == 0:\n print("1")\n', 'S = input()\nK = input()\nflag = 0\nfor i in range(len(S)):\n if S[i] =="1":\n continue\n elif S[i] =="2":\n print("2")\n flag = 1\n elif S[i] =="3":\n print("3")\n flag = 1\n elif S[i] =="4":\n print("4")\n flag = 1\n elif S[i] =="5":\n print("5")\n flag = 1\n elif S[i] =="6":\n print("6")\n flag = 1\n elif S[i] =="7":\n print("7")\n flag = 1\n elif S[i] =="8":\n print("8")\n flag = 1\n elif S[i] =="9":\n print("9")\n flag = 1\n\n break\nif flag == 0:\n print("1")\n', 'a = input()\nb = input()\nA = int(a)\nB = int(b)\nprint((A*B)-A-B + 1)', 'a = input()\nb = input()\nA = int(a)\nB = int(b)\nprint((A*B)-A-B + 1)', "line = input(),split(' ')\nA, B = [int(i) for i in line]\n\nS = (A-1)*(B-1)\n\nprint(S)", "line = input(),split(' ')\nA, B = [int(i) for i in line]\n\nS = (A-1)*(B-1)\n\nprint(S)", "import sys\n\narray = input().split(' ')\na = array[0]\nb = array[1]\n\nprint((a-1) * (b-1))", "import sys\n\narray = input().split(' ')\na = array[0]\nb = array[1]\n\nprint((a-1) * (b-1))", 'S = input()\nK = input()\nflag = 0\nfor i in range(len(S)):\n if S[i] =="1":\n continue\n elif S[i] =="2":\n print("2")\n flag = 1\n elif S[i] =="3":\n print("3")\n flag = 1\n elif S[i] =="4":\n print("4")\n flag = 1\n elif S[i] =="5":\n print("5")\n flag = 1\n elif S[i] =="6":\n print("6")\n flag = 1\n elif S[i] =="7":\n print("7")\n flag = 1\n elif S[i] =="8":\n print("8")\n flag = 1\n elif S[i] =="9":\n print("9")\n flag = 1\n\n break\nif flag == 0:\n print("1")\n', 'S = input()\nK = input()\nflag = 0\nfor i in range(len(S)):\n if S[i] =="1":\n continue\n elif S[i] =="2":\n print("2")\n flag = 1\n elif S[i] =="3":\n print("3")\n flag = 1\n elif S[i] =="4":\n print("4")\n flag = 1\n elif S[i] =="5":\n print("5")\n flag = 1\n elif S[i] =="6":\n print("6")\n flag = 1\n elif S[i] =="7":\n print("7")\n flag = 1\n elif S[i] =="8":\n print("8")\n flag = 1\n elif S[i] =="9":\n print("9")\n flag = 1\n\n break\nif flag == 0:\n print("1")\n', 'a = input()\nb = input()\nA = int(a)\nB = int(b)\nprint((A*B)-A-B + 1)', 'a = input()\nb = input()\nA = int(a)\nB = int(b)\nprint((A*B)-A-B + 1)', '# coding: utf-8\n# Your code here!\na, b = [int(i) for i in input().split()]\ns = (a - 1) * (b - 1)\n\nprint(s)\n', '# coding: utf-8\n# Your code here!\na, b = [int(i) for i in input().split()]\ns = (a - 1) * (b - 1)\n\nprint(s)\n', '# coding: utf-8\n# Your code here!\na, b = [int(i) for i in input().split()]\ns = (a - 1) * (b - 1)\n\nprint(s)\n', '# coding: utf-8\n# Your code here!\na, b = [int(i) for i in input().split()]\ns = (a - 1) * (b - 1)\n\nprint(s)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s060142046', 's060142046', 's108302032', 's108302032', 's947043019', 's947043019', 's995726575', 's995726575', 's060142046', 's060142046', 's108302032', 's108302032', 's947043019', 's947043019', 's995726575', 's995726575', 's209823081', 's209823081', 's209823081', 's209823081']
[2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 9132.0, 9132.0, 9132.0, 9132.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 26.0, 26.0, 26.0, 26.0]
[82, 82, 86, 86, 589, 589, 66, 66, 82, 82, 86, 86, 589, 589, 66, 66, 107, 107, 107, 107]
p03280
u294385082
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)', 'a,b = map(int,input().split())\nprint(a*b-a-b+1)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s900012344', 's900012344', 's927430626', 's927430626', 's900012344', 's900012344', 's927430626', 's927430626', 's013258760', 's013258760', 's013258760', 's013258760']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[45, 45, 45, 45, 45, 45, 45, 45, 47, 47, 47, 47]
p03280
u294400595
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int, input(),split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input(),split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input(),split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input(),split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b=map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a,b=map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a,b=map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)', 'a,b=map(int, input().split())\nc=(a-1)*(b-1)\nprint(c)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s456322200', 's456322200', 's456322200', 's456322200', 's139379800', 's139379800', 's139379800', 's139379800']
[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]
[58, 58, 58, 58, 52, 52, 52, 52]
p03280
u295457032
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int, input().split())\na = 1\nb = 1\nfor i in range(100):\n a = a + i\n for j in range(100):\n b = b + j\n c = (a-1) * (b-1)\n print(c)', 'a,b = map(int, input().split())\na = 1\nb = 1\nfor i in range(100):\n a = a + i\n for j in range(100):\n b = b + j\n c = (a-1) * (b-1)\n print(c)', 'a,b = map(int, input().split())\na == 1\nb == 1\nfor i in range(100):\n\ta = a + i\n for j in range(100):\n\t\tb = b + j\n\t\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\na == 1\nb == 1\nfor i in range(100):\n\ta = a + i\n for j in range(100):\n\t\tb = b + j\n\t\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\n', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\n', 'a,b = map(int, input().split())\nfor 2 in range(100):\n\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\nfor 2 in range(100):\n\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\na = 1\nb = 1\nfor i in range(100):\n a = a + i\n for j in range(100):\n b = b + j\n c = (a-1) * (b-1)\n print(c)', 'a,b = map(int, input().split())\na = 1\nb = 1\nfor i in range(100):\n a = a + i\n for j in range(100):\n b = b + j\n c = (a-1) * (b-1)\n print(c)', 'a,b = map(int, input().split())\na == 1\nb == 1\nfor i in range(100):\n\ta = a + i\n for j in range(100):\n\t\tb = b + j\n\t\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\na == 1\nb == 1\nfor i in range(100):\n\ta = a + i\n for j in range(100):\n\t\tb = b + j\n\t\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\n', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\n', 'a,b = map(int, input().split())\nfor 2 in range(100):\n\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\nfor 2 in range(100):\n\tc = (a-1) * (b-1)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\nprint(c)', 'a,b = map(int, input().split())\nc = (a-1) * (b-1)\nprint(c)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s214325062', 's214325062', 's695197643', 's695197643', 's900095553', 's900095553', 's911221487', 's911221487', 's214325062', 's214325062', 's695197643', 's695197643', 's900095553', 's900095553', 's911221487', 's911221487', 's272542102', 's272542102', 's272542102', 's272542102']
[3252.0, 3252.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3252.0, 3252.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[27.0, 27.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 27.0, 27.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[140, 140, 134, 134, 50, 50, 71, 71, 140, 140, 134, 134, 50, 50, 71, 71, 58, 58, 58, 58]
p03280
u296518383
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(h + 1)] for _ in range(w + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\nAcum[q][q] - Acum[p - 1][q] - Acum[q][p - 1] + Acum[p - 1][p - 1]\n', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(h + 1)] for _ in range(w + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\nAcum[q][q] - Acum[p - 1][q] - Acum[q][p - 1] + Acum[p - 1][p - 1]\n', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(w + 1)] for _ in range(h + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\n#for a in Acum:\n# print(a)', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(w + 1)] for _ in range(h + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\n#for a in Acum:\n# print(a)', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(h + 1)] for _ in range(w + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\nAcum[q][q] - Acum[p - 1][q] - Acum[q][p - 1] + Acum[p - 1][p - 1]\n', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(h + 1)] for _ in range(w + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\nAcum[q][q] - Acum[p - 1][q] - Acum[q][p - 1] + Acum[p - 1][p - 1]\n', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(w + 1)] for _ in range(h + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\n#for a in Acum:\n# print(a)', '\n\n# Acum[i2 + 1][j2 + 1] - Acum[i1][j2 + 1] - Acum[i2 + 1][j1] + Acum[i1][j1]\ndef two_dim_accumulate(a) -> list:\n h, w = len(a), len(a[0])\n acum = [[0 for _ in range(w + 1)] for _ in range(h + 1)]\n for i in range(h):\n for j in range(w):\n acum[i + 1][j + 1] = a[i][j]\n for i in range(1, h + 1):\n for j in range(1, w + 1):\n acum[i][j] += acum[i][j - 1]\n for j in range(1, w + 1):\n for i in range(1, h + 1):\n acum[i][j] += acum[i - 1][j]\n return acum\n\nAcum = two_dim_accumulate(A)\n#for a in Acum:\n# print(a)', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s047924518', 's047924518', 's394081527', 's394081527', 's047924518', 's047924518', 's394081527', 's394081527', 's180738958', 's180738958', 's180738958', 's180738958']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.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, 17.0, 17.0, 17.0, 17.0]
[656, 656, 617, 617, 656, 656, 617, 617, 47, 47, 47, 47]
p03280
u297046168
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + )', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + )', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + )', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + )', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input.split()))\nprint((A-1)*(B-1) + 1)', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1))', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1))', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1))', 'A,B=list(map(int,input().split()))\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s346262481', 's346262481', 's445157356', 's445157356', 's800131599', 's800131599', 's346262481', 's346262481', 's445157356', 's445157356', 's800131599', 's800131599', 's197882384', 's197882384', 's197882384', 's197882384']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[54, 54, 57, 57, 55, 55, 54, 54, 57, 57, 55, 55, 53, 53, 53, 53]
p03280
u298373736
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input().split())\nprint(int((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1)))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1)))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1)))', 'a,b=map(int,input().split())\nprint(int((a-1)*(b-1)))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s186639099', 's186639099', 's186639099', 's186639099', 's028995511', 's028995511', 's028995511', 's028995511']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[51, 51, 51, 51, 52, 52, 52, 52]
p03280
u304318875
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nprint(x[0] * x[1])', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nprint(x[0] * x[1])', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nprint(x[0] * x[1])', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nprint(x[0] * x[1])', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nans = (x[0] - 1) * (x[1] - 1)\n\nprint(ans)', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nans = (x[0] - 1) * (x[1] - 1)\n\nprint(ans)', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nans = (x[0] - 1) * (x[1] - 1)\n\nprint(ans)', 'import numpy as np\n\ndef input_numbers():\n temp = list(map(int, input().split()))\n return temp\n\ndef GCD(a, b):\n if(a < b):\n temp = a\n a = b\n b = temp\n a = a % b\n if(a == 0):\n return b\n else:\n return GCD(a, b)\n\nx = input_numbers()\n\nans = (x[0] - 1) * (x[1] - 1)\n\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s247091255', 's247091255', 's247091255', 's247091255', 's544645446', 's544645446', 's544645446', 's544645446']
[12496.0, 12496.0, 12496.0, 12496.0, 12500.0, 12500.0, 12500.0, 12500.0]
[151.0, 151.0, 151.0, 151.0, 152.0, 152.0, 152.0, 152.0]
[301, 301, 301, 301, 324, 324, 324, 324]
p03280
u306070611
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['N = int(input())\nif N < 105:\n S = 0\nelif N < 135:\n S = 1\nelif N < 165:\n S = 2\nelif N < 189:\n S = 3\nelif N < 195:\n S= 4\nelse:\n S = 5\nprint(S)', 'N = int(input())\nif N < 105:\n S = 0\nelif N < 135:\n S = 1\nelif N < 165:\n S = 2\nelif N < 189:\n S = 3\nelif N < 195:\n S= 4\nelse:\n S = 5\nprint(S)', 'N = int(input())\nif N < 105:\n S = 0\nelif N < 135:\n S = 1\nelif N < 165:\n S = 2\nelif N < 189:\n S = 3\nelif N < 195:\n S= 4\nelse:\n S = 5\nprint(S)', 'N = int(input())\nif N < 105:\n S = 0\nelif N < 135:\n S = 1\nelif N < 165:\n S = 2\nelif N < 189:\n S = 3\nelif N < 195:\n S= 4\nelse:\n S = 5\nprint(S)', 'lst = list(map(int,input().split()))\nA = lst[0]\nB = lst[1]\nS = (A-1)*(B-1)\nprint(S)', 'lst = list(map(int,input().split()))\nA = lst[0]\nB = lst[1]\nS = (A-1)*(B-1)\nprint(S)', 'lst = list(map(int,input().split()))\nA = lst[0]\nB = lst[1]\nS = (A-1)*(B-1)\nprint(S)', 'lst = list(map(int,input().split()))\nA = lst[0]\nB = lst[1]\nS = (A-1)*(B-1)\nprint(S)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s315772710', 's315772710', 's315772710', 's315772710', 's963914494', 's963914494', 's963914494', 's963914494']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[158, 158, 158, 158, 83, 83, 83, 83]
p03280
u316603606
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int, input ().split ())\nprint ((a-1)*(b-1)+1)', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1)+1)', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1)+1)', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1)+1)', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1))', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1))', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1))', 'a,b = map(int, input ().split ())\nprint ((a-1)*(b-1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s436575160', 's436575160', 's436575160', 's436575160', 's002887823', 's002887823', 's002887823', 's002887823']
[9080.0, 9080.0, 9080.0, 9080.0, 8828.0, 8828.0, 8828.0, 8828.0]
[25.0, 25.0, 25.0, 25.0, 26.0, 26.0, 26.0, 26.0]
[55, 55, 55, 55, 53, 53, 53, 53]
p03280
u317440328
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<165):\n print(1)\nelif(165<=N<195):\n print(2)\nelse:\n print(3)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<165):\n print(1)\nelif(165<=N<195):\n print(2)\nelse:\n print(3)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print(1)\nelif(135<=N<165):\n print(2)\nelif(165<=N<189):\n print(3)\nelif(189<=N<195):\n print(4)\nelse:\n print(5)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print(1)\nelif(135<=N<165):\n print(2)\nelif(165<=N<189):\n print(3)\nelif(189<=N<195):\n print(4)\nelse:\n print(5)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print("1")\nelif(135<=N<165):\n print("2")\nelif(165<=N<189):\n print("3")\nelif(189<=N<195):\n print("4")\nelse:\n print("5")', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print("1")\nelif(135<=N<165):\n print("2")\nelif(165<=N<189):\n print("3")\nelif(189<=N<195):\n print("4")\nelse:\n print("5")', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<165):\n print(1)\nelif(165<=N<195):\n print(2)\nelse:\n print(3)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<165):\n print(1)\nelif(165<=N<195):\n print(2)\nelse:\n print(3)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print(1)\nelif(135<=N<165):\n print(2)\nelif(165<=N<189):\n print(3)\nelif(189<=N<195):\n print(4)\nelse:\n print(5)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print(1)\nelif(135<=N<165):\n print(2)\nelif(165<=N<189):\n print(3)\nelif(189<=N<195):\n print(4)\nelse:\n print(5)', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print("1")\nelif(135<=N<165):\n print("2")\nelif(165<=N<189):\n print("3")\nelif(189<=N<195):\n print("4")\nelse:\n print("5")', 'N=int(input())\nif(N<105):\n print(0)\nelif(105<=N<135):\n print("1")\nelif(135<=N<165):\n print("2")\nelif(165<=N<189):\n print("3")\nelif(189<=N<195):\n print("4")\nelse:\n print("5")', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))', 'A,B=map(int,input().split())\nprint((A-1)*(B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s016643509', 's016643509', 's478818453', 's478818453', 's997745136', 's997745136', 's016643509', 's016643509', 's478818453', 's478818453', 's997745136', 's997745136', 's113258679', 's113258679', 's113258679', 's113258679']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 18.0, 18.0, 17.0, 17.0, 19.0, 19.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[111, 111, 169, 169, 179, 179, 111, 111, 169, 169, 179, 179, 47, 47, 47, 47]
p03280
u320763652
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b = map(int, input().split())\n\nprint(a*b-a-b)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b)', 'a,b = map(int, input().split())\n\nprint(a*b a-b)', 'a,b = map(int, input().split())\n\nprint(a*b a-b)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b)', 'a,b = map(int, input().split())\n\nprint(a*b a-b)', 'a,b = map(int, input().split())\n\nprint(a*b a-b)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b +1)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b +1)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b +1)', 'a,b = map(int, input().split())\n\nprint(a*b-a-b +1)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s096796400', 's096796400', 's998019062', 's998019062', 's096796400', 's096796400', 's998019062', 's998019062', 's711175584', 's711175584', 's711175584', 's711175584']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[47, 47, 47, 47, 47, 47, 47, 47, 50, 50, 50, 50]
p03280
u325119213
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input())\nprint(actual(a, b))', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input())\nprint(actual(a, b))', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input())\nprint(actual(a, b))', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input())\nprint(actual(a, b))', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input().split())\nprint(actual(a, b))\n', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input().split())\nprint(actual(a, b))\n', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input().split())\nprint(actual(a, b))\n', 'def actual(a, b):\n return (a - 1) * (b - 1)\n\na, b = map(int, input().split())\nprint(actual(a, b))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s414941920', 's414941920', 's414941920', 's414941920', 's191927493', 's191927493', 's191927493', 's191927493']
[3188.0, 3188.0, 3188.0, 3188.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[92, 92, 92, 92, 101, 101, 101, 101]
p03280
u331036636
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a,b=map(int,input().split());print(a*b-a+b+1)', 'a,b=map(int,input().split());print(a*b-a+b+1)', 'a,b=map(int,input().split());print(a*b-a+b+1)', 'a,b=map(int,input().split());print(a*b-a+b+1)', 'a,b=map(int,input().split());print(a*b-(a+b-1))', 'a,b=map(int,input().split());print(a*b-(a+b-1))', 'a,b=map(int,input().split());print(a*b-(a+b-1))', 'a,b=map(int,input().split());print(a*b-(a+b-1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s050114027', 's050114027', 's050114027', 's050114027', 's802178204', 's802178204', 's802178204', 's802178204']
[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]
[45, 45, 45, 45, 47, 47, 47, 47]
p03280
u331381193
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
["s=str(input())\nk=int(input())\n\nres=''\n\nif len(s)>=k:\n\tfor i in range(k):\n\t\tif s[i]!=1:\n\t\t\tres=s[i]\t\t\t\n\t\t\tbreak\n\t\tif i==k-1:\n\t\t\tres='1'\nelse:\n\tfor i in range(len(s)):\n\t\tif s[i]!='1':\n\t\t\tres=s[i]\n\t\t\tbreak\n\nprint(res)", "s=str(input())\nk=int(input())\n\nres=''\n\nif len(s)>=k:\n\tfor i in range(k):\n\t\tif s[i]!=1:\n\t\t\tres=s[i]\t\t\t\n\t\t\tbreak\n\t\tif i==k-1:\n\t\t\tres='1'\nelse:\n\tfor i in range(len(s)):\n\t\tif s[i]!='1':\n\t\t\tres=s[i]\n\t\t\tbreak\n\nprint(res)", "s=str(input())\nk=int(input())\n\nres=''\n\nif len(s)>=k:\n\tfor i in range(k):\n\t\tif s[i]!=1:\n\t\t\tres=s[i]\t\t\t\n\t\t\tbreak\n\t\tif i==k-1:\n\t\t\tres='1'\nelse:\n\tfor i in range(len(s)):\n\t\tif s[i]!='1':\n\t\t\tres=s[i]\n\t\t\tbreak\n\nprint(res)", "s=str(input())\nk=int(input())\n\nres=''\n\nif len(s)>=k:\n\tfor i in range(k):\n\t\tif s[i]!=1:\n\t\t\tres=s[i]\t\t\t\n\t\t\tbreak\n\t\tif i==k-1:\n\t\t\tres='1'\nelse:\n\tfor i in range(len(s)):\n\t\tif s[i]!='1':\n\t\t\tres=s[i]\n\t\t\tbreak\n\nprint(res)", 'r,c=map(int,input().split())\nres=(r-1)*(c-1)\nprint(res)', 'r,c=map(int,input().split())\nres=(r-1)*(c-1)\nprint(res)', 'r,c=map(int,input().split())\nres=(r-1)*(c-1)\nprint(res)', 'r,c=map(int,input().split())\nres=(r-1)*(c-1)\nprint(res)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s171483110', 's171483110', 's171483110', 's171483110', 's903061223', 's903061223', 's903061223', 's903061223']
[3060.0, 3060.0, 3060.0, 3060.0, 3316.0, 3316.0, 3316.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 21.0, 21.0, 21.0, 21.0]
[214, 214, 214, 214, 55, 55, 55, 55]
p03280
u333139319
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=int(input())\nb=int(input())\nprint((a-1)*(b-1))\n', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))\n', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))\n', 'a=int(input())\nb=int(input())\nprint((a-1)*(b-1))\n', '[a,b]=[int(i) for i in input().split()]\nprint((a-1)*(b-1))\n', '[a,b]=[int(i) for i in input().split()]\nprint((a-1)*(b-1))\n', '[a,b]=[int(i) for i in input().split()]\nprint((a-1)*(b-1))\n', '[a,b]=[int(i) for i in input().split()]\nprint((a-1)*(b-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s417390368', 's417390368', 's417390368', 's417390368', 's624505106', 's624505106', 's624505106', 's624505106']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 18.0, 18.0, 18.0, 18.0]
[49, 49, 49, 49, 59, 59, 59, 59]
p03280
u333731247
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A,B=map(int.input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int.input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int.input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int.input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int,input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int,input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int,input().split())\n\nprint(A*B-A-B+1)', 'A,B=map(int,input().split())\n\nprint(A*B-A-B+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s582615697', 's582615697', 's582615697', 's582615697', 's124311107', 's124311107', 's124311107', 's124311107']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[46, 46, 46, 46, 46, 46, 46, 46]
p03280
u335038698
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A, B = int(input()), int(input())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\nprint((A-1) * (B-1))', 'A, B = map(int, input().split())\nprint((A-1) * (B-1))', 'A, B = map(int, input().split())\nprint((A-1) * (B-1))', 'A, B = map(int, input().split())\nprint((A-1) * (B-1))', 'A, B = map(int, input().split())\nprint((A-1) * (B-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s069436646', 's069436646', 's539797788', 's539797788', 's824205533', 's824205533', 's069436646', 's069436646', 's539797788', 's539797788', 's824205533', 's824205533', 's152666950', 's152666950', 's152666950', 's152666950']
[2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 53, 53, 53, 53]
p03280
u339515914
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['print((a - 1) * (b - 1))', 'print((a - 1) * (b - 1))', 'print((a - 1) * (b - 1))', 'print((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))', 'a, b = map(int, input().split())\nprint((a - 1) * (b - 1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s878415148', 's878415148', 's878415148', 's878415148', 's978037307', 's978037307', 's978037307', 's978037307']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[24, 24, 24, 24, 57, 57, 57, 57]
p03280
u339851548
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a, b = map(int, input().split())\nprint((a-1)*(b-1)', 'a, b = map(int, input().split())\nprint((a-1)*(b-1)', 'a, b = map(int, input().split())\nprint((a-1)*(b-1)', 'a, b = map(int, input().split())\nprint((a-1)*(b-1)', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))', 'a, b = map(int, input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s454551393', 's454551393', 's454551393', 's454551393', 's033522196', 's033522196', 's033522196', 's033522196']
[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]
[50, 50, 50, 50, 51, 51, 51, 51]
p03280
u342563578
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(N):\n for j in range(N):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n print(q)\n', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(N):\n for j in range(N):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n print(q)\n', 'N, M, Q = map(int,input().split())\nMlist = []\nfor i in range(M):\n array = list(map(int, input().strip().split()))\n Mlist.append(array)\nQlist = []\nfor i in range(Q):\n array = list(map(int, input().strip().split()))\n Qlist.append(array)\n\nr = [[0 for i in range(N)] for j in range(N)]\n\n\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = []\nfor i in range(M):\n array = list(map(int, input().strip().split()))\n Mlist.append(array)\nQlist = []\nfor i in range(Q):\n array = list(map(int, input().strip().split()))\n Qlist.append(array)\n\nr = [[0 for i in range(N)] for j in range(N)]\n\n\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(10):\n for j in range(10):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(10):\n for j in range(10):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(N):\n for j in range(N):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n print(q)\n', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(N):\n for j in range(N):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n print(q)\n', 'N, M, Q = map(int,input().split())\nMlist = []\nfor i in range(M):\n array = list(map(int, input().strip().split()))\n Mlist.append(array)\nQlist = []\nfor i in range(Q):\n array = list(map(int, input().strip().split()))\n Qlist.append(array)\n\nr = [[0 for i in range(N)] for j in range(N)]\n\n\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = []\nfor i in range(M):\n array = list(map(int, input().strip().split()))\n Mlist.append(array)\nQlist = []\nfor i in range(Q):\n array = list(map(int, input().strip().split()))\n Qlist.append(array)\n\nr = [[0 for i in range(N)] for j in range(N)]\n\n\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(10):\n for j in range(10):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'N, M, Q = map(int,input().split())\nMlist = [input().split() for l in range(M)]\nQlist = [input().split() for l in range(Q)]\nMlist.sort()\nfor i in range(len(Mlist)):\n for j in range(len(Mlist[i])):\n Mlist[i][j] = int(Mlist[i][j])\nfor i in range(len(Qlist)):\n for j in range(len(Qlist[i])):\n Qlist[i][j] = int(Qlist[i][j])\np = [[0 for i in range(N)] for j in range(N)]\nq = 0\nr = [[0 for i in range(N)] for j in range(N)]\ndef count(k,l):\n s = k\n j = l\n p[s-1][j-1] = p[s-1][j-1] + 1\nfor i in range(len(Mlist)):\n count(Mlist[i][0],Mlist[i][1])\nfor i in range(10):\n for j in range(10):\n r[i][j] = r[i][j-1] + p[i][j]\nfor i in range(len(Qlist)):\n q = 0\n for j in range(Qlist[i][0],Qlist[i][1]+1):\n q = q + r[j-1][Qlist[i][1]-1]\n if j - 1> 0:\n q = q - r[j-1][j-2]\n print(q)', 'A,B = map(int,input().split())\nprint(A*B-A-B+1)', 'A,B = map(int,input().split())\nprint(A*B-A-B+1)', 'A,B = map(int,input().split())\nprint(A*B-A-B+1)', 'A,B = map(int,input().split())\nprint(A*B-A-B+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s096158946', 's096158946', 's287260933', 's287260933', 's969036055', 's969036055', 's096158946', 's096158946', 's287260933', 's287260933', 's969036055', 's969036055', 's148615296', 's148615296', 's148615296', 's148615296']
[3064.0, 3064.0, 3064.0, 3064.0, 3188.0, 3188.0, 3064.0, 3064.0, 3064.0, 3064.0, 3188.0, 3188.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0, 19.0, 19.0, 18.0, 18.0, 17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[787, 787, 484, 484, 841, 841, 787, 787, 484, 484, 841, 841, 47, 47, 47, 47]
p03280
u350093546
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['print((int(input)-1)*(int(input)-1))', 'print((int(input)-1)*(int(input)-1))', 'print((int(input())-1)*(int(input())-1))\n', 'print((int(input())-1)*(int(input())-1))\n', 'print((int(input)-1)*(int(input)-1))', 'print((int(input)-1)*(int(input)-1))', 'print((int(input())-1)*(int(input())-1))\n', 'print((int(input())-1)*(int(input())-1))\n', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s620925021', 's620925021', 's917309041', 's917309041', 's620925021', 's620925021', 's917309041', 's917309041', 's022895635', 's022895635', 's022895635', 's022895635']
[2940.0, 2940.0, 2940.0, 2940.0, 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, 17.0, 17.0, 17.0, 17.0]
[36, 36, 41, 41, 36, 36, 41, 41, 47, 47, 47, 47]
p03280
u350248178
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a=int(input())\nb=int(input())\n\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\n\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\n\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\n\nprint((a-1)*(b-1))', 'a,b=map(int,input().split())\n\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s313026830', 's313026830', 's313026830', 's313026830', 's595865401', 's595865401', 's595865401', 's595865401']
[3316.0, 3316.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[49, 49, 49, 49, 48, 48, 48, 48]
p03280
u352676541
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['A,B = map(int(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int(input().split()))\n\nprint((A-1)*(B-1))', 'A,B = map(int(input().split()))\n\nprint((A-1)*(B-1))', 'A,B = map(int(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int(input().split()))\n\nprint((A-1)*(B-1))', 'A,B = map(int(input().split()))\n\nprint((A-1)*(B-1))', 'A,B = map(int,(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int,(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int,(input().split()))\nans = (A-1)*(B-1)\nprint(ans)', 'A,B = map(int,(input().split()))\nans = (A-1)*(B-1)\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s305093551', 's305093551', 's477946923', 's477946923', 's305093551', 's305093551', 's477946923', 's477946923', 's909237548', 's909237548', 's909237548', 's909237548']
[9032.0, 9032.0, 8756.0, 8756.0, 9032.0, 9032.0, 8756.0, 8756.0, 8936.0, 8936.0, 8936.0, 8936.0]
[28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0, 28.0]
[60, 60, 51, 51, 60, 60, 51, 51, 61, 61, 61, 61]
p03280
u353919145
2,000
1,024,000
There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.) What is the area of this yard excluding the roads? Find it.
['x = input()\ny = x.split(" ")\ny = [int(x) for x in y]\na = y[0]\nb = y[1]\ntotal = a * b\nroads = a*1 + b*1 - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\nprint("In this case, the area is", rem, "square yards.")', 'x = input()\ny = x.split(" ")\ny = [int(x) for x in y]\na = y[0]\nb = y[1]\ntotal = a * b\nroads = a*1 + b*1 - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\nprint("In this case, the area is", rem, "square yards.")', 'x = input()\ny = x.split(" ")\ny = [int(x) for x in y]\na = y[0]\nb = y[1]\ntotal = a * b\nroads = a*1 + b*1 - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\nprint("In this case, the area is", rem, "square yards.")', 'x = input()\ny = x.split(" ")\ny = [int(x) for x in y]\na = y[0]\nb = y[1]\ntotal = a * b\nroads = a*1 + b*1 - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\nprint("In this case, the area is", rem, "square yards.")', 'x = input()\ny = x.split(" ")\nA = int(y[0])\nB = int(y[1])\ntotal = A * B\nroads = A + B - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\n', 'x = input()\ny = x.split(" ")\nA = int(y[0])\nB = int(y[1])\ntotal = A * B\nroads = A + B - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\n', 'x = input()\ny = x.split(" ")\nA = int(y[0])\nB = int(y[1])\ntotal = A * B\nroads = A + B - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\n', 'x = input()\ny = x.split(" ")\nA = int(y[0])\nB = int(y[1])\ntotal = A * B\nroads = A + B - 1\nrem = total - roads\nrem = int(rem)\nprint(rem)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s695247844', 's695247844', 's695247844', 's695247844', 's651828904', 's651828904', 's651828904', 's651828904']
[3060.0, 3060.0, 3060.0, 3060.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]
[209, 209, 209, 209, 135, 135, 135, 135]