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
p03280
u644100188
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())\nans = 0\n\nfor i in range(1, N + 1):\n if i % 2 == 1:\n count = 0\n for j in range(1, i + 1, 2):\n if i % j == 0:\n count += 1\n if count == 8:\n ans += 1\n\nprint(ans)', 'N = int(input())\nans = 0\n\nfor i in range(1, N + 1):\n if i % 2 == 1:\n count = 0\n for j in range(1, i + 1, 2):\n if i % j == 0:\n count += 1\n if count == 8:\n ans += 1\n\nprint(ans)', 'N = int(input())\nans = 0\n\nfor i in range(1, N + 1):\n if i % 2 == 1:\n count = 0\n for j in range(1, i + 1, 2):\n if i % j == 0:\n count += 1\n if count == 8:\n ans += 1\n\nprint(ans)', 'N = int(input())\nans = 0\n\nfor i in range(1, N + 1):\n if i % 2 == 1:\n count = 0\n for j in range(1, i + 1, 2):\n if i % j == 0:\n count += 1\n if count == 8:\n ans += 1\n\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())\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']
['s538153565', 's538153565', 's538153565', 's538153565', 's455765810', 's455765810', 's455765810', 's455765810']
[3060.0, 3060.0, 3060.0, 3060.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]
[235, 235, 235, 235, 52, 52, 52, 52]
p03280
u644778646
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*b -(a+b-1))\n', 'a = int(input())\nb = int(input())\n\nprint(a*b -(a+b-1))\n', 'a = int(input())\nb = int(input())\n\nprint(a*b -(a+b-1))\n', 'a = int(input())\nb = int(input())\n\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']
['s084535446', 's084535446', 's084535446', 's084535446', 's220290919', 's220290919', 's220290919', 's220290919']
[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]
[55, 55, 55, 55, 51, 51, 51, 51]
p03280
u655048024
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']
['s463357300', 's463357300', 's463357300', 's463357300', 's354509252', 's354509252', 's354509252', 's354509252']
[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
u657357805
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()\nprint((a-1)*(b-1))', 'a,b = input().split()\nprint((a-1)*(b-1))', 'a,b = input().split()\nprint((a-1)*(b-1))', 'a,b = input().split()\nprint((a-1)*(b-1))', 'a,b = [int(x) for x in input().split()]\nprint((a-1)*(b-1))', 'a,b = [int(x) for x in input().split()]\nprint((a-1)*(b-1))', 'a,b = [int(x) for x in input().split()]\nprint((a-1)*(b-1))', 'a,b = [int(x) for x in input().split()]\nprint((a-1)*(b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s814815415', 's814815415', 's814815415', 's814815415', 's656418263', 's656418263', 's656418263', 's656418263']
[2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 3316.0, 3316.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 19.0, 19.0]
[40, 40, 40, 40, 58, 58, 58, 58]
p03280
u663014688
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())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n \n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n \n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n \n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\n', 'N = int(input())\nans = 0\n\n\nfor i in range(1, N+1, 2):\n cnt = 0\n \n for j in range(1, i+1):\n if j % i == 0:\n cnt += 1\n \n if cnt == 8:\n ans += 1\n\nprint(ans)\n \n\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s271866964', 's271866964', 's875222302', 's875222302', 's271866964', 's271866964', 's875222302', 's875222302', 's130058206', 's130058206', 's130058206', 's130058206']
[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]
[233, 233, 234, 234, 233, 233, 234, 234, 53, 53, 53, 53]
p03280
u665038048
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\n\ndef square():\n argvs=sys.argv\n print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)\n\nsquare()\n', 'import sys\n\ndef square():\n argvs=sys.argv\n print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)\n\nsquare()\n', 'import sys\n\ndef square():\n argvs=sys.argv\n print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)\n\nsquare()\n', 'import sys\n\ndef square():\n argvs=sys.argv\n print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)\n\nsquare()\n', 'def square():\n x,y=[int(i) for i in input().split()]\n print( x*y-x-y+1)\n\nsquare()', 'def square():\n x,y=[int(i) for i in input().split()]\n print( x*y-x-y+1)\n\nsquare()', 'def square():\n x,y=[int(i) for i in input().split()]\n print( x*y-x-y+1)\n\nsquare()', 'def square():\n x,y=[int(i) for i in input().split()]\n print( x*y-x-y+1)\n\nsquare()']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s619137899', 's619137899', 's619137899', 's619137899', 's317602417', 's317602417', 's317602417', 's317602417']
[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]
[125, 125, 125, 125, 87, 87, 87, 87]
p03280
u669770658
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 - 1)', 'a, b = map (int, input().split())\n\nprint(a + b - 1)', 'a, b = map (int, input().split())\n\nprint(a + b - 1)', 'a, b = map (int, input().split())\n\nprint(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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s299151758', 's299151758', 's299151758', 's299151758', 's106795286', 's106795286', 's106795286', 's106795286']
[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]
[51, 51, 51, 51, 60, 60, 60, 60]
p03280
u672316981
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())\nlst = [135, 189, 105, 165, 195]\ntmp = 0\n\nfor i in range(5):\n if n<=lst[i]:\n tmp += 1\n\nprint(tmp)', 'n = int(input())\nlst = [135, 189, 105, 165, 195]\ntmp = 0\n\nfor i in range(5):\n if n<=lst[i]:\n tmp += 1\n\nprint(tmp)', 'n = int(input())\nlst = [135, 189, 105, 165, 195]\ntmp = 0\n\nfor i in range(5):\n if n<=lst[i]:\n tmp += 1\n\nprint(tmp)', 'n = int(input())\nlst = [135, 189, 105, 165, 195]\ntmp = 0\n\nfor i in range(5):\n if n<=lst[i]:\n tmp += 1\n\nprint(tmp)', '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']
['s763193703', 's763193703', 's763193703', 's763193703', 's022110110', 's022110110', 's022110110', 's022110110']
[3060.0, 3060.0, 3060.0, 3060.0, 9040.0, 9040.0, 9040.0, 9040.0]
[17.0, 17.0, 17.0, 17.0, 31.0, 31.0, 31.0, 31.0]
[123, 123, 123, 123, 57, 57, 57, 57]
p03280
u677312543
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())\n\ncount = 0\nfor i in range(1, n+1, 2):\n n_divisor = 1\n for j in range(2, n+1):\n if i%j == 0:\n n_divisor += 1\n if n_divisor == 8:\n count += 1\n\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1, n+1, 2):\n n_divisor = 1\n for j in range(2, n+1):\n if i%j == 0:\n n_divisor += 1\n if n_divisor == 8:\n count += 1\n\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1, n+1, 2):\n n_divisor = 1\n for j in range(2, n+1):\n if i%j == 0:\n n_divisor += 1\n if n_divisor == 8:\n count += 1\n\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1, n+1, 2):\n n_divisor = 1\n for j in range(2, n+1):\n if i%j == 0:\n n_divisor += 1\n if n_divisor == 8:\n count += 1\n\nprint(count)', 'A, B = map(int, input().split())\ns = (A * B) - (A + B - 1)\nprint(s)', 'A, B = map(int, input().split())\ns = (A * B) - (A + B - 1)\nprint(s)', 'A, B = map(int, input().split())\ns = (A * B) - (A + B - 1)\nprint(s)', 'A, B = map(int, input().split())\ns = (A * B) - (A + B - 1)\nprint(s)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s317793958', 's317793958', 's317793958', 's317793958', 's067512394', 's067512394', 's067512394', 's067512394']
[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]
[204, 204, 204, 204, 67, 67, 67, 67]
p03280
u686036872
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))', 'S, T = map(int, input().split())\nprint(˜-\x1dS*˜-T)', 'S, T = map(int, input().split())\nprint(˜-\x1dS*˜-T)', 'S, T = map(int, input().split())\nprint(~-\x1dS*~-T)', 'S, T = map(int, input().split())\nprint(~-\x1dS*~-T)', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'S, T = map(int, input().split())\nprint(-˜\x1dS*-˜T)', 'S, T = map(int, input().split())\nprint(-˜\x1dS*-˜T)', '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))', 'S, T = map(int, input().split())\nprint(˜-\x1dS*˜-T)', 'S, T = map(int, input().split())\nprint(˜-\x1dS*˜-T)', 'S, T = map(int, input().split())\nprint(~-\x1dS*~-T)', 'S, T = map(int, input().split())\nprint(~-\x1dS*~-T)', 'print((int(input())-1)*(int(input())-1))', 'print((int(input())-1)*(int(input())-1))', 'S, T = map(int, input().split())\nprint(-˜\x1dS*-˜T)', 'S, T = map(int, input().split())\nprint(-˜\x1dS*-˜T)', 'print((int(input)-1)*(int(input)-1))', 'print((int(input)-1)*(int(input)-1))', 'S, T = map(int, input().split())\nprint(~-S*~-T)', 'S, T = map(int, input().split())\nprint(~-S*~-T)', 'S, T = map(int, input().split())\nprint(~-S*~-T)', 'S, T = map(int, input().split())\nprint(~-S*~-T)']
['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']
['s250675968', 's250675968', 's402934208', 's402934208', 's574595293', 's574595293', 's616947149', 's616947149', 's688354990', 's688354990', 's717836660', 's717836660', 's250675968', 's250675968', 's402934208', 's402934208', 's574595293', 's574595293', 's616947149', 's616947149', 's688354990', 's688354990', 's717836660', 's717836660', 's988635150', 's988635150', 's988635150', 's988635150']
[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]
[40, 40, 50, 50, 48, 48, 40, 40, 50, 50, 36, 36, 40, 40, 50, 50, 48, 48, 40, 40, 50, 50, 36, 36, 47, 47, 47, 47]
p03280
u698771758
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=[3,5,7,11,13,17,19]\nc=d=0\nif a<105:a=104\nfor i in range(103,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,11,13,17,19]\nc=d=0\nif a<105:a=104\nfor i in range(103,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,9,11,13,15,17,19]\nc=d=0\nif a<105:a=105\nfor i in range(104,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,9,11,13,15,17,19]\nc=d=0\nif a<105:a=105\nfor i in range(104,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,11,13,17,19]\nc=d=0\nif a<105:a=104\nfor i in range(103,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,11,13,17,19]\nc=d=0\nif a<105:a=104\nfor i in range(103,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,9,11,13,15,17,19]\nc=d=0\nif a<105:a=105\nfor i in range(104,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', 'a=int(input())\nb=[3,5,7,9,11,13,15,17,19]\nc=d=0\nif a<105:a=105\nfor i in range(104,a):\n for j in b:\n if a%j==0:c+=1\n if c==3:d+=1\n c=0\nprint(d)', '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']
['s030690613', 's030690613', 's703594499', 's703594499', 's030690613', 's030690613', 's703594499', 's703594499', 's053951036', 's053951036', 's053951036', 's053951036']
[3060.0, 3060.0, 2940.0, 2940.0, 3060.0, 3060.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]
[153, 153, 158, 158, 153, 153, 158, 158, 47, 47, 47, 47]
p03280
u699103085
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(,sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(,sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(,sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(,sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(sprit()))\nprint((a-1)(b-1))', 'a,b=map(int,input(sprit()))\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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s178112489', 's178112489', 's890012983', 's890012983', 's178112489', 's178112489', 's890012983', 's890012983', 's554823495', 's554823495', 's554823495', 's554823495']
[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]
[46, 46, 45, 45, 46, 46, 45, 45, 47, 47, 47, 47]
p03280
u699765883
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\nsetting = list(map(int, input().split()))\n\ntrain = []\nquest = []\nfor i in range(setting[1]):\n num = list(map(int, input().split()))\n train.append(num)\ntrain = np.array(train)\n\nfor i in range(setting[2]):\n q = list(map(int, input().split()))\n quest.append(q)\n\ntrain = train * np.array([1,-1])\nfor qs in quest:\n a = train\n sch = np.array(qs)\n sch = sch * np.array([-1,1])\n b = a + sch\n ans = np.delete(b, np.where(b<0), axis=0)\n\n print(ans.shape[0])\n', 'import numpy as np\n\nsetting = list(map(int, input().split()))\n\ntrain = []\nquest = []\nfor i in range(setting[1]):\n num = list(map(int, input().split()))\n train.append(num)\ntrain = np.array(train)\n\nfor i in range(setting[2]):\n q = list(map(int, input().split()))\n quest.append(q)\n\ntrain = train * np.array([1,-1])\nfor qs in quest:\n a = train\n sch = np.array(qs)\n sch = sch * np.array([-1,1])\n b = a + sch\n ans = np.delete(b, np.where(b<0), axis=0)\n\n print(ans.shape[0])\n', 'import numpy as np\n\nsetting = list(map(int, input().split()))\n\ntrain = []\nquest = []\nfor i in range(setting[1]):\n num = list(map(int, input().split()))\n train.append(num)\ntrain = np.array(train)\n\nfor i in range(setting[2]):\n q = list(map(int, input().split()))\n quest.append(q)\n\ntrain = train * np.array([1,-1])\nfor qs in quest:\n a = train\n sch = np.array(qs)\n sch = sch * np.array([-1,1])\n b = a + sch\n ans = np.delete(b, np.where(b<0), axis=0)\n\n print(ans.shape[0])\n', 'import numpy as np\n\nsetting = list(map(int, input().split()))\n\ntrain = []\nquest = []\nfor i in range(setting[1]):\n num = list(map(int, input().split()))\n train.append(num)\ntrain = np.array(train)\n\nfor i in range(setting[2]):\n q = list(map(int, input().split()))\n quest.append(q)\n\ntrain = train * np.array([1,-1])\nfor qs in quest:\n a = train\n sch = np.array(qs)\n sch = sch * np.array([-1,1])\n b = a + sch\n ans = np.delete(b, np.where(b<0), axis=0)\n\n print(ans.shape[0])\n', 'List = list(map(int, input().split()))\na = List[0]\nb = List[1]\n# a = int(input())\n# b = int(input())\n\ns = a*b - (a+b) +1\n\nprint(s)\n', 'List = list(map(int, input().split()))\na = List[0]\nb = List[1]\n# a = int(input())\n# b = int(input())\n\ns = a*b - (a+b) +1\n\nprint(s)\n', 'List = list(map(int, input().split()))\na = List[0]\nb = List[1]\n# a = int(input())\n# b = int(input())\n\ns = a*b - (a+b) +1\n\nprint(s)\n', 'List = list(map(int, input().split()))\na = List[0]\nb = List[1]\n# a = int(input())\n# b = int(input())\n\ns = a*b - (a+b) +1\n\nprint(s)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s278845128', 's278845128', 's278845128', 's278845128', 's607887744', 's607887744', 's607887744', 's607887744']
[21536.0, 21536.0, 21536.0, 21536.0, 2940.0, 2940.0, 2940.0, 2940.0]
[1131.0, 1131.0, 1131.0, 1131.0, 17.0, 17.0, 17.0, 17.0]
[498, 498, 498, 498, 131, 131, 131, 131]
p03280
u702018889
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']
['s209058783', 's209058783', 's209058783', 's209058783', 's108759634', 's108759634', 's108759634', 's108759634']
[9148.0, 9148.0, 9148.0, 9148.0, 9024.0, 9024.0, 9024.0, 9024.0]
[29.0, 29.0, 29.0, 29.0, 22.0, 22.0, 22.0, 22.0]
[49, 49, 49, 49, 47, 47, 47, 47]
p03280
u703890795
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']
['s482082621', 's482082621', 's482082621', 's482082621', 's038326399', 's038326399', 's038326399', 's038326399']
[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
u707659359
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-1)*(B-1))', '\nA = 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))', '\nA = int(input())\nB=int(input())\n\nprint((A-1)*(B-1))', '\nA = 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))', '\nA,B = [int(x) for x in input().split()]\n\n\nprint((A-1)*(B-1))', '\nA,B = [int(x) for x in input().split()]\n\n\nprint((A-1)*(B-1))', '\nA,B = [int(x) for x in input().split()]\n\n\nprint((A-1)*(B-1))', '\nA,B = [int(x) for x in input().split()]\n\n\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']
['s441796487', 's441796487', 's442841809', 's442841809', 's441796487', 's441796487', 's442841809', 's442841809', 's420669605', 's420669605', 's420669605', 's420669605']
[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]
[52, 52, 53, 53, 52, 52, 53, 53, 62, 62, 62, 62]
p03280
u709686535
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 menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la = int(input())\n lb = int(input())\n\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la = int(input())\n lb = int(input())\n\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la = int(input())\n lb = int(input())\n\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la = int(input())\n lb = int(input())\n\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la, lb = map(int, input().split())\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la, lb = map(int, input().split())\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la, lb = map(int, input().split())\n print(menseki(la, lb))\n", "def menseki(a, b):\n return a * b - (1 * b + 1 * a - 1)\n\nif __name__ == '__main__':\n la, lb = map(int, input().split())\n print(menseki(la, lb))\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s563906048', 's563906048', 's563906048', 's563906048', 's882749644', 's882749644', 's882749644', 's882749644']
[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, 152, 152, 152, 152]
p03280
u713465512
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']
['s187838865', 's187838865', 's187838865', 's187838865', 's449998251', 's449998251', 's449998251', 's449998251']
[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
u716660050
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']
['s585870570', 's585870570', 's585870570', 's585870570', 's797284143', 's797284143', 's797284143', 's797284143']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 3060.0]
[18.0, 18.0, 18.0, 18.0, 19.0, 19.0, 19.0, 19.0]
[40, 40, 40, 40, 47, 47, 47, 47]
p03280
u721316601
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\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a = int(input())\nb = int(input())\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a = int(input())\nb = int(input())\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a = int(input())\nb = int(input())\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a, b = list(map(int, input().split()))\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a, b = list(map(int, input().split()))\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a, b = list(map(int, input().split()))\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n', 'a, b = list(map(int, input().split()))\n\ntotal = a * b - (a + b - 1)\n\nprint(total)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s569302437', 's569302437', 's569302437', 's569302437', 's358486893', 's358486893', 's358486893', 's358486893']
[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]
[77, 77, 77, 77, 82, 82, 82, 82]
p03280
u725133562
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_H1 = input()\ninput_H2 = input()\n\nH1 = int(input_H1)\nH2 = int(input_H2)\n\nprint((H1-1)*(H2-1))\n', 'input_H1 = input()\ninput_H2 = input()\n\nH1 = int(input_H1)\nH2 = int(input_H2)\n\nprint((H1-1)*(H2-1))\n', 'input_A = input()\ninput_B = input()\n\nA = int(input_A)\nB = int(input_B)\n\nprint((A-1)*(B-1))\n', 'input_A = input()\ninput_B = input()\n\nA = int(input_A)\nB = int(input_B)\n\nprint((A-1)*(B-1))\n', 'input_H1 = input()\ninput_H2 = input()\n\nH1 = int(input_H1)\nH2 = int(input_H2)\n\nprint((H1-1)*(H2-1))\n', 'input_H1 = input()\ninput_H2 = input()\n\nH1 = int(input_H1)\nH2 = int(input_H2)\n\nprint((H1-1)*(H2-1))\n', 'input_A = input()\ninput_B = input()\n\nA = int(input_A)\nB = int(input_B)\n\nprint((A-1)*(B-1))\n', 'input_A = input()\ninput_B = input()\n\nA = int(input_A)\nB = int(input_B)\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', 'A, B = map(int, input().split())\n\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']
['s182724657', 's182724657', 's813105382', 's813105382', 's182724657', 's182724657', 's813105382', 's813105382', 's259569737', 's259569737', 's259569737', 's259569737']
[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]
[99, 99, 91, 91, 99, 99, 91, 91, 59, 59, 59, 59]
p03280
u726055614
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=raw_input().split();print((int(a[0])-1)*(int(a[1])-1));', 'a=raw_input().split();print((int(a[0])-1)*(int(a[1])-1));', 'return (A-1)*(B-1);', 'return (A-1)*(B-1);', 'import math\na=input().split("¥n")\nK=int(a[1])\nS_len=len(a[0])\n\nprint("K="+str(K) +" S_len="+str(S_len))\n\nfor i in range(S_len):\n # print("i="+str(i) +" n="+a[0][i])\n n=int(a[0][i])\n # print("i="+str(i) +" n="+str(n))\n\n # if(n==1):\n # K-=1\n \n # print("1")\n # break\n # else:\n\n L=int(K*math.log10(n))\n \n K-=L+1\n if(K<=0):\n print(n)\n break\n', 'import math\na=input().split("¥n")\nK=int(a[1])\nS_len=len(a[0])\n\nprint("K="+str(K) +" S_len="+str(S_len))\n\nfor i in range(S_len):\n # print("i="+str(i) +" n="+a[0][i])\n n=int(a[0][i])\n # print("i="+str(i) +" n="+str(n))\n\n # if(n==1):\n # K-=1\n \n # print("1")\n # break\n # else:\n\n L=int(K*math.log10(n))\n \n K-=L+1\n if(K<=0):\n print(n)\n break\n', 'a = raw_input().split();\nprint((int(a[0])-1)*(int(a[1])-1));\n', 'a = raw_input().split();\nprint((int(a[0])-1)*(int(a[1])-1));\n', 'a=raw_input().split();print((int(a[0])-1)*(int(a[1])-1));', 'a=raw_input().split();print((int(a[0])-1)*(int(a[1])-1));', 'return (A-1)*(B-1);', 'return (A-1)*(B-1);', 'import math\na=input().split("¥n")\nK=int(a[1])\nS_len=len(a[0])\n\nprint("K="+str(K) +" S_len="+str(S_len))\n\nfor i in range(S_len):\n # print("i="+str(i) +" n="+a[0][i])\n n=int(a[0][i])\n # print("i="+str(i) +" n="+str(n))\n\n # if(n==1):\n # K-=1\n \n # print("1")\n # break\n # else:\n\n L=int(K*math.log10(n))\n \n K-=L+1\n if(K<=0):\n print(n)\n break\n', 'import math\na=input().split("¥n")\nK=int(a[1])\nS_len=len(a[0])\n\nprint("K="+str(K) +" S_len="+str(S_len))\n\nfor i in range(S_len):\n # print("i="+str(i) +" n="+a[0][i])\n n=int(a[0][i])\n # print("i="+str(i) +" n="+str(n))\n\n # if(n==1):\n # K-=1\n \n # print("1")\n # break\n # else:\n\n L=int(K*math.log10(n))\n \n K-=L+1\n if(K<=0):\n print(n)\n break\n', 'a = raw_input().split();\nprint((int(a[0])-1)*(int(a[1])-1));\n', 'a = raw_input().split();\nprint((int(a[0])-1)*(int(a[1])-1));\n', 'a=input().split();print((int(a[0])-1)*(int(a[1])-1));', 'a=input().split();print((int(a[0])-1)*(int(a[1])-1));', 'a=input().split();print((int(a[0])-1)*(int(a[1])-1));', 'a=input().split();print((int(a[0])-1)*(int(a[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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s037949042', 's037949042', 's231546213', 's231546213', 's484491638', 's484491638', 's800394680', 's800394680', 's037949042', 's037949042', 's231546213', 's231546213', 's484491638', 's484491638', 's800394680', 's800394680', 's861829313', 's861829313', 's861829313', 's861829313']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.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]
[17.0, 17.0, 17.0, 17.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, 17.0, 17.0, 17.0, 17.0]
[57, 57, 19, 19, 459, 459, 61, 61, 57, 57, 19, 19, 459, 459, 61, 61, 53, 53, 53, 53]
p03280
u730476362
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\nN=int(input())\n\n# tmplist=list(sy.factorint(x).values())\n# a=1\n\n# a*=i+1\n# return a\ndef make_prime_list_2(num):\n if num < 2:\n return []\n\n \n prime_list = [i for i in range(num + 1)]\n prime_list[1] = 0 \n num_sqrt = math.sqrt(num)\n\n for prime in prime_list:\n if prime == 0:\n continue\n if prime > num_sqrt:\n break\n\n for non_prime in range(2 * prime, num, prime):\n prime_list[non_prime] = 0\n\n return [prime for prime in prime_list if prime != 0]\ndef search_divisor_num_1(num):\n if num < 0:\n return None\n elif num == 1:\n return 1\n else:\n num_sqrt = math.floor(math.sqrt(num))\n prime_list = make_prime_list_2(num_sqrt)\n\n divisor_num = 1\n for prime in prime_list:\n count = 1\n while num % prime == 0:\n num //= prime\n count += 1\n divisor_num *= count\n\n if num != 1:\n divisor_num *= 2\n\n return divisor_num\ncounter=0\nfor i in range(1,N+1,2):\n if search_divisor_num_1(i)==8:\n counter+=1\nprint(counter)', 'import math\nN=int(input())\n\n# tmplist=list(sy.factorint(x).values())\n# a=1\n\n# a*=i+1\n# return a\ndef make_prime_list_2(num):\n if num < 2:\n return []\n\n \n prime_list = [i for i in range(num + 1)]\n prime_list[1] = 0 \n num_sqrt = math.sqrt(num)\n\n for prime in prime_list:\n if prime == 0:\n continue\n if prime > num_sqrt:\n break\n\n for non_prime in range(2 * prime, num, prime):\n prime_list[non_prime] = 0\n\n return [prime for prime in prime_list if prime != 0]\ndef search_divisor_num_1(num):\n if num < 0:\n return None\n elif num == 1:\n return 1\n else:\n num_sqrt = math.floor(math.sqrt(num))\n prime_list = make_prime_list_2(num_sqrt)\n\n divisor_num = 1\n for prime in prime_list:\n count = 1\n while num % prime == 0:\n num //= prime\n count += 1\n divisor_num *= count\n\n if num != 1:\n divisor_num *= 2\n\n return divisor_num\ncounter=0\nfor i in range(1,N+1,2):\n if search_divisor_num_1(i)==8:\n counter+=1\nprint(counter)', 'S = input()\nK = int(input())\ncounter = 0\nfor i in range(K + 1):\n if int(S[i]) != 1:\n log = counter\n num = int(S[i])\n break\n counter += 1\n\nif K <= log:\n print(1)\nelse:\n print(num)\n', 'S = input()\nK = int(input())\ncounter = 0\nfor i in range(K + 1):\n if int(S[i]) != 1:\n log = counter\n num = int(S[i])\n break\n counter += 1\n\nif K <= log:\n print(1)\nelse:\n print(num)\n', 'import math\nN=int(input())\n\n# tmplist=list(sy.factorint(x).values())\n# a=1\n\n# a*=i+1\n# return a\ndef make_prime_list_2(num):\n if num < 2:\n return []\n\n \n prime_list = [i for i in range(num + 1)]\n prime_list[1] = 0 \n num_sqrt = math.sqrt(num)\n\n for prime in prime_list:\n if prime == 0:\n continue\n if prime > num_sqrt:\n break\n\n for non_prime in range(2 * prime, num, prime):\n prime_list[non_prime] = 0\n\n return [prime for prime in prime_list if prime != 0]\ndef search_divisor_num_1(num):\n if num < 0:\n return None\n elif num == 1:\n return 1\n else:\n num_sqrt = math.floor(math.sqrt(num))\n prime_list = make_prime_list_2(num_sqrt)\n\n divisor_num = 1\n for prime in prime_list:\n count = 1\n while num % prime == 0:\n num //= prime\n count += 1\n divisor_num *= count\n\n if num != 1:\n divisor_num *= 2\n\n return divisor_num\ncounter=0\nfor i in range(1,N+1,2):\n if search_divisor_num_1(i)==8:\n counter+=1\nprint(counter)', 'import math\nN=int(input())\n\n# tmplist=list(sy.factorint(x).values())\n# a=1\n\n# a*=i+1\n# return a\ndef make_prime_list_2(num):\n if num < 2:\n return []\n\n \n prime_list = [i for i in range(num + 1)]\n prime_list[1] = 0 \n num_sqrt = math.sqrt(num)\n\n for prime in prime_list:\n if prime == 0:\n continue\n if prime > num_sqrt:\n break\n\n for non_prime in range(2 * prime, num, prime):\n prime_list[non_prime] = 0\n\n return [prime for prime in prime_list if prime != 0]\ndef search_divisor_num_1(num):\n if num < 0:\n return None\n elif num == 1:\n return 1\n else:\n num_sqrt = math.floor(math.sqrt(num))\n prime_list = make_prime_list_2(num_sqrt)\n\n divisor_num = 1\n for prime in prime_list:\n count = 1\n while num % prime == 0:\n num //= prime\n count += 1\n divisor_num *= count\n\n if num != 1:\n divisor_num *= 2\n\n return divisor_num\ncounter=0\nfor i in range(1,N+1,2):\n if search_divisor_num_1(i)==8:\n counter+=1\nprint(counter)', 'S = input()\nK = int(input())\ncounter = 0\nfor i in range(K + 1):\n if int(S[i]) != 1:\n log = counter\n num = int(S[i])\n break\n counter += 1\n\nif K <= log:\n print(1)\nelse:\n print(num)\n', 'S = input()\nK = int(input())\ncounter = 0\nfor i in range(K + 1):\n if int(S[i]) != 1:\n log = counter\n num = int(S[i])\n break\n counter += 1\n\nif K <= log:\n print(1)\nelse:\n print(num)\n', "A, B = map(int, input().strip().split(' '))\nprint((A-1)*(B-1))", "A, B = map(int, input().strip().split(' '))\nprint((A-1)*(B-1))", "A, B = map(int, input().strip().split(' '))\nprint((A-1)*(B-1))", "A, B = map(int, input().strip().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']
['s267060469', 's267060469', 's379347727', 's379347727', 's267060469', 's267060469', 's379347727', 's379347727', 's193130273', 's193130273', 's193130273', 's193130273']
[3064.0, 3064.0, 2940.0, 2940.0, 3064.0, 3064.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, 18.0, 18.0, 18.0, 18.0]
[1257, 1257, 212, 212, 1257, 1257, 212, 212, 62, 62, 62, 62]
p03280
u733608212
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()\nn = int(input())\n \ncount = 0\nfor i in s:\n count+=1\n if i != "1" or count == n:\n print(i)\n break\nelse:\n print(1)', 's = input()\nn = int(input())\n \ncount = 0\nfor i in s:\n count+=1\n if i != "1" or count == n:\n print(i)\n break\nelse:\n print(1)', 's = input()\nn = int(input())\n \ncount = 0\nfor i in s:\n count+=1\n if i != "1" or count == n:\n print(i)\n break\nelse:\n print(1)', 's = input()\nn = int(input())\n \ncount = 0\nfor i in s:\n count+=1\n if i != "1" or count == n:\n print(i)\n break\nelse:\n print(1)', '\na,b= map(int, input().split())\nprint((a-1) * (b-1))', '\na,b= map(int, input().split())\nprint((a-1) * (b-1))', '\na,b= map(int, input().split())\nprint((a-1) * (b-1))', '\na,b= map(int, input().split())\nprint((a-1) * (b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s651899304', 's651899304', 's651899304', 's651899304', 's951808359', 's951808359', 's951808359', 's951808359']
[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]
[146, 146, 146, 146, 52, 52, 52, 52]
p03280
u735008991
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))\n', 'print((int(input())-1)*(int(input())-1))\n', '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))\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']
['s778128682', 's778128682', 's778128682', 's778128682', 's233153180', 's233153180', 's233153180', 's233153180']
[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]
[41, 41, 41, 41, 52, 52, 52, 52]
p03280
u735763891
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 abc106_a():\n a, b = map(int, input().split())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a = int(input())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a = int(input())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a = int(input())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a = int(input())\n b = int(input())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())', 'def abc106_a():\n a, b = map(int, input().split())\n\n return a * b - a - b + 1\n\n\nprint(abc106_a())']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s207529820', 's207529820', 's852946280', 's852946280', 's207529820', 's207529820', 's852946280', 's852946280', 's547781358', 's547781358', 's547781358', 's547781358']
[2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.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, 18.0, 18.0, 18.0, 18.0]
[123, 123, 107, 107, 123, 123, 107, 107, 102, 102, 102, 102]
p03280
u738835924
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*B - A - B + 1)', 'A = int(input())\nB = int(input())\n\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())\n\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\n\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, 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']
['s641551732', 's641551732', 's999262445', 's999262445', 's641551732', 's641551732', 's999262445', 's999262445', 's217116352', 's217116352', 's217116352', 's217116352']
[3316.0, 3316.0, 2940.0, 2940.0, 3316.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 19.0, 19.0, 19.0, 19.0, 19.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0]
[57, 57, 66, 66, 57, 57, 66, 66, 55, 55, 55, 55]
p03280
u738898077
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']
['s593911811', 's593911811', 's593911811', 's593911811', 's398737416', 's398737416', 's398737416', 's398737416']
[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]
[55, 55, 55, 55, 52, 52, 52, 52]
p03280
u740284863
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 >= 195:\n print("3")\nelif N >= 165:\n print("2")\nelif N >= 105:\n print("1")\nelse:\n print("0")', 'N = int(input())\nif N >= 195:\n print("3")\nelif N >= 165:\n print("2")\nelif N >= 105:\n print("1")\nelse:\n print("0")', 'N = int(input())\nif N >= 195:\n print("3")\nelif N >= 165:\n print("2")\nelif N >= 105:\n print("1")\nelse:\n print("0")', 'N = int(input())\nif N >= 195:\n print("3")\nelif N >= 165:\n print("2")\nelif N >= 105:\n print("1")\nelse:\n print("0")', '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']
['s195699432', 's195699432', 's195699432', 's195699432', 's819786789', 's819786789', 's819786789', 's819786789']
[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]
[117, 117, 117, 117, 50, 50, 50, 50]
p03280
u740767776
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 * 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)', '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)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s346646911', 's346646911', 's346646911', 's346646911', 's747036366', 's747036366', 's747036366', 's747036366']
[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, 62, 62, 62, 62]
p03280
u744174225
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-i))', 'a, b = map(int, input().split(" "))\nprint((a-1)*(b-i))', 'a, b = map(int, input())\nprint((a-1)*(b-i))', 'a, b = map(int, input())\nprint((a-1)*(b-i))', 'a, b = map(int, input().split(" "))\nprint((a-1)*(b-i))', 'a, b = map(int, input().split(" "))\nprint((a-1)*(b-i))', 'a, b = map(int, input())\nprint((a-1)*(b-i))', 'a, b = map(int, input())\nprint((a-1)*(b-i))', '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']
['s453507492', 's453507492', 's703466762', 's703466762', 's453507492', 's453507492', 's703466762', 's703466762', 's403685015', 's403685015', 's403685015', 's403685015']
[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]
[54, 54, 43, 43, 54, 54, 43, 43, 54, 54, 54, 54]
p03280
u744920373
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\nif len(S) == 1:\n print(S[0])\n exit(0)\n\ni = 0\nwhile S[i] == '1':\n i += 1\nprint(S[i])", "S = str(input())\nK = int(input())\n\nif len(S) == 1:\n print(S[0])\n exit(0)\n\ni = 0\nwhile S[i] == '1':\n i += 1\nprint(S[i])", "S = str(input())\nK = int(input())\n\nif len(S) == 1:\n print(S[0])\n exit(0)\n\ni = 0\nwhile S[i] == '1':\n i += 1\nprint(S[i])", "S = str(input())\nK = int(input())\n\nif len(S) == 1:\n print(S[0])\n exit(0)\n\ni = 0\nwhile S[i] == '1':\n i += 1\nprint(S[i])", 'A = sorted(list(map(int, input().split())))\n\nprint((A[0]-1)*(A[1]-1))', 'A = sorted(list(map(int, input().split())))\n\nprint((A[0]-1)*(A[1]-1))', 'A = sorted(list(map(int, input().split())))\n\nprint((A[0]-1)*(A[1]-1))', 'A = sorted(list(map(int, input().split())))\n\nprint((A[0]-1)*(A[1]-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s266228612', 's266228612', 's266228612', 's266228612', 's262850354', 's262850354', 's262850354', 's262850354']
[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]
[139, 139, 139, 139, 69, 69, 69, 69]
p03280
u745514010
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())\nalist=[]\nfor i in range(m):\n l,r=map(int,input().split())\n alist.append([l,r])\nalist.sort()\nfor t in range(q):\n count=0\n blist=[]\n p,q=map(int,input().split())\n for j in range (len(alist)):\n if p<=alist[0][0]:\n alist.sort(key=lambda x:x[1])\n break\n blist.append(alist[0])\n alist.remove(alist[0])\n for j in range (len(alist)):\n if q>=alist[j][1]:\n count+=1\n else:\n break\n for k in blist:\n alist.append(k)\n print(count)\n alist.sort(key=lambda x:x[0])', 'n,m,q=map(int,input().split())\nalist=[]\nfor i in range(m):\n l,r=map(int,input().split())\n alist.append([l,r])\nalist.sort()\nfor t in range(q):\n count=0\n blist=[]\n p,q=map(int,input().split())\n for j in range (len(alist)):\n if p<=alist[0][0]:\n alist.sort(key=lambda x:x[1])\n break\n blist.append(alist[0])\n alist.remove(alist[0])\n for j in range (len(alist)):\n if q>=alist[j][1]:\n count+=1\n else:\n break\n for k in blist:\n alist.append(k)\n print(count)\n alist.sort(key=lambda x:x[0])', 'n,m,q=map(int,input().split())\nalist=[]\nfor i in range(m):\n l,r=map(int,input().split())\n alist.append([l,r])\nalist.sort()\nfor t in range(q):\n count=0\n blist=[]\n p,q=map(int,input().split())\n for j in range (len(alist)):\n if p<=alist[0][0]:\n alist.sort(key=lambda x:x[1])\n break\n blist.append(alist[0])\n alist.remove(alist[0])\n for j in range (len(alist)):\n if q>=alist[j][1]:\n count+=1\n else:\n break\n for k in blist:\n alist.append(k)\n print(count)\n alist.sort(key=lambda x:x[0])', 'n,m,q=map(int,input().split())\nalist=[]\nfor i in range(m):\n l,r=map(int,input().split())\n alist.append([l,r])\nalist.sort()\nfor t in range(q):\n count=0\n blist=[]\n p,q=map(int,input().split())\n for j in range (len(alist)):\n if p<=alist[0][0]:\n alist.sort(key=lambda x:x[1])\n break\n blist.append(alist[0])\n alist.remove(alist[0])\n for j in range (len(alist)):\n if q>=alist[j][1]:\n count+=1\n else:\n break\n for k in blist:\n alist.append(k)\n print(count)\n alist.sort(key=lambda x:x[0])', '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']
['s372581758', 's372581758', 's372581758', 's372581758', 's263409897', 's263409897', 's263409897', 's263409897']
[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]
[595, 595, 595, 595, 47, 47, 47, 47]
p03280
u745562158
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)', '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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s639000337', 's639000337', 's639000337', 's639000337', 's827995915', 's827995915', 's827995915', 's827995915']
[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, 53, 53, 53, 53]
p03280
u747873993
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*B-A-B)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B+1)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B+1)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B+1)', 'A,B=(int(i) for i in input().split())\nprint(A*B-A-B+1)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s369936123', 's369936123', 's369936123', 's369936123', 's129345917', 's129345917', 's129345917', 's129345917']
[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, 54, 54, 54, 54]
p03280
u748311048
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-B-A-1)', 'A,B=map(int, input().split())\nprint(A*B-B-A-1)', 'A,B=map(int, input().split())\nprint(A*B-B-A-1)', 'A,B=map(int, input().split())\nprint(A*B-B-A-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']
['s774164061', 's774164061', 's774164061', 's774164061', 's143815540', 's143815540', 's143815540', 's143815540']
[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]
[46, 46, 46, 46, 48, 48, 48, 48]
p03280
u752700460
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().split())\nprint(A*B-(A+B-1))\n', 'A, B = int(input().split())\nprint(A*B-(A+B-1))\n', 'A, B = int(input().split())\nprint(A*B-(A+B-1))\n', 'A, B = int(input().split())\nprint(A*B-(A+B-1))\n', 'A, B = list(map(int, input().split()))\nprint(A*B-(A+B-1))\n', 'A, B = list(map(int, input().split()))\nprint(A*B-(A+B-1))\n', 'A, B = list(map(int, input().split()))\nprint(A*B-(A+B-1))\n', 'A, B = list(map(int, input().split()))\nprint(A*B-(A+B-1))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s375377889', 's375377889', 's375377889', 's375377889', 's020941942', 's020941942', 's020941942', 's020941942']
[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]
[47, 47, 47, 47, 58, 58, 58, 58]
p03280
u756614568
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 = input().split()\nnum_city = int(l[0])\nnum_train = int(l[1])\nnum_qa = int(l[2])\n\n\nstr_train = []\nend_train = []\nfor i in range(num_train):\n l = input().split()\n dist = 0\n str_train.append( int(l[dist]) )\n dist = 1\n end_train.append( int(l[dist]) )\n\nstr_qa = []\nend_qa = []\n\nfor i in range(num_qa):\n l = input().split()\n dist = 0\n str_qa.append( int(l[dist]) )\n dist = 1\n end_qa.append( int(l[dist]) )\n\n\n\n\nS_str = []\ns = {}\nfor i in range(num_city + 1):\n S_str.append(s)\n\nfor i in range(num_qa):\n str_v = str_qa[i]\n for j in range(0,str_v + 1):\n S_str[j].add(str_v)\n\nS_end = []\ns = {}\nfor i in range(num_city + 1):\n S_end.append(s)\n\nfor i in range(num_qa):\n end_v = end_qa[i]\n for j in range(end_v , num_city + 1):\n S_end[j].add(end_v)\n\nfor i in range(0,num_qa):\n str_v = str_qa[i]\n s1 = S_str[ str_v ]\n\n end_v = end_qa[i]\n s2 = S_end[ end_v ]\n\n s_intersection = s1 & s2\n\n print(len(s_intersection))\n', 'l = input().split()\nnum_city = int(l[0])\nnum_train = int(l[1])\nnum_qa = int(l[2])\n\n\nstr_train = []\nend_train = []\nfor i in range(num_train):\n l = input().split()\n dist = 0\n str_train.append( int(l[dist]) )\n dist = 1\n end_train.append( int(l[dist]) )\n\nstr_qa = []\nend_qa = []\n\nfor i in range(num_qa):\n l = input().split()\n dist = 0\n str_qa.append( int(l[dist]) )\n dist = 1\n end_qa.append( int(l[dist]) )\n\n\n\n\nS_str = []\ns = {}\nfor i in range(num_city + 1):\n S_str.append(s)\n\nfor i in range(num_qa):\n str_v = str_qa[i]\n for j in range(0,str_v + 1):\n S_str[j].add(str_v)\n\nS_end = []\ns = {}\nfor i in range(num_city + 1):\n S_end.append(s)\n\nfor i in range(num_qa):\n end_v = end_qa[i]\n for j in range(end_v , num_city + 1):\n S_end[j].add(end_v)\n\nfor i in range(0,num_qa):\n str_v = str_qa[i]\n s1 = S_str[ str_v ]\n\n end_v = end_qa[i]\n s2 = S_end[ end_v ]\n\n s_intersection = s1 & s2\n\n print(len(s_intersection))\n', 'l = input().split()\nnum_city = int(l[0])\nnum_train = int(l[1])\nnum_qa = int(l[2])\n\n\nstr_train = []\nend_train = []\nfor i in range(num_train):\n l = input().split()\n dist = 0\n str_train.append( int(l[dist]) )\n dist = 1\n end_train.append( int(l[dist]) )\n\nstr_qa = []\nend_qa = []\n\nfor i in range(num_qa):\n l = input().split()\n dist = 0\n str_qa.append( int(l[dist]) )\n dist = 1\n end_qa.append( int(l[dist]) )\n\n\n\n\nS_str = []\ns = {}\nfor i in range(num_city + 1):\n S_str.append(s)\n\nfor i in range(num_qa):\n str_v = str_qa[i]\n for j in range(0,str_v + 1):\n S_str[j].add(str_v)\n\nS_end = []\ns = {}\nfor i in range(num_city + 1):\n S_end.append(s)\n\nfor i in range(num_qa):\n end_v = end_qa[i]\n for j in range(end_v , num_city + 1):\n S_end[j].add(end_v)\n\nfor i in range(0,num_qa):\n str_v = str_qa[i]\n s1 = S_str[ str_v ]\n\n end_v = end_qa[i]\n s2 = S_end[ end_v ]\n\n s_intersection = s1 & s2\n\n print(len(s_intersection))\n', 'l = input().split()\nnum_city = int(l[0])\nnum_train = int(l[1])\nnum_qa = int(l[2])\n\n\nstr_train = []\nend_train = []\nfor i in range(num_train):\n l = input().split()\n dist = 0\n str_train.append( int(l[dist]) )\n dist = 1\n end_train.append( int(l[dist]) )\n\nstr_qa = []\nend_qa = []\n\nfor i in range(num_qa):\n l = input().split()\n dist = 0\n str_qa.append( int(l[dist]) )\n dist = 1\n end_qa.append( int(l[dist]) )\n\n\n\n\nS_str = []\ns = {}\nfor i in range(num_city + 1):\n S_str.append(s)\n\nfor i in range(num_qa):\n str_v = str_qa[i]\n for j in range(0,str_v + 1):\n S_str[j].add(str_v)\n\nS_end = []\ns = {}\nfor i in range(num_city + 1):\n S_end.append(s)\n\nfor i in range(num_qa):\n end_v = end_qa[i]\n for j in range(end_v , num_city + 1):\n S_end[j].add(end_v)\n\nfor i in range(0,num_qa):\n str_v = str_qa[i]\n s1 = S_str[ str_v ]\n\n end_v = end_qa[i]\n s2 = S_end[ end_v ]\n\n s_intersection = s1 & s2\n\n print(len(s_intersection))\n', 'l = input().split()\nA = int(l[0])\nB = int(l[1])\n\ntotal = A * B\nmichi = A + B - 1\nhatake = total - michi\n\n\nprint(hatake)', 'l = input().split()\nA = int(l[0])\nB = int(l[1])\n\ntotal = A * B\nmichi = A + B - 1\nhatake = total - michi\n\n\nprint(hatake)', 'l = input().split()\nA = int(l[0])\nB = int(l[1])\n\ntotal = A * B\nmichi = A + B - 1\nhatake = total - michi\n\n\nprint(hatake)', 'l = input().split()\nA = int(l[0])\nB = int(l[1])\n\ntotal = A * B\nmichi = A + B - 1\nhatake = total - michi\n\n\nprint(hatake)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s235068826', 's235068826', 's235068826', 's235068826', 's747564341', 's747564341', 's747564341', 's747564341']
[3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 19.0, 19.0]
[991, 991, 991, 991, 119, 119, 119, 119]
p03280
u761320129
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)', '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']
['s406037618', 's406037618', 's406037618', 's406037618', 's887285939', 's887285939', 's887285939', 's887285939']
[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]
[56, 56, 56, 56, 53, 53, 53, 53]
p03280
u762540523
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((input().replace("1","")+"1")[0])', 'print((input().replace("1","")+"1")[0])', 'print((input().replace("1","")+"1")[0])', 'print((input().replace("1","")+"1")[0])', 'a,b=map(int,input().split());print((a-1)*(b-1))', 'a,b=map(int,input().split());print((a-1)*(b-1))', 'a,b=map(int,input().split());print((a-1)*(b-1))', 'a,b=map(int,input().split());print((a-1)*(b-1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s689702785', 's689702785', 's689702785', 's689702785', 's244984773', 's244984773', 's244984773', 's244984773']
[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
u764234894
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']
['s634905819', 's634905819', 's634905819', 's634905819', 's561420904', 's561420904', 's561420904', 's561420904']
[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
u766393261
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']
['s776863463', 's776863463', 's776863463', 's776863463', 's926468153', 's926468153', 's926468153', 's926468153']
[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, 45, 45, 45, 45]
p03280
u767032306
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']
['s471786742', 's471786742', 's471786742', 's471786742', 's878425491', 's878425491', 's878425491', 's878425491']
[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, 60, 60, 60, 60]
p03280
u768968095
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())\ncount = 0\nanswer = 0\nfor x in range(1,N+1,2):\n for i in range(1,x+1):\n if x % i == 0:\n count += 1\n if count == 8:\n answer +=1\n count = 0\nprint (answer)', 'N = int(input())\ncount = 0\nanswer = 0\nfor x in range(1,N+1,2):\n for i in range(1,x+1):\n if x % i == 0:\n count += 1\n if count == 8:\n answer +=1\n count = 0\nprint (answer)', 'N = int(input())\ncount = 0\nanswer = 0\nfor x in range(1,N+1,2):\n for i in range(1,x+1):\n if x % i == 0:\n count += 1\n if count == 8:\n answer +=1\n count = 0\nprint (answer)', 'N = int(input())\ncount = 0\nanswer = 0\nfor x in range(1,N+1,2):\n for i in range(1,x+1):\n if x % i == 0:\n count += 1\n if count == 8:\n answer +=1\n count = 0\nprint (answer)', 'b, c = map(int, input().split())\nprint ((b-1)*(c-1))', 'b, c = map(int, input().split())\nprint ((b-1)*(c-1))', 'b, c = map(int, input().split())\nprint ((b-1)*(c-1))', 'b, c = map(int, input().split())\nprint ((b-1)*(c-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s566167611', 's566167611', 's566167611', 's566167611', 's291765875', 's291765875', 's291765875', 's291765875']
[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]
[202, 202, 202, 202, 52, 52, 52, 52]
p03280
u771406607
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) - ((1 * A) + (1 * B)))', 'A, B = map(int, input().split())\nprint((A * B) - ((1 * A) + (1 * B)))', 'A, B = map(int, input().split())\nprint((A * B) - ((1 * A) + (1 * B)))', 'A, B = map(int, input().split())\nprint((A * B) - ((1 * A) + (1 * 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', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s534712926', 's534712926', 's534712926', 's534712926', 's439390322', 's439390322', 's439390322', 's439390322']
[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]
[69, 69, 69, 69, 57, 57, 57, 57]
p03280
u777028980
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']
['s992573083', 's992573083', 's992573083', 's992573083', 's066012352', 's066012352', 's066012352', 's066012352']
[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, 47, 47, 47, 47]
p03280
u778700306
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,b=map(int,input().split())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input())\n\ns = a*b - a - b\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a * b - a - b + 1\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a * b - a - b + 1\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a * b - a - b + 1\nprint(s)\n', '\na,b=map(int,input().split())\n\ns = a * b - a - b + 1\nprint(s)\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s081465575', 's081465575', 's226067243', 's226067243', 's081465575', 's081465575', 's226067243', 's226067243', 's991882644', 's991882644', 's991882644', 's991882644']
[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]
[56, 56, 48, 48, 56, 56, 48, 48, 62, 62, 62, 62]
p03280
u791664126
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:print(0)\nelif n<3*5*9:print(1)\nelif n<3*5*11:print(2)\nelse:print(3)', 'n=int(input())\nif n<105:print(0)\nelif n<3*5*9:print(1)\nelif n<3*5*11:print(2)\nelse:print(3)', 'n=int(input())\nif n<105:print(0)\nelif n<3*5*9:print(1)\nelif n<3*5*11:print(2)\nelse:print(3)', 'n=int(input())\nif n<105:print(0)\nelif n<3*5*9:print(1)\nelif n<3*5*11:print(2)\nelse:print(3)', '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', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s253945738', 's253945738', 's253945738', 's253945738', 's666925721', 's666925721', 's666925721', 's666925721']
[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]
[91, 91, 91, 91, 53, 53, 53, 53]
p03280
u798818115
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=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)*(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)*(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1))', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1))', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)*(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)*(l[1]-1)+1)', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1))', 'l=raw_input().split()\n \nprint((l[0]-1)-(l[1]-1))', '\na,b=map(int,input().split())\n \nprint((a-1)*(b-1))', '\na,b=map(int,input().split())\n \nprint((a-1)*(b-1))', '\na,b=map(int,input().split())\n \nprint((a-1)*(b-1))', '\na,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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s412453301', 's412453301', 's853321674', 's853321674', 's904003979', 's904003979', 's412453301', 's412453301', 's853321674', 's853321674', 's904003979', 's904003979', 's879555533', 's879555533', 's879555533', 's879555533']
[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]
[50, 50, 50, 50, 48, 48, 50, 50, 50, 50, 48, 48, 50, 50, 50, 50]
p03280
u799691369
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)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s886869143', 's886869143', 's886869143', 's886869143', 's354381626', 's354381626', 's354381626', 's354381626']
[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]
[60, 60, 60, 60, 58, 58, 58, 58]
p03280
u810978770
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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s741987813', 's741987813', 's741987813', 's741987813', 's742698368', 's742698368', 's742698368', 's742698368']
[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]
[59, 59, 59, 59, 59, 59, 59, 59]
p03280
u811000506
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-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']
['s816534451', 's816534451', 's816534451', 's816534451', 's957401268', 's957401268', 's957401268', 's957401268']
[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]
[47, 47, 47, 47, 49, 49, 49, 49]
p03280
u816116805
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 s:\n if i != '1':\n ans = int(i)\n break\n\nprint (i)\n", "s = input()\nk = int(input())\n\nfor i in s:\n if i != '1':\n ans = int(i)\n break\n\nprint (i)\n", 'n,m,q = map(int,input().split())\nrails=[tuple(map(int,input().split())) for i in range(m)]\nqs=[tuple(map(int,input().split())) for i in range(q)]\nenuq = list(enumerate(qs))\n \nenuq.sort(key = lambda x:x[1][0])\nansli = [0 for i in range(q)]\n\n\nfor (i,(p,q)) in enuq:\n removelist=[]\n for (j,(l,r)) in enumerate(rails):\n if p<=l and r<=q:\n ansli[i]=ansli[i]+1\n elif l<p:\n removelist.append(j)\n for jj in removelist:\n rails.pop(jj)\n\n\n\nfor a in ansli:\n print(a)\n', 'n,m,q = map(int,input().split())\nrails=[tuple(map(int,input().split())) for i in range(m)]\nqs=[tuple(map(int,input().split())) for i in range(q)]\nenuq = list(enumerate(qs))\n \nenuq.sort(key = lambda x:x[1][0])\nansli = [0 for i in range(q)]\n\n\nfor (i,(p,q)) in enuq:\n removelist=[]\n for (j,(l,r)) in enumerate(rails):\n if p<=l and r<=q:\n ansli[i]=ansli[i]+1\n elif l<p:\n removelist.append(j)\n for jj in removelist:\n rails.pop(jj)\n\n\n\nfor a in ansli:\n print(a)\n', "s = input()\nk = int(input())\n\nfor i in s:\n if i != '1':\n ans = int(i)\n break\n\nprint (i)\n", "s = input()\nk = int(input())\n\nfor i in s:\n if i != '1':\n ans = int(i)\n break\n\nprint (i)\n", 'n,m,q = map(int,input().split())\nrails=[tuple(map(int,input().split())) for i in range(m)]\nqs=[tuple(map(int,input().split())) for i in range(q)]\nenuq = list(enumerate(qs))\n \nenuq.sort(key = lambda x:x[1][0])\nansli = [0 for i in range(q)]\n\n\nfor (i,(p,q)) in enuq:\n removelist=[]\n for (j,(l,r)) in enumerate(rails):\n if p<=l and r<=q:\n ansli[i]=ansli[i]+1\n elif l<p:\n removelist.append(j)\n for jj in removelist:\n rails.pop(jj)\n\n\n\nfor a in ansli:\n print(a)\n', 'n,m,q = map(int,input().split())\nrails=[tuple(map(int,input().split())) for i in range(m)]\nqs=[tuple(map(int,input().split())) for i in range(q)]\nenuq = list(enumerate(qs))\n \nenuq.sort(key = lambda x:x[1][0])\nansli = [0 for i in range(q)]\n\n\nfor (i,(p,q)) in enuq:\n removelist=[]\n for (j,(l,r)) in enumerate(rails):\n if p<=l and r<=q:\n ansli[i]=ansli[i]+1\n elif l<p:\n removelist.append(j)\n for jj in removelist:\n rails.pop(jj)\n\n\n\nfor a in ansli:\n print(a)\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', 'a,b = map(int,input().split())\n\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']
['s181860193', 's181860193', 's316239725', 's316239725', 's181860193', 's181860193', 's316239725', 's316239725', 's192511244', 's192511244', 's192511244', 's192511244']
[2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.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]
[105, 105, 511, 511, 105, 105, 511, 511, 51, 51, 51, 51]
p03280
u816631826
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(" ")\nA = int(y[0])\nB = int(y[1])\ntotal = A * B\nroads = A + (B-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)\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)\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)\nprint("In this case, the area is", rem, "square yards.")', 'a = input()\nb = a.split(" ")\nb = [int(x) for x in b]\n\nx = b[0]\ny = b[1]\n\ntA = x * y\nrA = x + y - 1\n\nans = tA - rA\nprint(ans)', 'a = input()\nb = a.split(" ")\nb = [int(x) for x in b]\n\nx = b[0]\ny = b[1]\n\ntA = x * y\nrA = x + y - 1\n\nans = tA - rA\nprint(ans)', 'a = input()\nb = a.split(" ")\nb = [int(x) for x in b]\n\nx = b[0]\ny = b[1]\n\ntA = x * y\nrA = x + y - 1\n\nans = tA - rA\nprint(ans)', 'a = input()\nb = a.split(" ")\nb = [int(x) for x in b]\n\nx = b[0]\ny = b[1]\n\ntA = x * y\nrA = x + y - 1\n\nans = tA - rA\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s277806761', 's277806761', 's277806761', 's277806761', 's943461617', 's943461617', 's943461617', 's943461617']
[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]
[191, 191, 191, 191, 124, 124, 124, 124]
p03280
u824981218
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)\nelse:\n print(1)', 'n = int(input())\nif n < 105:\n print(0)\nelse:\n print(1)', 'A = input()\nB = input()\nprint((int(A)-1)*(int(B)-1))', 'A = input()\nB = input()\nprint((int(A)-1)*(int(B)-1))', 'n = int(input())\nif n < 105:\n print(0)\nelse:\n print(1)', 'n = int(input())\nif n < 105:\n print(0)\nelse:\n print(1)', 'A = input()\nB = input()\nprint((int(A)-1)*(int(B)-1))', 'A = input()\nB = input()\nprint((int(A)-1)*(int(B)-1))', 'i = input()\nA = i.split(" ")[0]\nB = i.split(" ")[1]\nprint((int(A)-1)*(int(B)-1))', 'i = input()\nA = i.split(" ")[0]\nB = i.split(" ")[1]\nprint((int(A)-1)*(int(B)-1))', 'i = input()\nA = i.split(" ")[0]\nB = i.split(" ")[1]\nprint((int(A)-1)*(int(B)-1))', 'i = input()\nA = i.split(" ")[0]\nB = i.split(" ")[1]\nprint((int(A)-1)*(int(B)-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s159445691', 's159445691', 's234225112', 's234225112', 's159445691', 's159445691', 's234225112', 's234225112', 's552910268', 's552910268', 's552910268', 's552910268']
[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]
[60, 60, 52, 52, 60, 60, 52, 52, 80, 80, 80, 80]
p03280
u825343780
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))', 's = list(map(int,input().split()))\nprint(s[0]*s[1] -(s[0]+s[1]-1))', 's = list(map(int,input().split()))\nprint(s[0]*s[1] -(s[0]+s[1]-1))', 's = list(map(int,input().split()))\nprint(s[0]*s[1] -(s[0]+s[1]-1))', 's = list(map(int,input().split()))\nprint(s[0]*s[1] -(s[0]+s[1]-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s555741575', 's555741575', 's555741575', 's555741575', 's619952372', 's619952372', 's619952372', 's619952372']
[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]
[53, 53, 53, 53, 66, 66, 66, 66]
p03280
u838146168
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 -*-\nimport sys\n\na = sys.args[0]\nb = sys.args[1]\n\ngarden = (a-1) * (b-1) + 1\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = sys.args[0]\nb = sys.args[1]\n\ngarden = (a-1) * (b-1) + 1\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = int(sys.argv[1])\nb = int(sys.argv[2])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = int(sys.argv[1])\nb = int(sys.argv[2])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = sys.args[0]\nb = sys.args[1]\n\ngarden = (a-1) * (b-1) + 1\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = sys.args[0]\nb = sys.args[1]\n\ngarden = (a-1) * (b-1) + 1\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = int(sys.argv[1])\nb = int(sys.argv[2])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\nimport sys\n\na = int(sys.argv[1])\nb = int(sys.argv[2])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\n\nl = input().split()\na = int(l[0])\nb = int(l[1])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\n\nl = input().split()\na = int(l[0])\nb = int(l[1])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\n\nl = input().split()\na = int(l[0])\nb = int(l[1])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n', '# -*- coding: utf-8 -*-\n\nl = input().split()\na = int(l[0])\nb = int(l[1])\n\ngarden = (a-1) * (b-1)\nprint(garden)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s295495752', 's295495752', 's600817727', 's600817727', 's295495752', 's295495752', 's600817727', 's600817727', 's271379893', 's271379893', 's271379893', 's271379893']
[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]
[110, 110, 116, 116, 110, 110, 116, 116, 111, 111, 111, 111]
p03280
u840958781
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']
['s229613769', 's229613769', 's229613769', 's229613769', 's971288424', 's971288424', 's971288424', 's971288424']
[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, 47, 47, 47, 47]
p03280
u841531687
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 * b - (a + b -1))', 'a, b = map(int, input())\nprint(a * b - (a + b -1))', 'a, b = map(int, input())\nprint(a * b - (a + b -1))', 'a, b = map(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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s725327447', 's725327447', 's725327447', 's725327447', 's301981465', 's301981465', 's301981465', 's301981465']
[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, 58, 58, 58, 58]
p03280
u841568901
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().solit())\nprint((a-1)*(b-1))', 'a, b = map(int, input().solit())\nprint((a-1)*(b-1))', 'a, b = map(int, input().solit())\nprint((a-1)*(b-1))', 'a, b = map(int, input().solit())\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']
['s431211251', 's431211251', 's431211251', 's431211251', 's274903731', 's274903731', 's274903731', 's274903731']
[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]
[51, 51, 51, 51, 51, 51, 51, 51]
p03280
u843774833
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 solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n print(solve(A, B))\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n print(solve(A, B))\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n print(solve(A, B))\n \n', '# coding: utf-8\n\ndef solve(A, B):\n ans = A * B\n ans -= (A + B) - 1\n return ans\n\nif __name__ == "__main__":\n\n A, B = map(int, input().split())\n print(solve(A, B))\n \n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s129543281', 's129543281', 's129543281', 's129543281', 's220981760', 's220981760', 's220981760', 's220981760']
[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]
[159, 159, 159, 159, 182, 182, 182, 182]
p03280
u845468321
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())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b=int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b = int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b = int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b=int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b=int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b = int(input())\n\na-=1\nb-=1\n\nprint(a*b)', 'a,b = int(input())\n\na-=1\nb-=1\n\nprint(a*b)', '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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s261973794', 's261973794', 's381447549', 's381447549', 's261973794', 's261973794', 's381447549', 's381447549', 's920011569', 's920011569', 's920011569', 's920011569']
[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]
[39, 39, 41, 41, 39, 39, 41, 41, 49, 49, 49, 49]
p03280
u853900545
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())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\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())\nprint((A-1) * (B-1))', 'A = int(input())\nB = int(input())\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s436672514', 's436672514', 's533225053', 's533225053', 's436672514', 's436672514', 's533225053', 's533225053', 's811624313', 's811624313', 's811624313', 's811624313']
[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]
[55, 55, 54, 54, 55, 55, 54, 54, 52, 52, 52, 52]
p03280
u855380359
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())\n\nprint((a-1)*(b-1))', 'a, b = map(int, input())\n\nprint((a-1)*(b-1))', 'a, b = map(int, input())\n\nprint((a-1)*(b-1))', 'a, b = map(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']
['s138407162', 's138407162', 's138407162', 's138407162', 's224738723', 's224738723', 's224738723', 's224738723']
[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]
[44, 44, 44, 44, 52, 52, 52, 52]
p03280
u855985627
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(eval("("+input().replace(" ", "-1)(")+"-1)"))', 'print(eval("("+input().replace(" ", "-1)(")+"-1)"))', "s=input()\nk=int(input())\n\ncount_1=0\nwhile s!='':\n if s[0]=='1':\n count_1+=1\n s=s.lstrip('1')\n else:\n break\nif count_1>=k:\n print('1')\nelse:\n print(s[0])\n", "s=input()\nk=int(input())\n\ncount_1=0\nwhile s!='':\n if s[0]=='1':\n count_1+=1\n s=s.lstrip('1')\n else:\n break\nif count_1>=k:\n print('1')\nelse:\n print(s[0])\n", 'print(eval("("+input().replace(" ", "-1)(")+"-1)"))', 'print(eval("("+input().replace(" ", "-1)(")+"-1)"))', "s=input()\nk=int(input())\n\ncount_1=0\nwhile s!='':\n if s[0]=='1':\n count_1+=1\n s=s.lstrip('1')\n else:\n break\nif count_1>=k:\n print('1')\nelse:\n print(s[0])\n", "s=input()\nk=int(input())\n\ncount_1=0\nwhile s!='':\n if s[0]=='1':\n count_1+=1\n s=s.lstrip('1')\n else:\n break\nif count_1>=k:\n print('1')\nelse:\n print(s[0])\n", 'print(eval("("+input().replace(" ", "-1)*(")+"-1)"))', 'print(eval("("+input().replace(" ", "-1)*(")+"-1)"))', 'print(eval("("+input().replace(" ", "-1)*(")+"-1)"))', 'print(eval("("+input().replace(" ", "-1)*(")+"-1)"))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s511224725', 's511224725', 's562805654', 's562805654', 's511224725', 's511224725', 's562805654', 's562805654', 's747499672', 's747499672', 's747499672', 's747499672']
[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, 166, 166, 51, 51, 166, 166, 52, 52, 52, 52]
p03280
u871596687
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)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b+1)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b+1)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b+1)\n\n\n', 'a,b = map(int,input().split())\n\nprint(a*b-a-b+1)\n\n\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s711817776', 's711817776', 's711817776', 's711817776', 's340227260', 's340227260', 's340227260', 's340227260']
[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]
[49, 49, 49, 49, 51, 51, 51, 51]
p03280
u875541682
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 = (int(x) for x in input().split())\nprint((a-1) * (b-1))', 'a,b = (int(x) for x in input().split())\nprint((a-1) * (b-1))', 'a,b = (int(x) for x in input().split())\nprint((a-1) * (b-1))', 'a,b = (int(x) for x in input().split())\nprint((a-1) * (b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s820809641', 's820809641', 's820809641', 's820809641', 's654081462', 's654081462', 's654081462', 's654081462']
[2940.0, 2940.0, 2940.0, 2940.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]
[54, 54, 54, 54, 60, 60, 60, 60]
p03280
u877543650
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(x) for x in input().split()]\n\nreturn a * b - a - b + 1', 'a, b = [int(x) for x in input().split()]\n\nreturn a * b - a - b + 1', 'a, b = [int(x) for x in input().split()]\n\nreturn a * b - a - b + 1', 'a, b = [int(x) for x in input().split()]\n\nreturn a * b - a - b + 1', 'a, b = [int(x) for x in input().split()]\n \nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\n \nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\n \nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\n \nprint(a * b - a - b + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s530754168', 's530754168', 's530754168', 's530754168', 's509497531', 's509497531', 's509497531', 's509497531']
[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]
[66, 66, 66, 66, 67, 67, 67, 67]
p03280
u878935253
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 = (int(i) for i in input().split())\n\nprint((a-1) * (b-1))', 'a, b = (int(i) for i in input().split())\n\nprint((a-1) * (b-1))', 'a, b = (int(i) for i in input().split())\n\nprint((a-1) * (b-1))', 'a, b = (int(i) for i in input().split())\n\nprint((a-1) * (b-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s301561274', 's301561274', 's301561274', 's301561274', 's818004643', 's818004643', 's818004643', 's818004643']
[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]
[55, 55, 55, 55, 62, 62, 62, 62]
p03280
u884531978
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,y = map(int,input().split)\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split)\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split)\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split)\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split())\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split())\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split())\n\nprint(x*y - x - y +1)', 'x,y = map(int,input().split())\n\nprint(x*y - x - y +1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s153376986', 's153376986', 's153376986', 's153376986', 's477866245', 's477866245', 's477866245', 's477866245']
[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]
[51, 51, 51, 51, 53, 53, 53, 53]
p03280
u887207211
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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s192021058', 's192021058', 's192021058', 's192021058', 's103302092', 's103302092', 's103302092', 's103302092']
[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, 50, 50, 50, 50]
p03280
u890807039
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 c in range(len(s)):\n if s[c] == "1":\n k -= 1\n if k >= 0:\n print(1)\n break\n else:\n print(s[c])\n break', 's = input()\nk = int(input())\nfor c in range(len(s)):\n if s[c] == "1":\n k -= 1\n if k >= 0:\n print(1)\n break\n else:\n print(s[c])\n break', 's = input()\nk = int(input())\nfor c in range(len(s)):\n if s[c] == "1":\n k -= 1\n if k >= 0:\n print(1)\n break\n else:\n print(s[c])\n break', 's = input()\nk = int(input())\nfor c in range(len(s)):\n if s[c] == "1":\n k -= 1\n if k >= 0:\n print(1)\n break\n else:\n print(s[c])\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']
['s054566858', 's054566858', 's054566858', 's054566858', 's721899140', 's721899140', 's721899140', 's721899140']
[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]
[189, 189, 189, 189, 49, 49, 49, 49]
p03280
u890870565
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\nAB = np.prod(np.array(list(map(int,input()))))\nprint(AB)', 'import numpy as np\nAB = np.prod(np.array(list(map(int,input()))))\nprint(AB)', 'import numpy as np\nAB = np.prod(np.array(list(map(int,input()))))\nprint(AB)', 'import numpy as np\nAB = np.prod(np.array(list(map(int,input()))))\nprint(AB)', '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']
['s688538548', 's688538548', 's688538548', 's688538548', 's603612766', 's603612766', 's603612766', 's603612766']
[26956.0, 26956.0, 26956.0, 26956.0, 8972.0, 8972.0, 8972.0, 8972.0]
[112.0, 112.0, 112.0, 112.0, 28.0, 28.0, 28.0, 28.0]
[75, 75, 75, 75, 49, 49, 49, 49]
p03280
u897753140
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())\nans = a * b - a - b + 1\nprint(ans)', 'a = int(input())\nb = int(input())\nans = a * b - a - b + 1\nprint(ans)', 'inp = input()\nl = list(map(int, inp.split()))\na = l[0]\nb = l[1]\n\nans = a * b - a - b + 1\nprint(ans)', 'inp = input()\nl = list(map(int, inp.split()))\na = l[0]\nb = l[1]\n\nans = a * b - a - b + 1\nprint(ans)', 'inp = input()\nl = list(map(int, inp.split()))\na = l[0]\nb = l[1]\n\nans = a * b - a - b + 1\nprint(ans)', 'inp = input()\nl = list(map(int, inp.split()))\na = l[0]\nb = l[1]\n\nans = a * b - a - b + 1\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s257245861', 's257245861', 's257245861', 's257245861', 's425776423', 's425776423', 's425776423', 's425776423']
[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]
[68, 68, 68, 68, 99, 99, 99, 99]
p03280
u901598613
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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s543914487', 's543914487', 's543914487', 's543914487', 's630697374', 's630697374', 's630697374', 's630697374']
[9084.0, 9084.0, 9084.0, 9084.0, 8912.0, 8912.0, 8912.0, 8912.0]
[28.0, 28.0, 28.0, 28.0, 22.0, 22.0, 22.0, 22.0]
[47, 47, 47, 47, 47, 47, 47, 47]
p03280
u911449886
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(str(a*b-a-b+1))', 'a,b = map(int,input())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input().split())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input().split())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input().split())\nprint(str(a*b-a-b+1))', 'a,b = map(int,input().split())\nprint(str(a*b-a-b+1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s222819632', 's222819632', 's222819632', 's222819632', 's496835169', 's496835169', 's496835169', 's496835169']
[9032.0, 9032.0, 9032.0, 9032.0, 9080.0, 9080.0, 9080.0, 9080.0]
[24.0, 24.0, 24.0, 24.0, 27.0, 27.0, 27.0, 27.0]
[44, 44, 44, 44, 52, 52, 52, 52]
p03280
u911575040
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())\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']
['s519174999', 's519174999', 's519174999', 's519174999', 's826090523', 's826090523', 's826090523', 's826090523']
[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, 49, 49, 49, 49]
p03280
u918714262
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())\ndef cnt(x):\n\treturn sum(1 for i in range(1, x+1) if x%i == 0)\nprint(sum(1 for i in range(1, n+1, 2) if cnt(i) == 8))', 'n = int(input())\ndef cnt(x):\n\treturn sum(1 for i in range(1, x+1) if x%i == 0)\nprint(sum(1 for i in range(1, n+1, 2) if cnt(i) == 8))', 'n = int(input())\ndef cnt(x):\n\treturn sum(1 for i in range(1, x+1) if x%i == 0)\nprint(sum(1 for i in range(1, n+1, 2) if cnt(i) == 8))', 'n = int(input())\ndef cnt(x):\n\treturn sum(1 for i in range(1, x+1) if x%i == 0)\nprint(sum(1 for i in range(1, n+1, 2) if cnt(i) == 8))', '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']
['s973167429', 's973167429', 's973167429', 's973167429', 's136475748', 's136475748', 's136475748', 's136475748']
[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]
[133, 133, 133, 133, 51, 51, 51, 51]
p03280
u920963042
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\n# A, B = map(int, input().split())\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\n\n# A, B = map(int, input().split())\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\n\n# A, B = map(int, input().split())\nprint(A*B - A - B + 1)', 'A = int(input())\nB = int(input())\n\n# 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']
['s437983619', 's437983619', 's437983619', 's437983619', 's477693051', 's477693051', 's477693051', 's477693051']
[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]
[92, 92, 92, 92, 55, 55, 55, 55]
p03280
u923561222
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*b-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint((a*b)-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint((a*b)-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint(a*b-a-b+1)', 'a=int(input())\nb=int(input())\n\nprint((a*b)-a-b+1)', 'a=int(input())\nb=int(input())\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s273863695', 's273863695', 's660146945', 's660146945', 's273863695', 's273863695', 's660146945', 's660146945', 's688534095', 's688534095', 's688534095', 's688534095']
[3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0, 3316.0]
[27.0, 27.0, 21.0, 21.0, 27.0, 27.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0]
[47, 47, 49, 49, 47, 47, 49, 49, 48, 48, 48, 48]
p03280
u924406834
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(int(input().split()))\nprint((a[0]-1)*(a[1]-1))', 'a = list(int(input().split()))\nprint((a[0]-1)*(a[1]-1))', 'a = list(int(input().split()))\nprint((a[0]-1)*(a[1]-1))', 'a = list(int(input().split()))\nprint((a[0]-1)*(a[1]-1))', 'a = list(input().split())\na = list(int(x) for x in a)\nprint((a[0]-1)*(a[1]-1))', 'a = list(input().split())\na = list(int(x) for x in a)\nprint((a[0]-1)*(a[1]-1))', 'a = list(input().split())\na = list(int(x) for x in a)\nprint((a[0]-1)*(a[1]-1))', 'a = list(input().split())\na = list(int(x) for x in a)\nprint((a[0]-1)*(a[1]-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s962404214', 's962404214', 's962404214', 's962404214', 's105179611', 's105179611', 's105179611', 's105179611']
[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]
[55, 55, 55, 55, 78, 78, 78, 78]
p03280
u928784113
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())\nL = [int(i) for i in S]\ncount = 1\nfor i in L:\n if i != 1:\n if count <= K:\n print(i)\n else:\n print(1)\n exit()\n else:\n count += 1\nprint(1)', 'S = input()\nK = int(input())\nL = [int(i) for i in S]\ncount = 1\nfor i in L:\n if i != 1:\n if count <= K:\n print(i)\n else:\n print(1)\n exit()\n else:\n count += 1\nprint(1)', 'A,B = map(int,input().aplir())\nprint((A-1)*(B-1))', 'A,B = map(int,input().aplir())\nprint((A-1)*(B-1))', 'S = input()\nK = int(input())\nL = [int(i) for i in S]\ncount = 1\nfor i in L:\n if i != 1:\n if count <= K:\n print(i)\n else:\n print(1)\n exit()\n else:\n count += 1\nprint(1)', 'S = input()\nK = int(input())\nL = [int(i) for i in S]\ncount = 1\nfor i in L:\n if i != 1:\n if count <= K:\n print(i)\n else:\n print(1)\n exit()\n else:\n count += 1\nprint(1)', 'A,B = map(int,input().aplir())\nprint((A-1)*(B-1))', 'A,B = map(int,input().aplir())\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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s516549268', 's516549268', 's795213018', 's795213018', 's516549268', 's516549268', 's795213018', 's795213018', 's817272495', 's817272495', 's817272495', 's817272495']
[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, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[221, 221, 49, 49, 221, 221, 49, 49, 49, 49, 49, 49]
p03280
u930970950
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(x) for x in input().split()]\nprint(a * b - a - b + 1)', ' a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', ' a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', ' a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)', 'a, b = [int(x) for x in input().split()]\nprint(a * b - a - b + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s478672666', 's478672666', 's478672666', 's478672666', 's601929930', 's601929930', 's601929930', 's601929930']
[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]
[66, 66, 66, 66, 65, 65, 65, 65]
p03280
u937529125
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.
['li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint(n*l)', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint(n*l)', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint(n*l)', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint(n*l)', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint((n-1)*(l-1))', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint((n-1)*(l-1))', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint((n-1)*(l-1))', 'li = list(map(int,input().split()))\nn=li[0]\nl=li[1]\nprint((n-1)*(l-1))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s387715284', 's387715284', 's387715284', 's387715284', 's601125012', 's601125012', 's601125012', 's601125012']
[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, 70, 70, 70, 70]
p03280
u940279019
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())\ncount_ans = 0\nfor i in range(n//2 + 1):\n count_y = 0\n for j in range(2*i+2):\n if j > 0:\n if (2 * i + 1)%j == 0:\n count_y += 1\n if count_y == 8:\n count_ans += 1\nprint(count_ans)', 'n = int(input())\ncount_ans = 0\nfor i in range(n//2 + 1):\n count_y = 0\n for j in range(2*i+2):\n if j > 0:\n if (2 * i + 1)%j == 0:\n count_y += 1\n if count_y == 8:\n count_ans += 1\nprint(count_ans)', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B)))', 'n = int(input())\ncount_ans = 0\nfor i in range(n//2 + 1):\n count_y = 0\n for j in range(2*i+2):\n if j > 0:\n if (2 * i + 1)%j == 0:\n count_y += 1\n if count_y == 8:\n count_ans += 1\nprint(count_ans)', 'n = int(input())\ncount_ans = 0\nfor i in range(n//2 + 1):\n count_y = 0\n for j in range(2*i+2):\n if j > 0:\n if (2 * i + 1)%j == 0:\n count_y += 1\n if count_y == 8:\n count_ans += 1\nprint(count_ans)', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B-1)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B-1)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B-1)))', 'A,B = map(int,input().split())\nprint(int(A*B - (A+B-1)))']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s462515120', 's462515120', 's935400034', 's935400034', 's462515120', 's462515120', 's935400034', 's935400034', 's577472258', 's577472258', 's577472258', 's577472258']
[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]
[214, 214, 54, 54, 214, 214, 54, 54, 56, 56, 56, 56]
p03280
u941047297
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 main():\n a, b = map(int, inptut().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, inptut().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, inptut().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, inptut().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n", "def main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s403334532', 's403334532', 's403334532', 's403334532', 's487109583', 's487109583', 's487109583', 's487109583']
[8860.0, 8860.0, 8860.0, 8860.0, 9080.0, 9080.0, 9080.0, 9080.0]
[19.0, 19.0, 19.0, 19.0, 24.0, 24.0, 24.0, 24.0]
[118, 118, 118, 118, 117, 117, 117, 117]
p03280
u942767171
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 = input()\nt = '1'\n\nfor i in range(len(s)) :\n if s[i]=='1' :\n continue\n else :\n t = s[i]\n break\n\nprint(t)", "s = input()\nk = input()\nt = '1'\n\nfor i in range(len(s)) :\n if s[i]=='1' :\n continue\n else :\n t = s[i]\n break\n\nprint(t)", "s = input()\nk = input()\nt = '1'\n\nfor i in range(len(s)) :\n if s[i]=='1' :\n continue\n else :\n t = s[i]\n break\n\nprint(t)", "s = input()\nk = input()\nt = '1'\n\nfor i in range(len(s)) :\n if s[i]=='1' :\n continue\n else :\n t = s[i]\n break\n\nprint(t)", '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']
['s916872186', 's916872186', 's916872186', 's916872186', 's794664852', 's794664852', 's794664852', 's794664852']
[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]
[137, 137, 137, 137, 51, 51, 51, 51]
p03280
u943657163
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())\nlines = [i for i in range(24, n+1) if i % 2 != 0]\n\nans = 0\nfor i in lines:\n cnt = 0\n for j in range(1, i+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)\n', 'n = int(input())\nlines = [i for i in range(24, n+1) if i % 2 != 0]\n\nans = 0\nfor i in lines:\n cnt = 0\n for j in range(1, i+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)\n', 'n = int(input())\n\nans = 0\nfor i in range(1, n+1):\n cnt = 0\n for j in range(1, i+1):\n if i % 2 != 0 and i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)', 'n = int(input())\n\nans = 0\nfor i in range(1, n+1):\n cnt = 0\n for j in range(1, i+1):\n if i % 2 != 0 and i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)', 'n = int(input())\nlines = [i for i in range(24, n+1) if i % 2 != 0]\n\nans = 0\nfor i in lines:\n cnt = 0\n for j in range(1, i+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)\n', 'n = int(input())\nlines = [i for i in range(24, n+1) if i % 2 != 0]\n\nans = 0\nfor i in lines:\n cnt = 0\n for j in range(1, i+1):\n if i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)\n', 'n = int(input())\n\nans = 0\nfor i in range(1, n+1):\n cnt = 0\n for j in range(1, i+1):\n if i % 2 != 0 and i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)', 'n = int(input())\n\nans = 0\nfor i in range(1, n+1):\n cnt = 0\n for j in range(1, i+1):\n if i % 2 != 0 and i % j == 0:\n cnt += 1\n if cnt == 8:\n ans += 1\nprint(ans)', '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']
['s063912113', 's063912113', 's825512800', 's825512800', 's063912113', 's063912113', 's825512800', 's825512800', 's579125303', 's579125303', 's579125303', 's579125303']
[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]
[229, 229, 209, 209, 229, 229, 209, 209, 53, 53, 53, 53]
p03280
u952491523
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.
['nums = [int(i) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [int(i) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [int(i) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [int(i) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [(int(i) - 1) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [(int(i) - 1) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [(int(i) - 1) for i in input().split()] \n\nprint(nums[0] * nums[1])', 'nums = [(int(i) - 1) for i in input().split()] \n\nprint(nums[0] * nums[1])']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s594145096', 's594145096', 's594145096', 's594145096', 's531184474', 's531184474', 's531184474', 's531184474']
[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]
[67, 67, 67, 67, 73, 73, 73, 73]
p03280
u960262706
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(e) for e in input().split)\n\nprint(a*b - (a+b) + 1)', 'a, b = map(int(e) for e in input().split)\n\nprint(a*b - (a+b) + 1)', 'a, b = map(int(e) for e in input().split)\n\nprint(a*b - (a+b) + 1)', 'a, b = map(int(e) for e in 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']
['s168435416', 's168435416', 's168435416', 's168435416', 's180474296', 's180474296', 's180474296', 's180474296']
[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]
[65, 65, 65, 65, 56, 56, 56, 56]
p03280
u961595602
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())\nres = (A-1)*(B-1)\n\nprint(int(res))\n', 'A = int(input())\nB = int(input())\nres = (A-1)*(B-1)\n\nprint(int(res))\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())\nres = (A-1)*(B-1)\n\nprint(int(res))\n', 'A = int(input())\nB = int(input())\nres = (A-1)*(B-1)\n\nprint(int(res))\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())\nres = (A-1)*(B-1)\n\nprint(int(res))\n', 'A, B = map(int, input().split())\nres = (A-1)*(B-1)\n\nprint(int(res))\n', 'A, B = map(int, input().split())\nres = (A-1)*(B-1)\n\nprint(int(res))\n', 'A, B = map(int, input().split())\nres = (A-1)*(B-1)\n\nprint(int(res))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s776521221', 's776521221', 's911694487', 's911694487', 's776521221', 's776521221', 's911694487', 's911694487', 's521013087', 's521013087', 's521013087', 's521013087']
[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]
[69, 69, 54, 54, 69, 69, 54, 54, 68, 68, 68, 68]
p03280
u962718741
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))', '#!/usr/bin/env python3\n\ndef main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\n\nif __name__ == "__main__":\n main()\n', '#!/usr/bin/env python3\n\ndef main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\n\nif __name__ == "__main__":\n main()\n', '#!/usr/bin/env python3\n\ndef main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\n\nif __name__ == "__main__":\n main()\n', '#!/usr/bin/env python3\n\ndef main():\n a, b = map(int, input().split())\n print((a - 1) * (b - 1))\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s116769416', 's116769416', 's116769416', 's116769416', 's065794852', 's065794852', 's065794852', 's065794852']
[8984.0, 8984.0, 8984.0, 8984.0, 9004.0, 9004.0, 9004.0, 9004.0]
[26.0, 26.0, 26.0, 26.0, 24.0, 24.0, 24.0, 24.0]
[46, 46, 46, 46, 142, 142, 142, 142]
p03280
u970107703
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))', 'ab = raw_input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = raw_input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'A = int(input())\nB = int(input())\nprint((A-1)*(B-1))', 'ab = raw_input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = raw_input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))', 'ab = input().split()\nprint((int(ab[0])-1)*(int(ab[1])-1))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s312222986', 's312222986', 's632562466', 's632562466', 's312222986', 's312222986', 's632562466', 's632562466', 's015488075', 's015488075', 's015488075', 's015488075']
[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, 61, 61, 52, 52, 61, 61, 57, 57, 57, 57]
p03280
u972892985
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-2))', 'a,b = map(int, input().split())\nprint((a-1)*(b-2))', 'a,b = map(int, input().split())\nprint((a-1)*(b-2))', 'a,b = map(int, input().split())\nprint((a-1)*(b-2))', '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', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s039160740', 's039160740', 's039160740', 's039160740', 's136465992', 's136465992', 's136465992', 's136465992']
[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]
[50, 50, 50, 50, 51, 51, 51, 51]
p03280
u982198202
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.
["\ndef main():\n n = int(input())\n\n \n \n def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n print(divide(n))\n \nif __name__ == '__main__':\n main()", "\ndef main():\n n = int(input())\n\n \n \n def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n print(divide(n))\n \nif __name__ == '__main__':\n main()", "def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n \nif __name__ == '__main__':\n n = int(input())\n print(divide(n))", "def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n \nif __name__ == '__main__':\n n = int(input())\n print(divide(n))", "\ndef main():\n n = int(input())\n\n \n \n def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n print(divide(n))\n \nif __name__ == '__main__':\n main()", "\ndef main():\n n = int(input())\n\n \n \n def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n print(divide(n))\n \nif __name__ == '__main__':\n main()", "def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n \nif __name__ == '__main__':\n n = int(input())\n print(divide(n))", "def divide(n):\n counter = 0\n counter1 = 0\n if n % 2 != 0:\n for i in range(1, n+1, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n else:\n for i in range(1, n, 2):\n for j in range(1, i+1):\n if i % j == 0:\n counter += 1\n if counter == 8:\n counter1 += 1\n counter = 0\n return counter1\n\n \nif __name__ == '__main__':\n n = int(input())\n print(divide(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']
['s359649944', 's359649944', 's520980965', 's520980965', 's359649944', 's359649944', 's520980965', 's520980965', 's670855470', 's670855470', 's670855470', 's670855470']
[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, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[741, 741, 626, 626, 741, 741, 626, 626, 57, 57, 57, 57]
p03280
u982945424
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 * B)", "A,B = input().split(' ')\nA=int(A)\nB=int(B)\nprint(A * B)", 'i=105\nN=input()\nN=int(N)\nm=5\nn=0\nx=0\ny=0\nwhile i <= N:\n if i % 2 != 0:\n if i % 3 == 0:\n n = int(i / 3)\n while m < n:\n if i % m == 0:\n x = x + 1\n m=m+2\n if x == 4:\n y = y + 1\n x=0\n n=0\n m=5\n i = i + 1\nprint(y)', 'i=105\nN=input()\nN=int(N)\nm=5\nn=0\nx=0\ny=0\nwhile i <= N:\n if i % 2 != 0:\n if i % 3 == 0:\n n = int(i / 3)\n while m < n:\n if i % m == 0:\n x = x + 1\n m=m+2\n if x == 4:\n y = y + 1\n x=0\n n=0\n m=5\n i = i + 1\nprint(y)', "A,B = input().split(' ')\nA=int(A)\nB=int(B)\nprint(A * B)", "A,B = input().split(' ')\nA=int(A)\nB=int(B)\nprint(A * B)", 'i=105\nN=input()\nN=int(N)\nm=5\nn=0\nx=0\ny=0\nwhile i <= N:\n if i % 2 != 0:\n if i % 3 == 0:\n n = int(i / 3)\n while m < n:\n if i % m == 0:\n x = x + 1\n m=m+2\n if x == 4:\n y = y + 1\n x=0\n n=0\n m=5\n i = i + 1\nprint(y)', 'i=105\nN=input()\nN=int(N)\nm=5\nn=0\nx=0\ny=0\nwhile i <= N:\n if i % 2 != 0:\n if i % 3 == 0:\n n = int(i / 3)\n while m < n:\n if i % m == 0:\n x = x + 1\n m=m+2\n if x == 4:\n y = y + 1\n x=0\n n=0\n m=5\n i = i + 1\nprint(y)', "A,B = input().split(' ')\nA=int(A)-1\nB=int(B)-1\nprint(A * B)", "A,B = input().split(' ')\nA=int(A)-1\nB=int(B)-1\nprint(A * B)", "A,B = input().split(' ')\nA=int(A)-1\nB=int(B)-1\nprint(A * B)", "A,B = input().split(' ')\nA=int(A)-1\nB=int(B)-1\nprint(A * B)"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s634058560', 's634058560', 's696777662', 's696777662', 's634058560', 's634058560', 's696777662', 's696777662', 's691488358', 's691488358', 's691488358', 's691488358']
[2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.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]
[55, 55, 261, 261, 55, 55, 261, 261, 59, 59, 59, 59]
p03280
u983918956
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())\nS = (A-1)*(B-1)\nprint(S)', 'A = int(input())\nB = int(input())\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)', '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']
['s633815170', 's633815170', 's633815170', 's633815170', 's851138395', 's851138395', 's851138395', 's851138395']
[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, 55, 55, 55, 55]
p03280
u987039273
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(x) for x in input().split())\nmenseki=A*B\ntate=1*A\nyoko=1*B\ngoukei=1\nnyan=menseki-(tate+yoko)+1', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\ntate=1*A\nyoko=1*B\ngoukei=1\nnyan=menseki-(tate+yoko)+1', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint("nyan")', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint("nyan")', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\ntate=1*A\nyoko=1*B\ngoukei=1\nnyan=menseki-(tate+yoko)+1', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\ntate=1*A\nyoko=1*B\ngoukei=1\nnyan=menseki-(tate+yoko)+1', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint("nyan")', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint("nyan")', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint(nyan)', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint(nyan)', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint(nyan)', 'A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint(nyan)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s470364087', 's470364087', 's796651046', 's796651046', 's470364087', 's470364087', 's796651046', 's796651046', 's480237838', 's480237838', 's480237838', 's480237838']
[9160.0, 9160.0, 9164.0, 9164.0, 9160.0, 9160.0, 9164.0, 9164.0, 9160.0, 9160.0, 9160.0, 9160.0]
[26.0, 26.0, 24.0, 24.0, 26.0, 26.0, 24.0, 24.0, 23.0, 23.0, 23.0, 23.0]
[104, 104, 83, 83, 104, 104, 83, 83, 81, 81, 81, 81]
p03280
u989157442
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.
["# To Infinity\nimport re\ns = input()\nk = int(input())\nind = re.search(r'[23456789]', s)\nif ind is None:\n ind = k\nelse:\n ind = ind.start()\nif ind < k:\n print(s[ind])\nelse:\n print(1)\n", "# To Infinity\nimport re\ns = input()\nk = int(input())\nind = re.search(r'[23456789]', s)\nif ind is None:\n ind = k\nelse:\n ind = ind.start()\nif ind < k:\n print(s[ind])\nelse:\n print(1)\n", "# To Infinity\nimport re\ns = input()\nk = int(input())\nind = re.search(r'[23456789]', s)\nif ind is None:\n ind = k\nelse:\n ind = ind.start()\nif ind < k:\n print(s[ind])\nelse:\n print(1)\n", "# To Infinity\nimport re\ns = input()\nk = int(input())\nind = re.search(r'[23456789]', s)\nif ind is None:\n ind = k\nelse:\n ind = ind.start()\nif ind < k:\n print(s[ind])\nelse:\n print(1)\n", '\na, b = map(int, input().split())\nprint(a * b - a - b + 1)\n', '\na, b = map(int, input().split())\nprint(a * b - a - b + 1)\n', '\na, b = map(int, input().split())\nprint(a * b - a - b + 1)\n', '\na, b = map(int, input().split())\nprint(a * b - a - b + 1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s757500588', 's757500588', 's757500588', 's757500588', 's755026451', 's755026451', 's755026451', 's755026451']
[3188.0, 3188.0, 3188.0, 3188.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]
[196, 196, 196, 196, 67, 67, 67, 67]
p03280
u990849962
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\nans = (a - 1) * (b - 1)\nprint(ans)\n', 'a = int(input())\nb = int(input())\n\nans = (a - 1) * (b - 1)\nprint(ans)\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())\nprint((A - 1) * (B - 1))\n', 'A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))\n', 'a = int(input())\nb = int(input())\n\nans = (a - 1) * (b - 1)\nprint(ans)\n', 'a = int(input())\nb = int(input())\n\nans = (a - 1) * (b - 1)\nprint(ans)\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())\nprint((A - 1) * (B - 1))\n', 'A = int(input())\nB = int(input())\nprint((A - 1) * (B - 1))\n', 'a, b = map(int, input().split())\n\nans = (a - 1) * (b - 1)\nprint(ans)\n', 'a, b = map(int, input().split())\n\nans = (a - 1) * (b - 1)\nprint(ans)\n', 'a, b = map(int, input().split())\n\nans = (a - 1) * (b - 1)\nprint(ans)\n', 'a, b = map(int, input().split())\n\nans = (a - 1) * (b - 1)\nprint(ans)\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', 'Accepted', 'Accepted', 'Accepted', 'Accepted']
['s458869287', 's458869287', 's568437381', 's568437381', 's901305483', 's901305483', 's458869287', 's458869287', 's568437381', 's568437381', 's901305483', 's901305483', 's719431597', 's719431597', 's719431597', 's719431597']
[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]
[70, 70, 60, 60, 59, 59, 70, 70, 60, 60, 59, 59, 69, 69, 69, 69]