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
|
---|---|---|---|---|---|---|---|---|---|---|
p02700 | u244836567 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nif a/d+1>=c/b:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nwhile true:\n c=c-b\n if c<=0:\n print("Yes")\n break\n a=a-d\n if a<=0:\n print("No")\n break', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nif int(c/b)-1>int(a/d):\n print("No")\nelse:\n print("Yes")', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nif a//d<=c//b:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nif a//b<=c//d:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nif a//d>=c//b:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\ne=0\nwhile e==0:\n c=c-b\n if c<=0:\n print("Yes")\n break\n a=a-d\n if a<=0:\n print("No")\n break'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s033684368', 's124204554', 's223317383', 's565497793', 's592857842', 's791004083', 's691236190'] | [8940.0, 9108.0, 9040.0, 9028.0, 9112.0, 9112.0, 9148.0] | [27.0, 23.0, 27.0, 29.0, 31.0, 24.0, 25.0] | [109, 162, 118, 109, 109, 109, 166] |
p02700 | u246907970 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import sys\n\ninp=input().split(" ")\nthp=int(inp[0])\ntat=int(inp[1])\nahp=int(inp[2])\naat=int(inp[3])\n\nfor i in range(100);\n ahp-=tat\n if ahp<=0;\n print("Yes")\n sys.exit()\n thp-=aat\n if thp<=0;\n print("Yes")\n sys.exit()', 'import sys\n\ninp=input().split(" ")\nthp=int(inp[0])\ntat=int(inp[1])\nahp=int(inp[2])\naat=int(inp[3])\n\nfor i in range(100):\n ahp-=tat\n if ahp<=0:\n print("Yes")\n sys.exit()\n thp-=aat\n if thp<=0:\n print("Yes")\n sys.exit()', 'import sys\n\ninp=input().split(" ")\nthp=int(inp[0])\ntat=int(inp[1])\nahp=int(inp[2])\naat=int(inp[3])\n\nfor i in range(100):\n ahp-=tat\n if ahp<=0:\n print("Yes")\n sys.exit()\n thp-=aat\n if thp<=0:\n print("No")\n sys.exit()\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s277805378', 's317828919', 's612133905'] | [9032.0, 9192.0, 9180.0] | [25.0, 23.0, 22.0] | [232, 232, 232] |
p02700 | u248221744 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int, input().split())\nif (C//B) < (A//D):\n print("No")\nelse:\n print("Yes")', 'A, B, C, D = map(int, input().split())\nif ((C+B-1)//B) < ((A+D-1)//D):\n print("No")\nelse:\n print("Yes")', 'A, B, C, D = map(int, input().split())\nif int(C//B) < int(A//D):\n print("No")\nelse:\n print("Yes")', 'A, B, C, D = map(int, input().split())\nif (C//B) < (A//D):\n print("No")\nelif (C//B) = (A//D) and A%D = 0:\n print("No")\nelse:\n print("Yes")', 'A, B, C, D = map(int, input().split())\nif ((C+B-1)//B) > ((A+D-1)//D):\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s697731965', 's854936357', 's862679579', 's874100965', 's184189484'] | [9056.0, 9004.0, 9056.0, 8860.0, 9068.0] | [20.0, 23.0, 20.0, 22.0, 20.0] | [93, 105, 99, 141, 105] |
p02700 | u251015179 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["ts,th,os,oh=map(int,input().split())\nwhile th>=1 and oh>=1:\n oh=oh-ts\n if oh>=1:\n th=th-os\nif th>=1:\n print('Yes')\nelse:\n print('No')", "th,ts,oh,os=map(int,input().split())\nwhile th>=1 and oh>=1:\n oh=oh-ts\n if oh>=1:\n th=th-os\nif th>=1:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s151153987', 's080481770'] | [9160.0, 9164.0] | [22.0, 23.0] | [140, 140] |
p02700 | u252828980 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\n#L = list(map(int,input()split()))\nT = c//b\nA = a//d\nif c%d>0:\n T +=1\nif a%d>0:\n A +=1\nif T >= A:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d = map(int,input().split())\n\nwhile True:\n c -= b\n if c <=0:\n print("Yes")\n break\n a -=d\n if a <=0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s581683093', 's698565043'] | [9176.0, 9136.0] | [23.0, 22.0] | [177, 165] |
p02700 | u252964975 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d=map(int, input().split())\nN=(c+1)//b\nif a-(N-1)*d>0:\n print('Yes')\nelse:\n print('No')\n", 'import math\na,b,c,d=map(int, input().split())\nN=math.ceil(c/b)\nprint(["No","Yes"][a-(N-1)*d>0])'] | ['Wrong Answer', 'Accepted'] | ['s550389438', 's815462802'] | [8812.0, 9172.0] | [22.0, 24.0] | [96, 95] |
p02700 | u253866125 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import sys\n\ninputLine=input()\nA=int(inputLine.split(" ")[0])\nB=int(inputLine.split(" ")[1])\nC=int(inputLine.split(" ")[2])\nD=int(inputLine.split(" ")[3])\n\nwhile True:\n C = C - B\n if C >= 0:\n print("Yes")\n sys.exit()\n\n A = A - D\n if A >= 0:\n print("No")\n sys.exit()\n\n\n', 'import sys\n\ninputLine=input()\nA=int(inputLine.split(" ")[0])\nB=int(inputLine.split(" ")[1])\nC=int(inputLine.split(" ")[2])\nD=int(inputLine.split(" ")[3])\n\nwhile True:\n C = C - B\n if C <= 0:\n print("Yes")\n sys.exit()\n\n A = A - D\n if A <= 0:\n print("No")\n sys.exit()\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s419892343', 's204596391'] | [9128.0, 9048.0] | [2206.0, 21.0] | [307, 307] |
p02700 | u255943004 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,input().split())\nwhile True:\n A -= D\n if A <= 0:\n print("Yes")\n break\n C -= B\n if C <= 0:\n print("No")\n break\n', 'A,B,C,D = map(int,input().split())\nwhile True:\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("No")\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s315256974', 's219621047'] | [9092.0, 9128.0] | [21.0, 21.0] | [144, 144] |
p02700 | u258807490 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = map(int,input().split())\nwhile True:\n c = c - b\n a = a - d\n if c <= 0:\n print('No')\n break\n elif a <= 0:\n print('Yes')\n break\n else:\n pass", "a, b, c, d = map(int,input().split())\nwhile True:\n c = c - b\n a = a - d\n if c <= 0:\n print('No')\n break\n elif a <= 0:\n print('Yes')\n break\n else:\n pass", "a, b, c, d = map(int,input().split())\nwhile True:\n c = c - b\n a = a - d\n if c <= 0:\n print('Yes')\n break\n elif a <= 0:\n print('No')\n break\n else:\n pass"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s535350361', 's591727293', 's028650686'] | [9112.0, 9104.0, 8972.0] | [27.0, 31.0, 26.0] | [201, 201, 201] |
p02700 | u261082314 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import math\na,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = math.ceil(c / b)\na_n = math.ceil(a / d)\n\nif t_n-1 <= a_n:\n print('YES')\nelse:\n print('NO')", "if t_n <= a_n:\n print('YES')\nelse:\n print('NO')", "import math\na,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = math.ceil(c / b)\na_n = math.ceil(a / d)\n\nif t_n <= a_n:\n print('YES')\nelse:\n print('NO')", "a,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = c // b\na_n = a // d\nt_r = c % b\na_r = a % d\nif (t_r > 0 and a_r > 0) or (a_r > 0) or (t_r == 0 and a_r == 0):\n if t_n >= a_n:\n print('YES')\n else:\n print('NO')\nelse:\n if t_n >= a_n:\n print('YES')\n else:\n print('NO')", "a,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = c // b\na_n = a // d\nt_r = c % b\na_r = a % d\nif ((t_r > 0) and (a_r > 0)) or (a_r > 0) or ((t_r == 0) and (a_r == 0)):\n if t_n-1 <= a_n:\n print('YES')\n else:\n print('NO')\nelse:\n if t_n-1 < a_n:\n print('YES')\n else:\n print('NO')", "a,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = c // b\na_n = a // d\nt_r = c % b\na_r = a % d\nif (t_r > 0 and a_r > 0) or (a_r > 0) or (t_r == 0 and a_r == 0):\n if t_n >= a_n:\n print('YES')\n else:\n print('NO')\nelse:\n if t_n > a_n:\n print('YES')\n else:\n print('NO')", "import math\na,b,c,d = map(int,input().split())\n#a c hp\n#b d atk\nt_n = math.ceil(c / b)\na_n = math.ceil(a / d)\n\nif t_n <= a_n:\n print('YES')\nelse:\n print('NO')", "import math\na,b,c,d = map(int,input().split())\nt_n = math.ceil(c / b)\na_n = math.ceil(a / d)\n\nif t_n <= a_n:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s205292716', 's283728263', 's471376125', 's748048883', 's891621268', 's960903913', 's963556548', 's053329889'] | [9160.0, 9028.0, 9048.0, 9192.0, 9004.0, 9180.0, 9168.0, 9148.0] | [23.0, 24.0, 23.0, 21.0, 24.0, 22.0, 21.0, 22.0] | [166, 53, 164, 290, 301, 289, 164, 147] |
p02700 | u262065571 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = map(int, input().split())\nwhile a > 0 or c > 0:\n c -= b\n if c < 0:\n break\n a -= d\n \nif a < c:\n print('No')\nelse:\n print('Yes')", "a, b, c, d = map(int, input().split())\nwhile a > 0 and c > 0:\n c -= b\n if c <= 0:\n break\n a -= d\n \nif a < c:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s673303277', 's478407500'] | [9160.0, 9032.0] | [20.0, 23.0] | [148, 150] |
p02700 | u264988409 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import math\n\nA, B, C, D = input().split()\n\nA = int(A)\nB = int(B)\nC = int(C)\nD = int(D)\n\nE = math.ceil(C/A)\nF = math.ceil(D/B)\n\nif E <= F:\n print('Yes')\nelse:\n print('No')", 'import math\n\nA, B, C, D = input().split()\n\nA = int(A)\nB = int(B)\nC = int(C)\nD = int(D)\n\nE = math.ceil(C/A)\nF = math.ceil(D/B)\n\nif E <= F:\n print(\'Yes\',"")\nelse:\n print(\'No\',"")', "import math\n\nA, B, C, D = input().split()\n\nA = int(A) \nB = int(B) \nC = int(C) \nD = int(D) \n\nE = math.ceil(C/B) \nF = math.ceil(A/D) \n\nif E <= F:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s040740662', 's046377986', 's189902391'] | [9184.0, 9160.0, 9156.0] | [23.0, 22.0, 24.0] | [176, 182, 308] |
p02700 | u266014018 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int,input(),split())\nturn = 0\nwhile a > 0 and c> 0:\n if turn%2 ==0:\n c -= b\n else:\n a -= d\n turn += 1\nif turn%2 == 1:\n print('Yes')\nelse:\n print('No') ", "a,b,c,d = map(int,input().split())\nturn = 0\nwhile a > 0 and c> 0:\n if turn%2 ==0:\n c -= b\n else:\n a -= d\n turn += 1\nif turn%2 == 1:\n print('Yes')\nelse:\n print('No') "] | ['Runtime Error', 'Accepted'] | ['s354699340', 's263110805'] | [9120.0, 9180.0] | [23.0, 24.0] | [196, 196] |
p02700 | u271076350 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = list(map(int,input().split()))\nna = c-b\nnb = a-d\nwhile na > 0 and nb > 0:\n na -= c\n nb -= d\nif na <= 0 and nb >0:\n print("Yes")\nelse:\n print("NO")\n', 'a,b,c,d = list(map(int,input().split()))\nna = c-b\nnb = a-d\nwhile na > 0 and nb > 0:\n na -= c\n nb -= d\nif na <=0:\n print("Yes")\nelse:\n print("NO")\n', 'a,b,c,d = list(map(int,input().split()))\ny = (c+b-1)//b\nx = (a+d-1)//d\nif x >= y:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s079697404', 's853749542', 's488914656'] | [9116.0, 9104.0, 9180.0] | [23.0, 21.0, 21.0] | [169, 158, 121] |
p02700 | u271123940 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['t, k, c, d = (int(x) for x in input().split())\nwhile (t >= 0 or c >= 0):\n c = c - k\n if c <= 0:\n print("Yes")\n break\n t = t - d\n if a <= 0:\n print("No")\n break', 't, k, c, d = [int(x) for x in input().split()]\nwhile (t >= 0 or c >= 0):\n c = c - k\n if c <= 0:\n print("Yes")\n break\n t = t - d\n if a <= 0:\n print("No")\n break', 't, k, c, d = (int(x) for x in input().split())\nwhile (t >= 0 or c >= 0):\n c = c - k\n if c <= 0:\n print("Yes")\n break\n t = t - d\n if t <= 0:\n print("No")\n break'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s435488241', 's438639804', 's430756654'] | [9128.0, 8928.0, 9032.0] | [23.0, 21.0, 22.0] | [175, 175, 175] |
p02700 | u276250981 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\nwhile(True):\n c-=b\n if(c<=0):\n print("Yes")\n exit()\n a-=d:\n if(a<=0):\n print("No")\n exit() ', 'a,b,c,d = map(int,input().split())\naa = a//d\ncc = c//b\nif a%d==0:\n if aa>=cc:print("Yes")\n elif cc>aa:print("No") \nelse:\n if aa+1>=cc:print("Yes")\n else: print("No")', 'a,b,c,d = map(int,input().split())\nwhile(True):\n c-=b\n if(c<=0):\n print("Yes")\n exit()\n a-=d\n if(a<=0):\n print("No")\n exit() '] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s241800951', 's898524453', 's387301086'] | [8960.0, 9180.0, 9168.0] | [22.0, 20.0, 20.0] | [169, 177, 168] |
p02700 | u276691127 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['in1=input()\nin2=in1.split()\na=int(in2[0])\nb=int(in2[1])\nc=int(in2[2])\nd=int(in2[3])\ntaka=a//d\nao=c//b\nif taka<ao:\n print("No")\nelse:\n print("Yes")', 'in1=input()\nin2=in1.split()\na=int(in2[0])\nb=int(in2[1])\nc=int(in2[2])\nd=int(in2[3])\ntaka=a//d\nao=c//b\nif taka<ao:\n print("no")\nelse:\n print("yes")', 'import math\nin1=input()\nin2=in1.split()\na=int(in2[0])\nb=int(in2[1])\nc=int(in2[2])\nd=int(in2[3])\ntaka=math.ceil(a/d)\nao=math.ceil(c/b)\nif taka<ao:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s528158437', 's629775047', 's487806454'] | [9180.0, 9124.0, 9188.0] | [20.0, 23.0, 21.0] | [148, 148, 180] |
p02700 | u277104886 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = list(map(int, input().split()))\nif math.ceil(c/b) > math.ceil(a/d):\n print('No')\nelse:\n print('Yes')\n\n", "import math\na, b, c, d = list(map(int, input().split()))\nif math.ceil(c/b) > math.ceil(a/d):\n print('No')\nelse:\n print('Yes')\n\n"] | ['Runtime Error', 'Accepted'] | ['s491325494', 's457901738'] | [9060.0, 8980.0] | [21.0, 24.0] | [121, 133] |
p02700 | u278260569 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A , B , C ,D = map(int,input().split())\nif C % B == 0:\n t = C // B\nelse:\n t = C // B + 1\nif A % D == 0:\n a = A // D\nelse:\n a = A // D + 1\nif t >= a:\n print("Yes")\nelse:\n \n print("No")\n ', 'A , B , C ,D = map(int,input().split())\nif C % B == 0:\n t = C // B\nelse:\n t = C // B + 1\nif A % D == 0:\n a = A // D\nelse:\n a = A // D + 1\nif t <= a:\n print("Yes")\nelse:\n \n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s552614382', 's186686471'] | [9168.0, 9176.0] | [19.0, 23.0] | [209, 204] |
p02700 | u278379520 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d=map(int,input().split())\nwhile True:\n c-b\n if c<=0:\n print('Yes')\n break\n a-d\n if a<=0:\n print('No')\n break\n", "a,b,c,d=map(int,input().split())\nif a//d>=c//b:\n print('Yes')\nelse:\n print('No')", "a,b,c,d=map(int,input().split())\nwhile True:\n c-=b\n if c<=0:\n\t\tprint('Yes')\n\t\tbreak\n a-=d\n if a<=0:\n\t\tprint('No')\n\t\tbreak", "a,b,c,d=map(int,input().split())\nx=(a+d-1)//d\ny=(c+b-1)//b\nif x>=y:\n print('Yes')\nelse:\n print('No')\n"] | ['Time Limit Exceeded', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s321518555', 's448839991', 's697764399', 's551454904'] | [8980.0, 9164.0, 9024.0, 9064.0] | [2206.0, 22.0, 21.0, 22.0] | [156, 86, 133, 107] |
p02700 | u278855471 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\nflg = True\nfor i in range(2 * max(A, C) + 1):\n if i % 2 == 0:\n C -= B\n print('C: ', C)\n if C <= 0:\n flg = False\n print('Yes')\n else:\n A -= D\n if A <= 0:\n flg = False\n print('No')\n if not flg:\n break\n", "A, B, C, D = map(int, input().split())\nflg = True\nfor i in range(2 * max(A, C) + 1):\n if i % 2 == 0:\n C -= B\n if C <= 0:\n flg = False\n print('Yes')\n else:\n A -= D\n if A <= 0:\n flg = False\n print('No')\n if not flg:\n break\n"] | ['Wrong Answer', 'Accepted'] | ['s401979285', 's417163972'] | [9152.0, 9124.0] | [23.0, 22.0] | [333, 309] |
p02700 | u288779141 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['num = list(map(int, input().split())) \n\nN=num[2]/num[1]\nif((N-1)*num[3]<num[0]):\n print("Yes")\nelse:\n print("No")\n', 'num = list(map(int, input().split())) \n\nN=num[2]/num[1]\n\nif(N==int(N)):\n N=int(N)-1\nelse:\n N=int(N)\n\nif(N*num[3]<num[0]):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s360838328', 's890814390'] | [9084.0, 9072.0] | [23.0, 22.0] | [162, 209] |
p02700 | u289036437 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int, input().split())\nprint(["No","Yes"][a//d + (a%d > 0) >= b//c + (b%c > 0)])', 'a,b,c,d = map(int, input().split())\nprint(["No","Yes"][a//d + (a%d > 0) >= c//b + (c%b > 0)])'] | ['Wrong Answer', 'Accepted'] | ['s216313984', 's438897039'] | [9164.0, 9164.0] | [23.0, 20.0] | [93, 93] |
p02700 | u290259714 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['if __name__ == "__main__":\n a,b,c,d=map(int,input().strip().split())\n jishu1=0\n jishu2=0\n while True:\n a=a-d\n jishu1+=1\n if a<=0:\n break\n while True:\n c=c-b\n jishu2+=1\n if a<=0:\n break\n if jishu1<jishu2:\n print("No")\n else:\n print("Yes")\n', 'if __name__ == "__main__":\n a,b,c,d=map(int,input().strip().split())\n jishu1=0\n jishu2=0\n while True:\n a=a-d\n jishu1+=1\n if a<=0:\n break\n while True:\n c=c-b\n jishu2+=1\n if c<=0:\n break\n if jishu1<jishu2:\n print("No")\n else:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s521932142', 's719282561'] | [9180.0, 9180.0] | [19.0, 21.0] | [337, 337] |
p02700 | u290731659 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int, input().split())\nprint("Yes") if D//A + 1 <= C//B + 1 else print("No")', 'A, B, C, D = map(int, input().split())\nturnsT = A//D + 1\nturnsA = C//B + 1\nprint("Yes") if turnsT >= turnsA else print("No")', 'A, B, C, D = map(int, input().split())\nwhile(True):\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s158253279', 's606528151', 's441866104'] | [9160.0, 9088.0, 9164.0] | [19.0, 23.0, 25.0] | [92, 124, 148] |
p02700 | u291028869 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import math\na,b,c,d = map(int,input().split())\n\nt = math.ceil(c/b)\no = math.ceil(a/d)\n\nprint(t,o)\n\nif t <= o:\n print('Yes')\nelse:\n print('No')", "import math\na,b,c,d = map(int,input().split())\n\nt = math.ceil(c/b)\no = math.ceil(a/d)\n\nif t <= o:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s358581580', 's476913453'] | [9172.0, 9164.0] | [22.0, 22.0] | [148, 136] |
p02700 | u293760596 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\nwhile True:\n\tc -= b\n if c <= 0:\n \tprint("Yes")\n else:\n \ta -= d\n \tif a <= 0:\n print("No")', 'a,b,c,d = map(int,input().split())\nwhile True:\n c -= b\n if c <= 0:\n print("Yes")\n elif c > 0:\n a -= d\n if a <= 0:\n print("No")\n else:\n break\n ', 'a,b,c,d = map(int,input().split())\nwhile True:\n c -= b\n if c <= 0:\n print("Yes")\n break\n elif c > 0:\n a -= d\n if a <= 0:\n print("No")\n break\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s293423809', 's754842670', 's953449167'] | [8880.0, 32008.0, 9144.0] | [21.0, 2242.0, 25.0] | [150, 172, 166] |
p02700 | u293917550 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = input().split()\na,b,c,d = int(a),int(b),int(c),int(d)\nwhile True:\n c -= b\n if c<=0:\n break\n a -= d\n if a<=0:\n break\nif a>=0:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d = input().split()\na,b,c,d = int(a),int(b),int(c),int(d)\nwhile a>0 or c>0:\n c = c-b\n if c<=0:\n break\n a = a-d\n if a<=0:\n break\nif a>=0:\n print("Yes")\nelse:\n print("No")\n \n', 'a,b,c,d = input().split()\na,b,c,d = int(a),int(b),int(c),int(d)\nwhile a>0 and c>0:\n c = c-b\n a = a-d\nif a>=0:\n print("Yes")\nelse:\n print("No")\n ', 'a,b,c,d = input().split()\na,b,c,d = int(a),int(b),int(c),int(d)\nwhile a:\n c = c-b\n if c<=0:\n break\n a = a-d\n if a<=0:\n break\nif a>=0 and c<=0:\n print("Yes")\nif a<=0 and c>=0:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s040896572', 's149672721', 's624149531', 's478297028'] | [9152.0, 9188.0, 9108.0, 9100.0] | [24.0, 23.0, 20.0, 21.0] | [179, 191, 149, 199] |
p02700 | u294542073 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d=map(int,input().split())\nターン制だから\nwhile True:\n \n c-=b\n if c<=0:\n print("Yes")\n exit()\n \n a-=d\n if a<=0:\n print("No")\n exit()', 'a,b,c,d=map(int,input().split())\n\nwhile True:\n \n c-=b\n if c<=0:\n print("Yes")\n exit()\n \n a-=d\n if a<=0:\n print("No")\n exit()'] | ['Runtime Error', 'Accepted'] | ['s727633276', 's489659605'] | [9128.0, 9180.0] | [20.0, 21.0] | [285, 287] |
p02700 | u297073817 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,input().split())\n\nwhile check:\n\tC = C - B\n if C<=0:\n print("Yes")\n A = A - D\n if A<=0:\n print("No")\n ', 'from sys import stdin\nA, B, C,D = [int(x) for x in stdin.readline().rstrip().split()]\nwhile True:\n C = C-B\n if C<=0:\n print("Yes")\n break\n A = A-D\n if A<=0:\n print("No")\n break'] | ['Runtime Error', 'Accepted'] | ['s272702016', 's076174825'] | [9012.0, 9200.0] | [23.0, 23.0] | [141, 192] |
p02700 | u297167963 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int, input().split())\n\nx = C / B\ny = C % B\np = A / D\nq = A % D\n\nif (x > p):\n print("Yes")\nelif (x < p):\n print("No")\nelse\n if (y == 0 and q <> 0):\n print("Yes")\n elif (y <> 0 and q == 0):\n print("No")\n else :\n print("Yes")\n', 'A, B, C, D = map(int, input().split())\n\nflg = true\nt = false\nwhile(flg):\n t = true\n D -= B\n if (D <= 0):\n break\n t = false\n A -= C\n if (A <= 0) :\n break\n\nif (t):\n print("Yes")\nelse:\n print("No")\n ', 'A, B, C, D = map(int, input().split())\n\nx = C / B\ny = C % B\np = A / D\nq = A % D\n\nif (y <> 0):\n x += 1\nif (q <> 0):\n p += 1\n\nif (x <= p):\n print("Yes")\nelif (x > p):\n print("No")\n', 'A, B, C, D = map(int, input().split())\n\nx = C / B\ny = C % B\np = A / D\nq = A % D\n\nif (x < p):\n print("Yes")\nelif (x > p):\n print("No")\nelse\n if (y == 0 and q <> 0):\n print("Yes")\n elif (y <> 0 and q == 0):\n print("No")\n else :\n print("Yes")\n', 'A, B, C, D = map(int, input().split())\n\nx = A / D\ny = A % D\np = C / B\nq = C % B\n\nif (p < x):\n print("Yes")\nelif (p == x):\n if (y == 0 and q <> 0):\n print("No")\n else:\n print("Yes")\nelse:\n print("No")\n', 'A, B, C, D = map(int, input().split())\n\nx = C / B\ny = C % B\np = A / D\nq = A % D\n\nif (x < p):\n print("Yes")\nelif (x > p):\n print("No")\nelse\n if (y == 0):\n print("Yes")\n elif (y <> 0 and q == 0):\n print("No")\n else :\n print("Yes")\n', 'A, B, C, D = map(int, input().split())\n \nflg = true\nt = false\nwhile(flg):\n t = true\n C -= B\n if (C <= 0):\n break\n t = false\n D -= B\n if (D <= 0) :\n break\n\nif (t):\n print("Yes")\nelse:\n print("No")\n ', 'A, B, C, D = map(int, input().split())\n \nflg = true\nt = false\nwhile(flg):\n t = true\n C -= B\n if (C <= 0):\n break\n t = false\n A -= D\n if (A <= 0) :\n break\n\nif (t):\n print("Yes")\nelse:\n print("No")\n ', 'A, B, C, D = map(int, input().split())\n\nx = C / B\ny = C % B\np = A / D\nq = A % D\n\nif (x > p):\n print("Yes")\nelif (x < p):\n print("No")\nelse\n if (y == 0 and q <> 0):\n print("Yes")\n elif (y <> 0 and q == 0):\n print("No")\n else :\n print("Yes")\n', 'A, B, C, D = map(int, input().split())\n \nflg = True\nt = False\nwhile(flg):\n C -= B\n if (C <= 0):\n t = True\n break\n A -= D\n if (A <= 0) :\n t = False\n break\n\nif (t):\n print("Yes")\nelse:\n print("No")\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s205260440', 's306472053', 's404454161', 's419313559', 's433602893', 's509889885', 's570192888', 's670080311', 's741678796', 's340958522'] | [8972.0, 9180.0, 8968.0, 9040.0, 9032.0, 8900.0, 9112.0, 9176.0, 8976.0, 9128.0] | [21.0, 22.0, 20.0, 20.0, 21.0, 20.0, 23.0, 25.0, 24.0, 23.0] | [254, 211, 182, 254, 210, 243, 212, 212, 254, 216] |
p02700 | u297399512 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\n\nT_HP = A\nT_AT = B\nA_HP = C\nA_AT = D\nT_count = 0\nA_count = 0\n\nwhile T_HP > 0:\n T_HP -= A_AT\n T_count += 1\nwhile A_HP > 0:\n A_HP -= T_AT\n A_count += 1\nprint(T_count)\nprint(A_count)\n\nif T_count > A_count:\n print('Yes')\nif T_count == A_count:\n print('Yes')\nelse:\n print('No')", "A, B, C, D = map(int, input().split())\n\nT_HP = A\nT_AT = B\nA_HP = C\nA_AT = D\nT_count = 0\nA_count = 0\n\nwhile T_HP >= 0:\n T_HP -= T_AT\n T_count += 1\nwhile A_HP >= 0:\n A_HP -= A_AT\n A_count += 1\n\nif T_count >= A_count:\n print('Yes')\nelse:\n print('No')", "A, B, C, D = map(int, input().split())\n\nT_HP = A\nT_AT = B\nA_HP = C\nA_AT = D\nT_count = 0\nA_count = 0\n\nwhile T_HP > 0:\n T_HP -= A_AT\n T_count += 1\nwhile A_HP > 0:\n A_HP -= T_AT\n A_count += 1\n\nif T_count > A_count:\n print('Yes')\nelif T_count == A_count:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s516014299', 's690954760', 's137421928'] | [9028.0, 9188.0, 9044.0] | [30.0, 25.0, 29.0] | [332, 265, 304] |
p02700 | u297447724 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int, input().split())\n\nfor i in range(100): \n c -= b \n\n if c <= 0>: \n print('Yes') \n break \n\n a -= d \n \n if a < 1: \n print('No') \n break \n", "a,b,c,d = map(int, input().split())\n\nfor i in range(100): \n c -= b \n\n if c <= 0: \n print('Yes') \n break \n\n a -= d \n \n if a <= 0: \n print('No') \n break \n"] | ['Runtime Error', 'Accepted'] | ['s443852303', 's085106561'] | [9008.0, 9160.0] | [24.0, 28.0] | [820, 904] |
p02700 | u301818867 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=map(int,input().split())\n\n\nwhile(1):\n C=C-B\n print("C:",C)\n A=A-D\n print("A:",A)\n\n if C <= 0:\n print("Yes")\n break\n\n if A <= 0:\n print("No")\n break\n ', 'A,B,C,D=map(int,input().split())\nwhile(1):\n C=C-B\n print("C:",C)\n A=A-D\n print("A:",A)\n if C <= 0:\n print("Yes")\n break\n if A <= 0:\n print("No")\n break', 'A,B,C,D=map(int,input().split())\n\n\nwhile(1):\n C=C-B\n print("C:",C)\n if C <= 0:\n print("Yes")\n break\n A=A-D\n print("A:",A)\n if A <= 0:\n print("No")\n break', 'A,B,C,D=map(int,input().split())\n\nwhile(1):\n A=A-D\n print(A)\n C=C-B\n print(C)\n if A <= 0:\n print("No")\n break\n else:\n print("Yes")\n break', 'A,B,C,D=map(int,input().split())\n\n\nwhile(1):\n C=C-B\n if C <= 0:\n print("Yes")\n break\n A=A-D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s208727218', 's285907119', 's642675214', 's861740484', 's082594184'] | [9132.0, 9176.0, 9156.0, 9160.0, 9152.0] | [22.0, 23.0, 21.0, 21.0, 21.0] | [276, 197, 269, 183, 233] |
p02700 | u302084097 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=input().split()\nA=int(A)\nB=int(B)\nC=int(C)\nD=int(D)\n\nn_1=A//D\nn_2=C//B\n\nif n_2>=n_1:\n print("Yes")\nelse:\n print("No")', 'A,B,C,D=input().split()\nA=int(A)\nB=int(B)\nC=int(C)\nD=int(D)\n\nn_1=A//D\nn_2=A/D\nif n_1<n_2:\n takahashi=n_1+1\nelse:\n takahashi=n_1\n\nn_3=C//B\nn_4=C/B\nif n_3<n_4:\n aoki=n_3+1\nelse:\n aoki=n_3\n\nif takahashi>=aoki:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s361344087', 's763332416'] | [9184.0, 9120.0] | [18.0, 23.0] | [131, 256] |
p02700 | u304099294 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\nwhile True:\n c =- b\n if c <= 0:\n print("Yes")\n break\n a =- d\n if a <= 0:\n print("No")\n break\n', 'a, b, c, d = map(int, input().split())\nwhile True:\n c = c - b\n if c <= 0:\n print("Yes")\n break\n a = a - d\n if a <= 0:\n print("No")\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s060284206', 's799453288'] | [9180.0, 9156.0] | [24.0, 22.0] | [172, 178] |
p02700 | u308289897 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import sys\nimport collections\nimport math\n\nstdin = sys.stdin\n\nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\n\na,b,c,d = nm()\nao=math.floor(a/d)\nsu=math.floor(c/b)\nif(ao<su):\n print("No")\nelse:\n print("Yes")\n', 'import sys\nimport collections\nimport math\n\nstdin = sys.stdin\n\nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\n\na,b,c,d = nm()\nao=math.ceil(a/d)\nsu=math.ceil(c/b)\nif(ao<su):\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s656080316', 's469294176'] | [9460.0, 9400.0] | [24.0, 23.0] | [352, 350] |
p02700 | u308918401 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d=map(int,input().split())\nflag="F"\nwhile flag="F":\n c=c-b\n if c<=0:\n print("Yes")\n break\n a=a-d\n if a<=0:\n print("No")\n break', 'a,b,c,d=map(int,input().split())\nflag="F"\nwhile flag=="F":\n c=c-b\n if c<=0:\n flag="Y"\n else:\n a=a-d\n if a<=0:\n flag="N"\nif flag=="Y":\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s504668984', 's407389482'] | [9016.0, 9176.0] | [20.0, 23.0] | [148, 185] |
p02700 | u309120194 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\n \n\nX = (A+D-1) // D\nY = (C+B-1) // B\nif X <= Y: print('Yes')\nelse: print('No')\n", "A, B, C, D = map(int, input().split())\n \n\nX = (C+B-1) // B\nY = (A+D-1) // A\nif X >= Y: print('Yes')\nelse: print('No')", "A, B, C, D = map(int, input().split())\n \n\nX = (C+B-1) // B\nY = (A+D-1) // D\nif X >= Y: print('Yes')\nelse: print('No')\n ", "A, B, C, D = map(int, input().split())\n\n\nif (C+B-1) // B >= (A+D-1) // A: print('Yes')\nelse: print('No')", "A, B, C, D = map(int, input().split())\n \n\nX = (A+D-1) // D\nY = (C+B-1) // B\nif X >= Y: print('Yes')\nelse: print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s118731930', 's156041400', 's332358538', 's737625912', 's950258470'] | [9156.0, 9048.0, 9160.0, 9136.0, 9148.0] | [29.0, 29.0, 28.0, 28.0, 29.0] | [194, 193, 195, 142, 193] |
p02700 | u312748806 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['n = list(map(int, input().split()))\nwhile n[0]>0 or n[2]>0:\n n[2] = n[2] - n[1]\n if n[2] <= 0:\n break\n n[0] = n[0] - n[3]\n\nif n[0]>=n[2]:\n print("Yes")\nelse:\n print("No")', 'n = list(map(int, input().split()))\nwhile n[0]>0 and n[2]>0:\n n[2] = n[2] - n[1]\n if n[2] <= 0:\n break\n n[0] = n[0] - n[3]\n\nif n[0]>n[2]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s023872015', 's014741184'] | [9184.0, 9188.0] | [23.0, 21.0] | [192, 192] |
p02700 | u316649390 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,imput().split())\nx = C // B\ny = A // D\nif x >= y:\n print("Yes")\nelse:\n print("No")', 'A,B,C,D = map(int,imput().split())\nx = C // B\ny = A // D\nif x >= y:\n print("Yes")\nelif y > x:\n print("No")', 'A,B,C,D = map(int,input().split())\nx = C // B\ny = A // D\nif x >= y:\n print("Yes")\nelse:\n print("No")', 'A,B,C,D = map(int,input().split())\nx = C // B\ny = A // D\nif x > y:\n print("No")\nelse:\n print("Yes")', 'A,B,C,D = map(int,input().split())\nx = C // B\nif C % B == 0:\n x = x-1\ny = A // D\nif A % D == 0:\n y = y-1\nif x > y:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s044877375', 's228011989', 's231239124', 's890712140', 's169972731'] | [9100.0, 9040.0, 9044.0, 9172.0, 9032.0] | [23.0, 18.0, 22.0, 24.0, 22.0] | [102, 108, 102, 101, 155] |
p02700 | u318024671 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int, input().split())\nturn = "t"\nwhile(A > 0 and C > 0):\n if turn == "t":\n C -= B\n turn = "a"\n else:\n A -= D\n turn = "t"\nprint(A, C)\nif A <= 0:\n print("No")\nelif C <= 0:\n print("Yes")', 'A, B, C, D = map(int, input().split())\nturn = "t"\nwhile(A > 0 and C > 0):\n if turn == "t":\n C -= B\n turn = "a"\n else:\n A -= D\n turn = "t"\nif A <= 0:\n print("No")\nelif C <= 0:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s151004020', 's622859558'] | [9188.0, 9180.0] | [22.0, 20.0] | [240, 228] |
p02700 | u318165580 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=map(int,input().split())\nwin=A/D\nlose=C/B\nif win=>lose:\n print("Yes")\nelse:\n if lose<=1:\n print("Yes")\n else:\n if lose-win<1 and A%D!=0:\n print("Yes")\n else:\n print("No")', 'A,B,C,D=map(int,input().split())\nwin=A//D\nlose=C//B\nif lose<=win:\n print("Yes")\nelse:\n print("No")', '\nimport math\nA,B,C,D=map(int,input().split())\nwin=math.ceil(A/D)\nlose=math.ceil(C/B)\nif lose<=win:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s192535870', 's583791093', 's392084462'] | [8928.0, 9064.0, 8920.0] | [22.0, 20.0, 20.0] | [200, 100, 133] |
p02700 | u318182140 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\nif (a + c) < (b + d):\n print("No")\nelse:\n print("Yes")', 'a, b, c, d = map(int, input().split())\nif a - b == 0 or c - d == 0:\n print("no")\nelse:\n print("yes")', 'A, B, C, D = map(int, input().split())\nwhile True:\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s064496235', 's101400557', 's462688241'] | [9092.0, 9160.0, 9152.0] | [19.0, 25.0, 24.0] | [99, 106, 171] |
p02700 | u318909153 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['N=[int(x) for x in input().split()]\nif not N[2]%N[1]==0:\n c=N[2]//N[1]+1\nelse:\n c=N[2]//N[1]\n\nif not N[0]%N[3]==0:\n c=N[0]//N[3]+1\n\n d=N[0]//N[3]+1\nelse:\n d=N[0]//N[3]\nprint(c,d)\nif d>=c:\n print("Yes")\nelse:\n print("No")', 'N=[int(x) for x in input().split()]\nif not N[2]%N[1]==0:\n c=N[2]//N[1]+1\nelse:\n c=N[2]//N[1]\nif not N[0]%N[3]==0:\n c=N[0]//N[3]+1\n\n d=N[0]//N[3]+1\nelse:\n d=N[0]//N[3]\nif d=>c:\n print("Yes")\nelse:\n print("No")', 'N=[int(x) for x in input().split()]\nif not N[2]%N[1]==0:\n d=N[2]//N[1]+1\nelse:\n d=N[2]//N[1]\n\nif not N[0]%N[3]==0:\n c=N[0]//N[3]+1\n\nelse:\n c=N[0]//N[3]\nif d>=c:\n print("Yes")\nelse:\n print("No")', 'N=[int(x) for x in input().split()]\nif not N[2]%N[1]==0:\n c=N[2]//N[1]+1\nelse:\n c=N[2]//N[1]\nif not N[0]%N[3]==0:\n d=N[0]//N[3]+1\nelse:\n d=N[0]//N[3]\nif d>=c:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s073298133', 's241922096', 's981688556', 's262645849'] | [9204.0, 8988.0, 9192.0, 9056.0] | [24.0, 20.0, 22.0, 22.0] | [238, 226, 209, 207] |
p02700 | u322603957 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\nta = 0\naok = 0\nwhile True:\n ta = c-b\n c = ta\n print(c)\n if c <=0:\n print("NO")\n break\n aok = a - d\n a = aok\n if a <=0:\n print("Yes")\n break\n print(a)\n \n\n \n\n', 'a,b,c,d = map(int,input().split())\nta = 0\naok = 0\nwhile True:\n ta = c-b\n c = ta\n print(c)\n if c <=0:\n print("Yes")\n break\n aok = a - d\n a = aok\n if a <=0:\n print("No")\n break\n print(a)\n \n\n \n\n', 'a,b,c,d = map(int,input().split())\nta = 0\naok = 0\nwhile True:\n ta = c-b\n c = ta\n\n if c <=0:\n print("Yes")\n break\n aok = a - d\n a = aok\n if a <=0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s059997275', 's935277122', 's462529012'] | [9160.0, 9160.0, 8940.0] | [19.0, 23.0, 21.0] | [252, 252, 211] |
p02700 | u322763702 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['def main():\n A, B, C, D = map(int, input().split())\n while True:\n C -= B\n if C <= 0:\n print("Yes")\n quit()\n A -= D\n if A <= 0:\n print("Np")\n quit()\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n A, B, C, D = map(int, input().split())\n while True:\n C -= B\n if C <= 0:\n print("Yes")\n quit()\n A -= D\n if A <= 0:\n print("No")\n quit()\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s034172098', 's454599871'] | [9024.0, 9172.0] | [20.0, 22.0] | [266, 266] |
p02700 | u323776907 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\nwhile True:\n c = c - b\n if c < 0:\n print("Yes")\n break\n a = a - d\n if a < 0:\n print("No")\n break', 'a, b, c, d = map(int, input().split())\nwhile True:\n c = c - b\n if c <= 0:\n print("Yes")\n break\n a = a - d\n if a <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s402525848', 's217447672'] | [9052.0, 9072.0] | [20.0, 20.0] | [151, 153] |
p02700 | u325270534 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = map(int, input().split())\nprint('Yes' if a-b > c-d else 'No')", "a, b, c, d = map(int, input().split())\nwhile True:\n a -= d\n c -= b\n if a <= 0 or c <= 0:\n break\nprint('Yes' if c <= 0 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s774968971', 's255141875'] | [9156.0, 8992.0] | [20.0, 20.0] | [74, 144] |
p02700 | u327532412 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['print(len({input() for _ in range(int(input()))}))\n', 'A, B, C, D = map(int, input().split())\nfor _ in range(1000):\n C = C - B\n A = A - D\n if C <= 0:\n print("Yes")\n exit()\n if A <= 0:\n print("No")\n exit()'] | ['Runtime Error', 'Accepted'] | ['s112449638', 's917999725'] | [9124.0, 9168.0] | [22.0, 20.0] | [51, 189] |
p02700 | u327896646 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["ht,st,ha,sa = list(map(int, input().split(' ')))\nbool_player = True #Takashi\nwhile (ht <= 0 || st <= 0):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')", "ht, st, ha, sa = list(map(int, input().split(' ')))\nbool_player = True # Takashi\nwhile (ht > 0 or st > 0):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')\n", "ht, st, ha, sa = list(map(int, input().split(' ')))\nbool_player = True # Takashi\nwhile (not(ht <= 0) or not(st <= 0)):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')\n", "ht, st, ha, sa = list(map(int, input().split(' ')))\nbool_player = True # Takashi\nwhile (not(ht <= 0) or not(st <= 0)):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')\n", "ht, st, ha, sa = list(map(int, input().split(' ')))\nbool_player = True # Takashi\nwhile (ht == 0 or st == 0):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')\n", "ht, st, ha, sa = list(map(int, input().split(' ')))\nbool_player = True # Takashi\nwhile (ht > 0 and ha > 0):\n if bool_player:\n ha -= st\n bool_player = False\n else:\n ht -= sa\n bool_player = True\n\nif ht <= 0:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Time Limit Exceeded', 'Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Accepted'] | ['s242864871', 's487328067', 's653276985', 's736286125', 's948892859', 's292416634'] | [9004.0, 8800.0, 8884.0, 9028.0, 9152.0, 9152.0] | [21.0, 2206.0, 2205.0, 2205.0, 22.0, 20.0] | [251, 279, 291, 291, 281, 280] |
p02700 | u328858746 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,input().split())\nstate = "Yes"\nwhile 1:\n C -= B\n if C <= 0:\n break\n A -= D\n if D <= 0:\n state = "No"\n break\nprint(state)', 'A,B,C,D = map(int,input().split())\nstate = "Yes"\nwhile 1:\n C -= B\n if C <= 0:\n break\n A -= D\n if A <= 0:\n state = "No"\n break\nprint(state)'] | ['Wrong Answer', 'Accepted'] | ['s904128752', 's992808550'] | [9172.0, 9172.0] | [22.0, 23.0] | [151, 151] |
p02700 | u331105860 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import math\nA, B, C, D = map(int, input().split())\n\nt = math.ceil(C // B)\na = math.ceil(A // D)\n\nprint('Yes' if t <= a else 'No')\n", "import math\nA, B, C, D = map(int, input().split())\n\nt = math.ceil(C / B)\na = math.ceil(A / D)\nprint(t, a)\nprint('Yes' if t <= a else 'No')\n", "import math\nA, B, C, D = map(int, input().split())\n\nt = math.ceil(C / B)\na = math.ceil(A / D)\n\nprint('Yes' if t <= a else 'No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s074178661', 's189495939', 's495428968'] | [9112.0, 8956.0, 9000.0] | [29.0, 30.0, 25.0] | [130, 139, 128] |
p02700 | u331226975 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\nif A//D > C//B:\n print('No')\nelse:\n print('Yes')", "import math\nA, B, C, D = map(int, input().split())\nif math.ceil(A/D) >= math.ceil(C/B):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s102871149', 's258090392'] | [9164.0, 9164.0] | [21.0, 22.0] | [89, 122] |
p02700 | u332793228 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=map(float, input().split())\nx=A/D\ny=C/B\nprint("Yes"if x<=y else "No")', 'A,B,C,D=map(float, input().split())\nX,x=divmod(C,B)\nY,y=divmod(A,D)\nprint(X,x,Y,y)\nif X<=Y:\n print("No")\nelse:\n print("Yes")', 'th,ta,ah,aa=list(map(int, input().split()))\nwhile True:\n ah-=ta\n if ah<=0:\n print("Yes")\n break\n th-=aa\n if th<=0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s022567592', 's358670546', 's600134519'] | [9096.0, 9032.0, 9176.0] | [25.0, 23.0, 21.0] | [77, 130, 174] |
p02700 | u333546629 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=map(int,input().split())\n\nwhile True:\n C-=B\n if C<=0:\n input("Yes")\n break\n A-=D\n elif A<=0:\n input("No")\n break', 'a,b,c,d=map(int,input().split)\n\nwhile True:\n a-=d\n if a<=0:\n print("No")\n break\n c-=b\n if c=<0:\n print("Yes")\n break', 'A,B,C,D=map(int,input().split())\n\nwhile True:\n C-=B\n if C<=0:\n print("Yes")\n break\n A-=D\n if A<=0:\n print("No")\n break'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s649611940', 's991248169', 's854208918'] | [8916.0, 8920.0, 9168.0] | [23.0, 24.0, 23.0] | [136, 132, 134] |
p02700 | u333945892 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['t_at, t_hp, a_at, a_hp = map(int, input().split())\n\nwhile True:\n a_hp -= t_at\n if a_hp <= 0:\n print("Yes")\n \texit()\n \n t_hp -= a_at\n if t_hp <= 0:\n print("No")\n exit()\n', 't_at, t_hp, a_at, a_hp = map(int, input().split())\n\nwhile True:\n a_hp -= t_at\n if a_hp <= 0:\n print("Yes")\n exit()\n\n t_hp -= a_at\n if t_hp <= 0:\n print("No")\n exit()', 't_at, t_hp, a_at, a_hp = map(int, input().split())\n\nwhile True:\n a_hp -= t_at\n if a_hp <= 0:\n print("Yes")\n \n t_hp -= a_at\n if t_hp <= 0:\n print("No")\n ', 't_hp, t_at, a_hp, a_at = map(int, input().split())\n\nwhile True:\n a_hp -= t_at\n if a_hp <= 0:\n print("Yes")\n exit()\n\n t_hp -= a_at\n if t_hp <= 0:\n print("No")\n exit()\n'] | ['Runtime Error', 'Wrong Answer', 'Time Limit Exceeded', 'Accepted'] | ['s512754092', 's909673848', 's963960705', 's575444353'] | [8916.0, 9048.0, 27772.0, 9032.0] | [23.0, 23.0, 2319.0, 21.0] | [183, 181, 166, 206] |
p02700 | u336093806 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int,input().split())\nif A//D > C//B:\n print("No")\nelse:\n print("Yes")', 'A, B, C, D = map(int,input().split())\nwhile True:\n C = C -B\n if C <= 0:\n print("Yes")\n break\n A = A -D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s936078672', 's680333750'] | [9164.0, 9172.0] | [22.0, 21.0] | [92, 174] |
p02700 | u338988175 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\nwhile a >= 0:\n c -= b\n if c <= 0:\n print("Yes")\n break\n a -= d\n if a <= 0:print("No")', 'a,b,c,d = map(int,input().split())\nwhile True:\n c -= b\n if c <= 0:\n print("Yes")\n break\n a -= d\n if a <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s375562721', 's868235831'] | [9148.0, 9068.0] | [31.0, 24.0] | [146, 167] |
p02700 | u340585574 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import math\na,b,c,d=map(float,input().split())\nta=c/b\naa=a/d\nta=math.floor(ta)\naa=math.floor(aa)\nif(c%d):\n ta=ta+1\nif(a%d):\n aa=aa+1\nif(ta>=aa):\n print("Yes")\nelse:\n print("No")\n', 'import math\na,b,c,d=map(float,input().split())\nta=math.ceil(c/b)\naa=math.ceil(a/d)\nif(ta<=aa):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s628214183', 's280289992'] | [9184.0, 8932.0] | [21.0, 23.0] | [190, 133] |
p02700 | u345483150 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d=map(int,input().split())\n\nif c%b!=0:\n e=c//b+1\nelse:\n e=c//b\n \nif a%d!=0:\n f=a//d+1\nelse:\n f=a//d \nif e>=f:\n print('Yes')\nelse:\n print('No')", "a,b,c,d=map(int,input().split())\n \nif c%b==0:\n e=c//b\nelse:\n e=c//b+1\n \nif a%d==0:\n f=a//d\nelse:\n f=a//d+1 \n\nif e<=f:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s106593152', 's794507586'] | [9176.0, 9068.0] | [20.0, 19.0] | [156, 158] |
p02700 | u347640436 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\n\nif (C + B - 1) // C <= (A + D - 1) // D:\n print('Yes')\nelse:\n print('No')\n", "A, B, C, D = map(int, input().split())\n\nif (C + B - 1) // B <= (A + D - 1) // D:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s187080363', 's266085920'] | [9120.0, 9148.0] | [22.0, 23.0] | [120, 120] |
p02700 | u347841247 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['input_line = input().split()\nA = int(input_line[0])\nB = int(input_line[1])\nC = int(input_line[2])\nD = int(input_line[3])\nwhile (1):\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("no")\n break\n', '\ninput_line = input().split()\nA = int(input_line[0])\nB = int(input_line[1])\nC = int(input_line[2])\nD = int(input_line[3])\nwhile (1):\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("No")\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s901841259', 's491863556'] | [9072.0, 9172.0] | [21.0, 21.0] | [253, 254] |
p02700 | u355371431 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,input().split())\n\nfor i in range(10000):\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if B <= 0:\n print("No")\n break', 'A,B,C,D = map(int,input().split())\n\nfor i in range(100000):\n C -= B\n if C <= 0:\n print("Yes")\n break\n A -= D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s155849574', 's234089427'] | [9172.0, 9172.0] | [21.0, 21.0] | [179, 180] |
p02700 | u356959833 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["from sys import stdin\na,b,c,d = [int(x) for x in stdin.readline().rstrip().split()]\naa = a // d + 1\nbb = c // b + 1\nif aa <= bb:\n print('Yes')\nelse:\n print('No')", "from sys import stdin\na,b,c,d = [int(x) for x in stdin.readline().rstrip().split()]\nif a % d == 0:\n aa = a / d\nelse:\n aa = a//d +1\nif c % b == 0:\n bb = c / b\nelse:\n bb = c//b +1\nif aa >= bb:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s105927590', 's101496759'] | [9172.0, 9124.0] | [23.0, 24.0] | [167, 241] |
p02700 | u357949405 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\n\ncount_T = A // D\ncount_A = C // B\n\nis_alive_T = bool(A % D)\nis_alive_A = bool(C % B)\n\nif count_T < count_A:\n print('Yes')\nelif count_T > count_A:\n print('No')\nelse:\n if is_alive_T and is_alive_A:\n print('Yes')\n elif not is_alive_T and not is_alive_A:\n print('Yes')\n elif not is_alive_T and is_alive_A:\n print('Yes')\n else:\n print('No')\n", "A, B, C, D = map(int, input().split())\n\nwhile True:\n A -= D\n if A <= 0:\n print('Yes')\n break\n C -= B\n if B <= 0:\n print('No')\n break\n", "A, B, C, D = map(int, input().split())\n\nwhile True:\n C -= B\n if C <= 0:\n print('Yes')\n break\n A -= D\n if A <= 0:\n print('No')\n break\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s058250203', 's207788292', 's516355979'] | [9060.0, 9160.0, 8952.0] | [21.0, 21.0, 22.0] | [422, 173, 173] |
p02700 | u360748099 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import math\nA,B,C,D = map(int,input().split())\nX = math.ceil(C//B)\nY = math.ceil(A//D)\nif X <= Y:\n print("Yes")\nelse:\n print("No")\n', 'import math\nA,B,C,D = map(int,input().split())\nX = math.ceil(C/B)\nY = math.ceil(A/D)\nif X <= Y:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s506058530', 's771971507'] | [9140.0, 8976.0] | [24.0, 23.0] | [137, 135] |
p02700 | u362031378 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d=map(int,input().split())\nprint(a,b,c,d)\n\nwhile a > 0:\n c=c-b\n if c<=0:\n print('Yes')\n break\n \n if a-d<=0:\n print('No')\n break\nprint(a,c)", "a,b,c,d=map(int,input().split())\nwhile a > 0:\n c=c-b\n if c<=0:\n print('Yes')\n break\n a=a-d\n if a<=0:\n print('No')\n break\n "] | ['Wrong Answer', 'Accepted'] | ['s167336693', 's928444894'] | [9112.0, 9104.0] | [23.0, 22.0] | [159, 138] |
p02700 | u363836311 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d=map(int, input().split())\nwhile a<=0 or c<=0:\n c-=b\n a-=d\n if c<=0:\n print('Yes')\n exit()\n elif a<=0:\n print('No')\n exit()", "s,w=map(int, input().split())\nif w>=s:\n print('unsafe')\nelse:\n print('safe')\n", "a,b,c,d=map(int, input().split())\nwhile a>0 or c>0:\n c-=b\n a-=d\n if c<=0:\n print('Yes')\n exit()\n elif a<=0:\n print('No')\n exit()\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s729496484', 's895851407', 's400537820'] | [9116.0, 9148.0, 9168.0] | [20.0, 23.0, 21.0] | [146, 79, 145] |
p02700 | u367147039 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d=map(int,input().split())\n\nwhile True:\n c-=b \n if c<=0:\n print("Yes")\n break\n\n a-=d \n if d<=0:\n print("No")\n break\n ', 'a,b,c,d=map(int,input().split())\n\nwhile True:\n c-=b\n if c<=0:\n print("Yes")\n break\n\n a-=d\n if a<=0:\n print("No")\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s953729405', 's415330289'] | [9136.0, 9124.0] | [27.0, 26.0] | [170, 160] |
p02700 | u369630760 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = input().split()\nA = int(a)\nB = int(b)\nC = int(c)\nD = int(d)\nfor i in range(A):\n A = A - D\n B = B - C\n print(A)\n print(B)\n if A <= 0:\n print("No")\n break\n if B <= 0:\n print("Yes")\n break', 'a,b,c,d = input().split()\nA = int(a)\nB = int(b)\nC = int(c)\nD = int(d)\nfor i in range(A):\n C = C - B\n if C <= 0:\n print("Yes")\n break\n A = A - D\n if A <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Accepted'] | ['s901166200', 's725927422'] | [9192.0, 9180.0] | [23.0, 20.0] | [241, 215] |
p02700 | u373286100 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D=input().split()\nnum = 0\nwhile(int(A)>0 and int(C)>0):\n if 0<= int(A)<= 100 and 0<= int(B)<= 100 and 0<= int(C)<= 100 and 0<= int(D)<= 100:\n if num %2 ==0:\n C = int(C)-int(B)\n num += 1\n if num %2 !=0:\n A = int(A)-int(D)\n num += 1\n if int(A)<0:\n print("No")\n break\n\n if int(C)<0:\n print("Yes")\n break\n else:\n break\n', 'A,B,C,D=input().split()\nnum = 0\nwhile(int(A)>=0 and int(C)>=0):\n if int(A)<= 100 and 0 <= int(B)<= 100 and int(C)<= 100 and 0 <= int(D)<= 100:\n if num %2 ==0:\n C = int(C)-int(B)\n if int(C)<0:\n print("Yes")\n break\n num += 1\n elif num %2 !=0:\n A = int(A)-int(D)\n if int(A)<0:\n print("No")\n break\n num += 1\n else:\n break\n', 'A,B,C,D=input().split()\nnum = 0\nwhile(int(A)>0 and int(C)>0):\n if 0<= int(A)<= 100 and 0<= int(B)<= 100 and 0<= int(C)<= 100 and 0<= int(D)<= 100:\n if num %2 ==0:\n C = int(C)-int(B)\n if int(C)<0:\n print("Yes")\n break\n num += 1\n elif num %2 !=0:\n A = int(A)-int(D)\n if int(A)<0:\n print("No")\n break\n num += 1\n else:\n break\n', 'A,B,C,D=map(int,input().split())\nnum = 0\nwhile(A>=0 and C>=0):\n if A<= 100 and 0 <= B<= 100 and C<= 100 and 0 <= D<= 100:\n if num %2 == 0:\n C = C- B\n if C<=0:\n print("Yes")\n break\n num += 1\n elif num %2 !=0:\n A = A - D\n if A<=0:\n print("No")\n break\n num += 1\n else:\n break\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s245767525', 's422714028', 's463813240', 's523459126'] | [9112.0, 9184.0, 9012.0, 9052.0] | [28.0, 29.0, 28.0, 29.0] | [450, 471, 475, 426] |
p02700 | u373703188 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\n\nif c % b == 0:\n takahashi = c // b\nelse:\n takahashi = c // b + 1\n\nif a % d == 0:\n aoki = a // d\nelse:\n aoki = a // d + 1\n\nprint(takahashi)\nprint(aoki)\n\nif takahashi <= aoki:\n print("Yes")\nelse:\n print("No")', 'a, b, c, d = map(int, input().split())\n\nif c % b == 0:\n takahashi = c // b\nelse:\n takahashi = c // b + 1\n\nif a % d == 0:\n aoki = a // d\nelse:\n aoki = a // d + 1\n\n# print(takahashi)\n# print(aoki)\n\nif takahashi <= aoki:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s422537038', 's938804639'] | [9208.0, 9180.0] | [23.0, 20.0] | [264, 268] |
p02700 | u374784428 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int,input().split())\t\ncnt =0\nwhile a > d and c > b:\n c -= b\n if c <= 0:\n print('Yes')\n else:\n a -= d\n if a <= 0:\n print('No')\n else:\n cnt += 0", "a,b,c,d = map(int,input().split())\t\n\nwhile a > 0 and c > 0:\n c -= b\n a -= d\n\nif c <= 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s073072547', 's430319014'] | [9176.0, 9168.0] | [19.0, 23.0] | [215, 132] |
p02700 | u376450099 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import math\n\nA,B,C,D=map(int,input().split())\n\n\nif C/B > (A/D)+1:\n print("No")\n exit()\nprint("Yes")\n', 'import math\n\nA,B,C,D=map(int,input().split())\n\n\nwhile True:\n C-=B\n if C<=0:\n print("Yes")\n exit()\n A-=D\n if A<=0:\n print("No")\n exit()\n'] | ['Wrong Answer', 'Accepted'] | ['s712266941', 's301362313'] | [9152.0, 9164.0] | [22.0, 24.0] | [146, 215] |
p02700 | u376754170 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = map(int, input().split())\nprint('Yes' if a/d+int(not bool(a % d)) >= c/b+int(not bool(c % b)) else 'No')", "a, b, c, d = map(int, input().split())\nprint('Yes' if a/d+int(bool(a % d)) <= c/b+int(bool(c % b)) else 'No')", "a, b, c, d = map(int, input().split())\nprint('Yes' if a/d <= c/b else 'No')", "a, b, c, d = map(int, input().split())\nprint('Yes' if bool(int(a/d + bool(a % d)) >= int(c/b + bool(c % b))) else 'No')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s368082046', 's372516398', 's692466577', 's006449988'] | [9068.0, 9132.0, 9152.0, 9152.0] | [19.0, 20.0, 22.0, 22.0] | [117, 109, 75, 119] |
p02700 | u377834804 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A, B, C, D = map(int, input().split())\n \nwhile True:\n if C - B <= 0:\n print('Yes')\n else:\n C = C - B\n if A - D <= 0:\n print('No')\n else:\n A = A - D", "A, B, C, D = map(int, input().split())\n\nwhile true:\n if C - B <= 0:\n print('Yes')\n else:\n C = C - B\n if A - D <= 0:\n print('No')\n else:\n A = A - D", "A, B, C, D = map(int, input().split())\n \nwhile true:\n if C - B <= 0:\n print('Yes')\n break\n else:\n C = C - B\n if A - D <= 0:\n print('No')\n break\n else:\n A = A - D", "A, B, C, D = map(int, input().split())\n \nwhile True:\n if C - B <= 0:\n print('Yes')\n break\n else:\n C = C - B\n if A - D <= 0:\n print('No')\n break\n else:\n A = A - D"] | ['Time Limit Exceeded', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s245201105', 's297119183', 's338085876', 's504661121'] | [31420.0, 9116.0, 9176.0, 9076.0] | [2257.0, 20.0, 20.0, 21.0] | [163, 162, 183, 183] |
p02700 | u382639013 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A, B, C, D = map(int, input().split())\n\nt = C //B\na = A //D\n\nif t >= a:\n print("Yes")\nelse:\n print("No")', 'import math\na, b, c, d = map(int, input().split())\nt = math.ceil(a / d)\na = math.ceil(c / b)\nif t >= a:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s800116954', 's426999613'] | [9152.0, 9108.0] | [23.0, 22.0] | [110, 142] |
p02700 | u385825353 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int, input().split(' '))\nt = (c+b-1)//b\nt2 = (a+d-1)//d\nif t >= t2:\n print('Yes')\nelse:\n print('No')\n", "a,b,c,d = map(int, input().split(' '))\nt = (c+b-1)//b\nt2 = (a+d-1)//d\nif t <= t2:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s762167054', 's834359013'] | [9056.0, 9164.0] | [19.0, 23.0] | [117, 117] |
p02700 | u386089355 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\n\nfor i in range(101):\n if i % 2 == 0:\n c -= b\n if c <= 0:\n print("Yes")\n break\n elif i % 2 == 1:\n a -= d\n if a <= 0:\n print("NO")\n break', 'a, b, c, d = map(int, input().split())\n\nfor i in range(1001):\n if i % 2 == 0:\n c -= b\n if c <= 0:\n print("Yes")\n break\n elif i % 2 == 1:\n a -= d\n if a <= 0:\n print("NO")\n break', 'a, b, c, d = map(int, input().split())\n\nfor i in range(1001):\n if i % 2 == 0:\n c -= b\n if c <= 0:\n print("Yes")\n break\n elif i % 2 == 1:\n a -= d\n if a <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s847636541', 's857988735', 's651027536'] | [9204.0, 9112.0, 9152.0] | [22.0, 23.0, 21.0] | [253, 254, 254] |
p02700 | u388084260 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d = map(int,input().split())\n\nTakahashi=a/d\nAoki=c/b-1 if Takahashi>=Aoki:\n print("Yes")\nelse:\n print("No")', ' a,b,c,d = map(int,input().split())\nah=a\nch=c\nwhile(1):\n ah-=d\n ch-=b\n if(ch<=0):\n print("Yes")\n break\n elif(ah<=0):\n print("No")\n break\n\n\n', 'a,b,c,d = map(int,input().split())\n\nTakahashi=a/d\nAoki=c/b-1\nif Takahashi>=Aoki:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d = map(int,input().split())\n\nTakahashi=a/d\nAoki=c/b-1\nif Takahashi>=Aoki:\n print("Yes")\nelse:\n print("No")', 'import math\na,b,c,d = map(int,input().split())\n\nTakahashi=math.ceil(a/d)\nAoki=math.ceil(c/b)-1\nif Takahashi>=Aoki:\n print("Yes")\nelse:\n print("No")', 'a,b,c,d = map(int,input().split())\nah=a\nch=c\nwhile(1):\n ah-=d\n ch-=b\n if(ch<=0):\n print("Yes")\n break\n elif(ah<=0):\n print("No")\n break\n\n\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s277101853', 's415119076', 's424046987', 's528952944', 's700091224', 's757722858'] | [8952.0, 8980.0, 9164.0, 9136.0, 9124.0, 9168.0] | [21.0, 21.0, 23.0, 24.0, 22.0, 21.0] | [337, 401, 119, 119, 153, 178] |
p02700 | u388297793 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import math \na,b,c,d=map(int,input().split())\nprint("Yes") if math.ceil(c/a)>=math.ceil(a/d) else print("No")', 'import math \na,b,c,d=map(int,input().split())\nprint("Yes") if math.ceil(c/a)<=math.ceil(a/d) else print("No")', 'import math \na,b,c,d=map(int,input().split())\nprint("Yes") if math.ceil(c/b)<=math.ceil(a/d) else print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s451851215', 's814942757', 's342429068'] | [9148.0, 9040.0, 9048.0] | [25.0, 27.0, 29.0] | [109, 109, 109] |
p02700 | u388323466 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int,input().split())\n\nfor i in range(1,101):\n\tif i/2 % 1 :\n\t\tc = c-b\n\t\tprint('c',c)\n\telse:\n\t\ta = a-d\n\t\tprint('a',a)\n\t\n\tif a <= 0:\n\t\tprint('No')\n\t\tbreak\n\telif c <= 0:\n\t\tprint('Yes')\n\t\tbreak\n\n\n\n\t\n\t", "a,b,c,d = map(int,input().split())\n\nfor i in range(1,202):\n\tif i/2 % 1 :\n\t\tc = c-b\n\telse:\n\t\ta = a-d\n\t\n\tif a <= 0:\n\t\tprint('No')\n\t\tbreak\n\telif c <= 0:\n\t\tprint('Yes')\n\t\tbreak\n\n\n\n\t\n\t"] | ['Wrong Answer', 'Accepted'] | ['s956524065', 's319474569'] | [9240.0, 9240.0] | [25.0, 23.0] | [209, 179] |
p02700 | u388458865 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['A,B,C,D = map(int,input().split())\nfor num in range(0,):\n aoki = C - B\n taka = A - D\n if (aoki or taka) <= 0 : break\n else : pass\n\n#print(aoki,taka)\nif aoki <= 0 : print("Yes")\nelif taka <= 0 : print("No")', 'import math\nA,B,C,D = map(int,input().split())\nif (math.ceil(A/D)) >= (math.ceil(C/B)) : print("Yes") \nelse : print("No")'] | ['Runtime Error', 'Accepted'] | ['s300458370', 's348782781'] | [9040.0, 9128.0] | [21.0, 20.0] | [217, 143] |
p02700 | u392172834 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['N = int(input())\n\ngoods = {}\nfor i in range(N):\n name = input().rstrip()\n if name in goods.keys():\n goods[name] += 1\n else:\n goods[name] = 1\nprint(len(goods.keys()))', "a, b, c, d = map(int, input().split())\nwhile(a > 0 and c > 0):\n c -= b\n if c <= 0:\n break\n a -= d\n if a <= 0:\n break\nif a > c:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s865205253', 's387700684'] | [9116.0, 9108.0] | [25.0, 20.0] | [174, 171] |
p02700 | u392361133 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import math\na, b, c, d = map(int, input().split())\nif math.ceil(c / b) =< math.ceil(a / d):\n print("Yes")\nelse:\n print("No")\n', 'a, b, c, d = map(int, input().split())\nwhile 1:\n c -= b\n if(c <= 0):\n print("Yes")\n break\n a -= d:\n if(a <= 0):\n print("No")\n break\n', 'a, b, c, d = map(int, input().split())\nwhile 1:\n c -= b\n if(a <= 0):\n print("Yes")\n break\n a -= d:\n if(d <= 0):\n print("No")\n break', 'import math\na, b, c, d = map(int, input().split())\nif math(c / b) < math(a / d):\n print("Yes")\nelse:\n print("No")', 'import math\na, b, c, d = map(int, input().split())\nif math.ceil(c / b) <= math.ceil(a / d):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s152842832', 's175065500', 's367938369', 's595355805', 's214817682'] | [8916.0, 8976.0, 8828.0, 9156.0, 9080.0] | [23.0, 20.0, 21.0, 27.0, 30.0] | [127, 172, 171, 115, 127] |
p02700 | u395349728 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int,input().split())\nif c%b==0 and a%d!=0:\n\tprint('yes')\nelse:\n\tprint('no')", "a,b,c,d = map(int,input().split())\nchance = 0\nwhile a>0 and c>0:\n\tif chance==0:\n\t\tc-=b\n\t\tchance=1\n\telse:\n\t\ta-=d\n\t\tchance=0\nif a<=0 and c>0:\n\tprint('No')\nelse:\n\tprint('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s897736030', 's342032367'] | [9076.0, 9200.0] | [26.0, 30.0] | [89, 172] |
p02700 | u395894569 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a, b, c, d = map(int, input().split())\n\nprint('Yes' if c//b>=a//d else 'No')", "a,b,c,d = map(int, input().split())\nprint('Yes' if (-(-c // b)) <= (-(-a // d)) else 'No')\n"] | ['Wrong Answer', 'Accepted'] | ['s140010444', 's249741191'] | [9152.0, 9160.0] | [22.0, 22.0] | [76, 91] |
p02700 | u400982556 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import sys\n\nA,B,C,D = map(int,input().split())\n\n\nwhile True:\n C = C - B\n if C <= 0:\n print('Yes')\n sys.exit()\n \n A = A - D\n if A <= 0:\n print('no')\n sys.exit()", "import sys\n\nA,B,C,D = map(int,input().split())\n\naoki = C\ntakahasi = A\nwhile True:\n aoki = aoki - B\n if aoki <= 0:\n print('Yes')\n sys.exit()\n \n takahasi = takahasi - D\n if takahasi <= 0:\n print('no')\n sys.exit()", "import sys\n\nA,B,C,D = map(int,input().split())\n\n\nwhile True:\n C = C - B\n if C <= 0:\n print('Yes')\n sys.exit()\n \n A = A - D\n if A <= 0:\n print('No')\n sys.exit()"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s259831903', 's609744208', 's464481788'] | [9172.0, 9180.0, 9196.0] | [24.0, 20.0, 24.0] | [176, 227, 176] |
p02700 | u401487574 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['import sys\ninput = sys.stdin.readline\nma = lambda : map(int,input().split())\nni = lambda : int(input())\na,b,c,d = ma()\nimport math\nceil =math.ceil\nif ceil(c/b) <=ceil(a/d)+1:print("Yes")\nelse:print("No")\n', 'import sys\ninput = sys.stdin.readline\nma = lambda : map(int,input().split())\nni = lambda : int(input())\na,b,c,d = ma()\nimport math\nceil =math.ceil\nif ceil(c/b) <=ceil(a/d):print("Yes")\nelse:print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s706048379', 's414619867'] | [9168.0, 9144.0] | [23.0, 21.0] | [204, 202] |
p02700 | u402077280 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int,input().split())\ne = a / d \nf = c / b\ng = e - f\nh = abs(g)\nif h < 1:\n print("Yes")\nelif e >= f:\n print("Yes")\nelse:\n print("No")', 'import math\n\na, b, c, d = map(int,input().split())\ne = math.ceil(a / d)\nf = math.ceil(c / b)\n\nif e >= f:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s322245064', 's159566518'] | [9176.0, 9168.0] | [21.0, 24.0] | [158, 143] |
p02700 | u402299963 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["h1,s1,h2,s2=map(int,input().split())\nwhile True:\n h2 -= s1\n if h2 <= s1:\n print('Yes')\n break\n h1-=s2\n if h1<=0:\n print('No')\n break", "h1,s1,h2,s2=map(int,input().split())\nwhile True:\n h2 -= s1\n if h2 <= 0:\n print('Yes')\n break\n h1-=s2\n if h1<=0:\n print('No')\n break\n"] | ['Wrong Answer', 'Accepted'] | ['s613415796', 's446693436'] | [9168.0, 9160.0] | [24.0, 21.0] | [172, 172] |
p02700 | u404401732 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["th,ts,ah,as = map(int,input().split())\nwhile Ture:\n ah -= ts\n if ah <= 0:\n print('Yes')\n break\n else:\n th -= as\n if th <= 0:\n print('No')\n break", "TH,TS,AH,AS = map(int,input().split())\nwhile Ture:\n AH -= TS\n if AH <= 0:\n print('Yes')\n break\n else:\n TH -= AS\n if TH <= 0:\n print('No')\n break", "TH,TS,AH,AS = map(int,input().split())\nwhile True:\n AH -= TS\n if AH <= 0:\n print('Yes')\n break\n else:\n TH -= AS\n if TH <= 0:\n print('No')\n break"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s384939645', 's401300899', 's228969910'] | [9008.0, 9168.0, 9164.0] | [23.0, 23.0, 22.0] | [169, 169, 169] |
p02700 | u405080602 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = map(int, input().split())\n\n\nprint(5//6)\n#print(a//d)\nif c//b<a//d:\n print('No')\nelif c//b==a//d==0:\n print('No')\nelif c//b==a//d and a%d==0:\n print('No')\nelse:\n print('Yes')\n", "a,b,c,d = map(int, input().split())\n\n\n\nif c//b<a//d:\n print('No')\nelse:\n print('Yes')", 'a,b,c,d = map(int, input().split())\n\n\n\n#print(a//d)\nfor _ in range(200):\n c-=b\n if c<=0:\n print("Yes")\n break\n else: pass\n a-=d\n if a<=0:\n print("No")\n break\n else: pass'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s108193959', 's293786482', 's836858636'] | [9052.0, 9012.0, 9116.0] | [24.0, 22.0, 20.0] | [196, 91, 215] |
p02700 | u405733072 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["def resolve():\n a,b,c,d = map(int,input().split())\n A = math.ceil(c/b)\n B = math.ceil(a/d)\n print('Yes' if A <= B else 'No')\n \nresolve()", "import math\ndef resolve():\n a,b,c,d = map(int,input().split())\n A = math.ceil(c/b)\n B = math.ceil(a/d)\n print('Yes' if A <= B else 'No')\nresolve()"] | ['Runtime Error', 'Accepted'] | ['s331271973', 's577936473'] | [8976.0, 9020.0] | [25.0, 27.0] | [151, 158] |
p02700 | u406405116 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["a,b,c,d = input().split(' ')\na = int(a)\nb = int(b)\nc = int(c)\nd = int(d)\n\nr1 = a // d\nr2 = c // b\nif r1 >= r2:\n print('Yes')\nelse:\n print('No')", "a,b,c,d = input().split(' ')\n\na = int(a)\nb = int(b)\nc = int(c)\nd = int(d)\n \nr1 = c // b\nr2 = a // d \n\nfor i in range(1000):\n c -= b\n if c <= 0 :\n print('Yes')\n break\n a -= d\n if a <= 0:\n print('No')\n break\n "] | ['Wrong Answer', 'Accepted'] | ['s024396793', 's102563982'] | [9116.0, 9184.0] | [22.0, 21.0] | [145, 224] |
p02700 | u408071652 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a, b, c, d = map(int, input().split())\n\n\nwhile a>0:\n\n c = c - b\n if c < 0:\n print("Yes")\n break\n\n \n a = a- d\n if a <0:\n print("NO")\n break', 'a, b, c, d = map(int, input().split())\n\n\nwhile a>0:\n\n c = c - b\n if c <= 0:\n print("Yes")\n break\n\n \n a = a- d\n if a <=0:\n print("NO")\n break', 'a, b, c, d = map(int, input().split())\n\n\nwhile a>0:\n\n c = c - b\n if c <= 0:\n print("Yes")\n break\n\n \n a = a- d\n if a <= 0:\n print("No")\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s028281434', 's298722425', 's689250137'] | [9172.0, 9076.0, 9176.0] | [18.0, 21.0, 23.0] | [181, 183, 184] |
p02700 | u408148811 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ['a,b,c,d=map(int,input().split())\nx=0\nwhile(True):\n if x%2==0:\n if c-b>0:\n c=c-b \n elif(c-b<=0):\n print("yes")\n break\n x+=1\n else:\n if a-d>0:\n a=a-d\n else:\n print("no")\n break \n x+=1\n \n \n ', 'a,b,c,d=map(int,input().split())\n\nif a+b>=c+d:\n print("yes")\nelse:\n print("no")', 'a,b,c,d=map(int,input().split())\nx=0\nwhile(True):\n if x%2==0:\n if c-b>0:\n c=c-b \n elif(c-b<=0):\n print("Yes")\n break\n x+=1\n else:\n if a-d>0:\n a=a-d\n else:\n print("No")\n break \n x+=1\n \n \n '] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s481136188', 's618777903', 's362664790'] | [9180.0, 9160.0, 9168.0] | [21.0, 21.0, 23.0] | [318, 85, 318] |
p02700 | u409254176 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["A,B,C,D=map(int,input().split())\nwhile A==0 or C==0:\n a-d\n c-b\nif A>=C:\n\tprint('Yes')\nelse:\n\tprint('No')", "a,b,c,d = map(int,input().split())\nwhile True:\n\tc=c-b\n\tif c<=0:\n\t\tprint('Yes')\n\t\tbreak\n\ta=a-d\n\tif a<=0:\n\t\tprint('No')\n\t\tprint(a)\n\t\tbreak", "A,B,C,D=map(int,input().split())\nwhile A==0 or C==0:\n a-d\n c-b\n a-d\n c-b\nif A>=C:\n\tprint('Yes')\nelse:\n\tprint('No')", "a,b,c,d = map(int,input().split())\ne=(a+d-1)//d\nf=(c+b-1)//b\nif e>=f:\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s504990849', 's692513611', 's737974510', 's564033786'] | [9144.0, 9008.0, 9112.0, 9108.0] | [28.0, 30.0, 30.0, 26.0] | [112, 136, 130, 102] |
p02700 | u409306788 | 2,000 | 1,048,576 | Takahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins. If Takahashi will win, print `Yes`; if he will lose, print `No`. | ["import sys\ninput = sys.stdin.readline\n\n# B - Battle\ndef win_takahashi(A, B, C, D):\n\n\tfor i in range(300):\n\t\tif i % 2 == 0:\n\t\t\tC -= B\n\t\t\t\n\t\t\tif C <= 0:\n\t\t\t\treturn True\n\t\telse:\n\t\t\tD -= A\n\t\t\t\n\t\t\tif A <= 0:\n\t\t\t\treturn False\n\t\t\t\n\nA, B, C, D = map(int, input().split())\n\nif win_takahashi(A, B, C, D):\n\tprint('Yes')\nelse:\n\tprint('No')", "import sys\ninput = sys.stdin.readline\n\n# B - Battle\na, b, c, d = map(int, input().split())\n\nwhile True:\n\tc -= b\n\tif c <= 0:\n\t\tprint('Yes')\n\t\tsys.exit()\n\t\n\ta -= d\n\tif a <= 0:\n\t\tprint('No')\n\t\tsys.exit()"] | ['Wrong Answer', 'Accepted'] | ['s852140617', 's314580758'] | [9196.0, 9176.0] | [20.0, 21.0] | [327, 200] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.