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
p02699
u311961196
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = map(int, input().split())\nif W>S:\n print("safe")\nelse:\n print("unsafe")', 'S, W = map(int, input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s673844300', 's654370670']
[9156.0, 9156.0]
[32.0, 32.0]
[84, 85]
p02699
u312078744
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["A, B = map(int.input().split())\n\nif (A > B):\n print('safe')\nelse:\n print('unsafe')\n", "A, B = map(int, input().split())\n\nif (A > B):\n print('safe')\nelse:\n print('unsafe')\n"]
['Runtime Error', 'Accepted']
['s743314648', 's401475437']
[9080.0, 9180.0]
[21.0, 24.0]
[89, 90]
p02699
u312814337
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = map(int, input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")S, W = map(int, input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s991518385', 's147639245']
[8808.0, 9076.0]
[23.0, 26.0]
[174, 87]
p02699
u316649390
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S,W = map(int,input().suplit())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'S,W = map(int,input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s052755853', 's417654507']
[9096.0, 9008.0]
[20.0, 20.0]
[82, 81]
p02699
u318066360
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
[' s,w=input().split()\ns=int(s)\nw=int(w)\nif s>w:\n print("safe")\nelse:\n print("unsafe")', 's,w=input().split()\ns=int(s)\nw=int(w)\nif s>w:\n print("safe")\nelse:\n print("unsafe")\n ']
['Runtime Error', 'Accepted']
['s381488140', 's796972178']
[8996.0, 9148.0]
[22.0, 25.0]
[92, 94]
p02699
u318909153
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['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]\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 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 N[0]/2=>N[1]:\n print("safe")\nelse:\n print("unsafe")', '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")\n', 'N=[int(x) for x in input().split()]\nif N[0]>N[1]:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s014421052', 's461793474', 's756186137', 's866928784', 's939797056', 's154732661']
[9184.0, 9024.0, 9196.0, 8952.0, 9184.0, 9164.0]
[19.0, 26.0, 22.0, 20.0, 21.0, 21.0]
[227, 225, 226, 95, 208, 92]
p02699
u321804710
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
[" s, w = (int(x) for x in input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')", "s, w = map(int, input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s973031077', 's723830176']
[9004.0, 9152.0]
[20.0, 22.0]
[96, 87]
p02699
u322603957
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b,c,d = map(int,input().split())\nta = 0\naok = 0\nwhile True:\n ta = c-b\n c = ta\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\n \n\n \n\n', 's, w = map(int, input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s035581152', 's651111320']
[9176.0, 9152.0]
[21.0, 22.0]
[227, 88]
p02699
u323532272
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a, b, c ,d = map(int, input().split())\nattack = True\nwin = True\n\nwhile True:\n\tif attack:\n\t\tc -= b\n\t\tattack = False\n\t\tif c < 0:\n\t\t\tbreak\n\telse:\n\t\ta -= d\n\t\tattack = True\n\t\tif a < 0:\n\t\t\twin = False \n\t\t\tbreak\n\n\nprint("Yes") if win else print(\'No\')\n', 'a, b, c, d = map(int, input().split())\nattack = True\nwin = True\n\nwhile a < 0 | c < 0:\n\tif attack:\n\t\tc -= b\n\t\tattack = False\n\telse:\n\t\ta -= d\n\t\tattack = True\n\t\tif a < 0:\n\t\t\twin = False\n \nprint("Yes") if win else print(\'No\')\n', 'a, b, c ,d = map(int, input().split())\nattack = True\nwin = True\n\nwhile True:\n\tif attack:\n\t\tc -= b\n\t\tattack = False\n\t\tif c < 0:\n\t\t\tbreak\n\telse:\n\t\ta -= d\n\t\tattack = True\n\t\tif a < 0:\n\t\t\twin = False \n\t\t\tbreak\n\n\nprint("Yes") if win else print(\'No\')\n\n', 's, w = map(int, input().split())\n\nprint("unsafe") if (s <= w) else print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s145996974', 's357910589', 's444322520', 's416369237']
[9132.0, 9184.0, 9084.0, 9040.0]
[22.0, 22.0, 25.0, 21.0]
[244, 233, 245, 80]
p02699
u323776907
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a, b = map(int, input().split())]\nif a <= b:\n print("unsafe")\nelif a > b:\n print("safe")', 'a, b = map(int, input().split())]\nif a < b:\n print("unsafe")\nelse:\n print("safe")', 'a, b = map(int, input().split())\nif a <= b:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s165718464', 's659132064', 's857730932']
[8924.0, 8876.0, 9132.0]
[22.0, 20.0, 23.0]
[90, 83, 83]
p02699
u325471499
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["sheep_number=int(10)\nwolf_number=int(2)\nif sheep_number<=wolf_number:\n print('unsafe')\nelse:\n print('safe')", "sheep_number=S\nwolf_number=W\nif sheep_number<=wolf_number:\n print('unsafe')\nelse:\n print('safe')", "t,k,a,o = map(int,input().split())\ntaka=int(a//k)\naoki=int(t//o)\nif taka<=aoki:\n print('Yes')\nelse:\n print('No')", "sheep_number=int(input())\nwolf_number=int(input())\nif sheep_number<=wolf_number:\n print('unsafe')\nelse:\n print('safe')", "x,y = map(int,input().split())\nif x<=y:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s041143533', 's070924927', 's246971721', 's532153760', 's759555041']
[9068.0, 9028.0, 9168.0, 9092.0, 9160.0]
[22.0, 21.0, 21.0, 22.0, 21.0]
[113, 102, 118, 124, 83]
p02699
u328179275
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s,w = input().split()\nprint(type(s))\nif 2*int(w) > int(s):\n print('unsafe')\nelse:\n print('safe')", '# -*- encode utf-8 -*-\n\nS,W = int(input())\n狼の数が羊の数以上のとき、羊は狼に襲われてしまいます。\nif 2W >= S:\n\tprint(unsafe)\nelse:\n\tprint(safe)\n', "s,w = input().split()\nif int(w) >= int(s):\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s097338615', 's828841902', 's626621223']
[9068.0, 9000.0, 9148.0]
[22.0, 20.0, 19.0]
[98, 202, 82]
p02699
u329271833
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S = int(input())\nW = int(input())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')", "S = int(input('How many sheep'))\nW = int(input('How many wolf'))\nif W >= S:\n print('unsafe')\nelse:\n print('safe')", "S,W = input().split()\nif int(W) >= int(S):\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s588765716', 's849833668', 's729346847']
[9048.0, 8980.0, 9148.0]
[30.0, 24.0, 30.0]
[88, 121, 86]
p02699
u329656087
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b=map(int,input().split(" ")\nif a>b:\n\tprint("safe")\nelse:\n print("unsafe")\n \n', 'a,b=map(int,input().split(" "))\nif a>b:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s424331688', 's219509055']
[8984.0, 9140.0]
[23.0, 22.0]
[85, 83]
p02699
u332317213
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['import sys\n\ndef main():\n args = sys.argv\n if int(args[1]) <= int(args[2]):\n print("unsafe")\n else:\n print("safe")\n\nif __name__ == "__main__":\n main()', 'import sys\n\ndef main():\n args = sys.argv\n if int(args[0]) <= int(args[1]):\n print("unsafe")\n else:\n print("safe")\n\nif __name__ == "__main__":\n main()', 'def main():\n num = input().split()\n if int(num[0]) <= int(num[1]):\n print("unsafe")\n else:\n print("safe")\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Runtime Error', 'Accepted']
['s646692477', 's796208519', 's291960949']
[9088.0, 9168.0, 9020.0]
[21.0, 20.0, 23.0]
[175, 175, 167]
p02699
u333546629
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S=input(sheeps:)\nW=input(wolfs:)\n\nif S>W:\n print("safe")\nelse:\n print("unsafe")', 's,w=map(int,input().split())\n\nif s>w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s086194198', 's097052288']
[8904.0, 9148.0]
[19.0, 21.0]
[81, 77]
p02699
u336979293
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S = int(input())\nW = int(input())\nif W >= S :\n print('unsafe')\nelse :\n print('safe')", "S,W = map(int,input().split(' '))\nif W >= S :\n print('unsafe')\nelse :\n print('safe')"]
['Runtime Error', 'Accepted']
['s404906875', 's063672873']
[9160.0, 9180.0]
[21.0, 21.0]
[90, 90]
p02699
u342747506
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a , b = map(int,input().split())\nif b>= a:\n print("safe")\nelif :\n print("unsafe")', 's,w = map(int,input().split())\nif w >= s :\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s570826601', 's064642366']
[8976.0, 9160.0]
[23.0, 19.0]
[83, 82]
p02699
u345720855
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['def sheep_wolf (S,W):\n if 1 < (S or W) <100:\n \n if S > W :\n print("safe")\n else :\n print("unsafe")\n \n else :\n print("Error! You should specify the value between 1 and 100")', 'S,W = map(int, input.split())\n\n if S > W :\n print("safe")\n else :\n print("unsafe")\n\n\n\n', 'def wolfgame(S,W):\n if 1 <= S <= W <= 100:\n print("unsafe")\n elif 1 <= W < S <= 100:\n print("safe")\n else :\n print("invalid")', 'S,W = map(int, input().split())\n\nif S > W :\n print("safe")\nelse :\n print("unsafe")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s034355246', 's381511618', 's827049149', 's326785941']
[9008.0, 8968.0, 8948.0, 9160.0]
[22.0, 20.0, 21.0, 21.0]
[235, 122, 155, 88]
p02699
u350997995
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S,W = map(int,input().split())\nprint("unsafe" if S>=W else "safe")', 'S,W = map(int,input().split())\nprint("unsafe" if S<=W else "safe")']
['Wrong Answer', 'Accepted']
['s869929041', 's596162526']
[9160.0, 9148.0]
[21.0, 22.0]
[66, 66]
p02699
u353919145
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['from sys import stdin,stdout\ns,w=stdin.readline().strip().split()\ns=int(s)\nw=int(w)\nif(s>=w):\n print("unsafe")\nelse:\n print("safe")\n', "for i in range(2):\n S, W = [int(x) for x in input().split()]\nif W >= S:\n print('unsafe')\nelse:\n print('safe')", 'a, b=[int(yy) for yy in input().split()]\nif b>=a:\n\tprint(\'unsafe\')\nelse:\n\tprint("safe")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s358824041', 's638956525', 's769875519']
[8852.0, 9152.0, 9104.0]
[22.0, 24.0, 21.0]
[138, 118, 88]
p02699
u354623416
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['A,B,C,D= map(int, input().split())\nwhile (True):\n C = C - B\n if ( C <= 0 ):\n result = "Yes"\n break\n A = A - D\n if ( A <= 0 ) :\n result = "No"\n break\nprint ( result )\n', 's,w = map(int, input().split())\n\nif w >= s:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s685875256', 's114180233']
[9132.0, 9160.0]
[24.0, 22.0]
[206, 89]
p02699
u360061665
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["import numpy as np\nfrom collections import defaultdict\nfrom math import gcd\nimport time\nimport sys\nfrom collections import Counter\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nstart = time.time()\nN, M = map(int, input().split(' '))\nif N < M:\n print('safe')\nelse:\n print('unsafe')\n", "import numpy as np\nfrom collections import defaultdict\nfrom math import gcd\nimport time\nimport sys\nfrom collections import Counter\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nstart = time.time()\nN, M = map(int, input().split(' '))\nif N > M:\n print('safe')\nelse:\n print('unsafe')\n"]
['Wrong Answer', 'Accepted']
['s850951334', 's792551454']
[27128.0, 27128.0]
[109.0, 104.0]
[346, 346]
p02699
u362599643
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = [int(a) for a in input()[::-1]]\nm = 2019\nN = len(S)\ns = 0\np = 1\nX = [0] * 2019\nX[0] = 1\nans = 0\n\n\nfor a in S:\n\n s = (s + a * p) % m\n ans += X[s]\n X[s] += 1\n p = p * 10 % m\n \nprint(ans)', '# N = int(input())\nA,B = list(map(int, input().split()))\n\nif A<=B:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s559908674', 's164749569']
[9184.0, 9156.0]
[22.0, 23.0]
[200, 111]
p02699
u363836311
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s,w=map(int, input().split())\nif w>=s:\n pritn('unsafe')\nelse:\n print('safe')", "s,w=map(int, input().split())\nif w>=s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s748178574', 's243033390']
[9024.0, 9160.0]
[24.0, 21.0]
[78, 78]
p02699
u364862909
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S=input()\nmem_mod = [0 for i in range(0,2019,1)]\nN = len(S)\ncounter = 0\nS_num_tmp = list(S)\nS_num = list(map(int, S_num_tmp))\ntmp=10', 'e = list(map(int,input().split(sep=" ")))\nif e[0]<=e[1]:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s166177699', 's046914258']
[9164.0, 9100.0]
[23.0, 23.0]
[132, 100]
p02699
u366424761
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S,W = int(input().split())\nif S <= W:\n print('unsafe')\nprint('safe')", "S,W = map(int,input().split())\nif S <= W:\n print('unsafe')\nprint('safe')\n", "S,W = map(int,input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s454065613', 's954690279', 's329170740']
[8984.0, 9128.0, 9068.0]
[23.0, 20.0, 21.0]
[71, 76, 85]
p02699
u369539054
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s=input().split()\nprint(s)\nsheep=int(s[0])\nwolf=int(s[1])\nif wolf>sheep:\n print('unsafe')\nelse:\n print('safe')", 's,w = map(int,input().split())\t\nif s>w:\n print("safa")\nelse:\n print("unsafa")', "s=input().split()\nsheep=int(s[0])\nwolf=int(s[1])\nif wolf>=sheep:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s613502286', 's809128811', 's556211158']
[9168.0, 9156.0, 9112.0]
[24.0, 20.0, 22.0]
[112, 79, 104]
p02699
u370429695
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w = map(int,input().split())\nif w <= s:\n print("unsafe")\nelse:\n print("safe")', 's,w = map(int,input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")\n']
['Wrong Answer', 'Accepted']
['s262440591', 's488610174']
[9156.0, 9148.0]
[22.0, 24.0]
[85, 86]
p02699
u372670441
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['N,M=map(int,input().split())\nif(N>M):\n print("safe")\nelse if(N<=M):\n print("unsafe")', 'N,M=map(int,input().split())\nif(N>M):\n print("safe")\nelif(N<=M):\n print("unsafe")']
['Runtime Error', 'Accepted']
['s715405689', 's446782697']
[9012.0, 9164.0]
[25.0, 20.0]
[90, 87]
p02699
u373286100
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['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', 'S,W = input().split()\n\nif 0 <= int(S) <= 100 and 0 <= int(W) <= 100:\n if int(S) <= int(W):\n print("unsafe")\n else:\n print("safe")']
['Runtime Error', 'Accepted']
['s708327234', 's900204621']
[9132.0, 9040.0]
[25.0, 30.0]
[473, 149]
p02699
u373594825
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S, W = map(int, input().split())\n\nprint(S)\nprint(W)\n\nif S <= W :\n print('unsafe')\nelse:\n print('safe')", "S, W = map(int, input().split())\n\nif S <= W :\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s762012601', 's796025858']
[9028.0, 9160.0]
[22.0, 21.0]
[104, 85]
p02699
u374082254
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = input()\n\nresult = []\n\nfor i in range(len(S) - 3):\n for j in range(i + 3, len(S)):\n if int(S[i:j+1]) % 2019 == 0:\n result.append([i + 1, j + 1])\n\nprint(len(result))\n', 'S = input()\n\nresult = []\n\nfor i in range(len(S) - 3):\n for j in range(i + 3, len(S)):\n if int(S[i:j+1]) % 2019 == 0:\n result.append([i + 1, j + 1])\n\nprint(len(result))\n', 'S, W = map(int, input().split())\n\nif S > W:\n print("safe")\nelse:\n print("unsafe")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s079815392', 's587511951', 's783791782']
[9136.0, 9176.0, 9148.0]
[25.0, 27.0, 21.0]
[189, 189, 88]
p02699
u374671031
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = map(int, input().split())\n\nprint("safe" if S > W else"unsefe")', 'S, W = map(int, input().split())\n\nprint("safe" if S > W else "unsafe")']
['Wrong Answer', 'Accepted']
['s370833199', 's887601627']
[9152.0, 9160.0]
[23.0, 21.0]
[70, 71]
p02699
u375253797
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['A = input()\n\nS = 0\nlis = [0] * 2019\nlis[0] += 1\nl = len(A)+1\nd = 1\n\nfor n in reversed(A):\n S += int(n)*d\n sm = S % 2019\n lis[sm] += 1\n d *= 10\n\nresult = 0\n\nfor n in lis:\n result += (n*(n-1)/2)\n\n\nprint(int(result))\n', "S, W = map(int,input().split())\n\nif W >= S:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s040023702', 's425907616']
[9120.0, 9152.0]
[21.0, 20.0]
[229, 88]
p02699
u377631545
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b,c,d = (int(x) for x in input().split())\n\nx=int(a/d)+1\ny=int(b/c)+1\n\nif x>=y:\n print("Yes")\nelse:\n print("No")', 's,w = (int(x) for x in input().split())\nif s<=w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s196734564', 's371727097']
[9104.0, 9148.0]
[21.0, 23.0]
[119, 88]
p02699
u380669795
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["SW = input()\nSW = [int(i) for i in list(SW.split())]\n\nif SW[0]<=SW[1]:\n print('unsage')\nelse:\n print('safe')", "SW = input()\nSW = [int(i) for i in list(SW.split())]\n\nif SW[0]<=SW[1]:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s188480048', 's515695505']
[9100.0, 9108.0]
[23.0, 23.0]
[110, 110]
p02699
u382407432
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['N = input()\ncount=0\nfor i in range(len(N)+1):\n for j in range(i+1,len(N)+1):\n if(int(N[i:j])%3!=0):\n continue\n if(int(N[i:j])%673==0):\n count+=1\n\nprint(count)\n', 'S, W = map(int,(input().split()))\nif(S>W):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s868389297', 's500578682']
[9184.0, 8920.0]
[21.0, 24.0]
[176, 82]
p02699
u384124931
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w = map(int, input().split())\nif s =< w:\n print("unsafe")\nelse:\n print("safe")', 's,w = map(int, input().split())\nif s <= w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s643378643', 's908397416']
[8972.0, 9156.0]
[23.0, 20.0]
[82, 82]
p02699
u384744829
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b=map(int,input().split())\n\nif a>b\n\tprint("safe")\n\nelse:\n\tprint("unsafe")', 'a,b=map(int,input().split())\n \nif a>b:\n\tprint("safe")\n \nelse:\n\tprint("unsafe")']
['Runtime Error', 'Accepted']
['s056435729', 's422763492']
[8816.0, 8928.0]
[27.0, 27.0]
[75, 78]
p02699
u385825353
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["w, s = map(int, input().split(' '))\nif w>=s:\n print('unsafe')\nelse:\n print('safe')", "s, w = map(int, input().split(' '))\nif w>=s:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s407937645', 's199041497']
[9164.0, 9168.0]
[21.0, 21.0]
[84, 84]
p02699
u386122581
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s, w = map(int, input().split())\n\nif s > w:\n "safe"\nelse:\n "unsafe"', 's, w = map(int, input().split())\n\nif s > w:\n print("safe")\nelse:\n print("unsafe")']
['Wrong Answer', 'Accepted']
['s771078770', 's524297054']
[9048.0, 9088.0]
[26.0, 30.0]
[69, 83]
p02699
u388450899
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = input()\ncount = 0\n\nif len(S)<=200000:\n for i in range(len(S)-4):\n for j in range(i+5, len(S)+1):\n tmp = int(S[i:j])\n if tmp%2019==0:\n count += 1\n\nprint(count)', 'S = input()\ncount = 0\n\nfor i in range(len(S)-3):\n for j in range(i+3, len(S)+1):\n tmp = int(S[i:j])\n if tmp%2019==0:\n print(i, j)\n count += 1\n\nprint(count)', "S, W = map(int, input().split())\n\nif S>W:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s309565015', 's603006587', 's035650793']
[9124.0, 9164.0, 9060.0]
[24.0, 27.0, 24.0]
[209, 194, 85]
p02699
u391589398
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S, W = map(int, input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe'", "S, W = map(int, input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s236185944', 's139711157']
[8912.0, 9156.0]
[23.0, 20.0]
[86, 87]
p02699
u392172834
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["seep, wolf = map(int, input().rstrip())\n\nif seep > wolf:\n print('safe')\nelse:\n print('unsafe')", "seep, wolf = map(int, input().rstrip().split())\n \nif seep > wolf:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s024536009', 's838012510']
[9160.0, 9160.0]
[21.0, 21.0]
[96, 105]
p02699
u395894569
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s,w = map(int, input().split())\n\nprint('unsafe' if s=<w else 'safe')", "s,w = map(int, input().split())\nprint('unsafe' if s<=w else 'safe')"]
['Runtime Error', 'Accepted']
['s733727318', 's425489263']
[9016.0, 9156.0]
[22.0, 20.0]
[68, 67]
p02699
u396491595
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s, w = map(int, input().split())\nif (s <= w):\n print('unsafe')\n else:\n print('safe')", "s, w = map(int, input().split())\nif (s <= w):\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s419333510', 's639707818']
[8964.0, 9112.0]
[23.0, 21.0]
[86, 85]
p02699
u398173233
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['lis =[]\nabc =[]\ncount = 0\n\nN = int(input())\nlis =[lis.append(input()) for _ in range(N)]\n\nfor i in lis:\n if any(i == j for j in abc):\n pass\n else:\n abc.append(i)\n count += 1\n\nprint(count)\n ', "S,W = map(int,input().split())\n\nif S > W:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s685285308', 's995227645']
[9160.0, 9160.0]
[21.0, 24.0]
[219, 85]
p02699
u398203017
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S=int(input())\nW=int(input())\nif S>W:\n print("safe")\nelse:\n print("unsafe")', 'S,W=map(int,input().split())\nif S>W:\n print("safe")\nelse:\n print("unsafe")\n']
['Runtime Error', 'Accepted']
['s321445142', 's644739637']
[9160.0, 9092.0]
[23.0, 24.0]
[77, 77]
p02699
u398287469
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = int(input())\nw = int(input())\nif s < w :\n print("unsafe")\nelse :\n print("safe")', 's, w = map(int, (input().split()))\n\nif s > w :\n print("safe")\nelse :\n print("unsafe")']
['Runtime Error', 'Accepted']
['s072076760', 's261709658']
[9084.0, 9044.0]
[23.0, 31.0]
[89, 91]
p02699
u400692785
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = map(int, input().split())\nif S =< W:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif S <= W:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s055011084', 's782245957']
[8944.0, 9100.0]
[21.0, 22.0]
[83, 83]
p02699
u402077280
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s, w = int(input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")', 's, w = map(int,input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s051332555', 's843046640']
[9092.0, 9160.0]
[23.0, 24.0]
[82, 86]
p02699
u406405116
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s, w = input().split(' ')\ns = int(s)\nw = int(w)\n \nif s > w :\n print('safe')\nelse:\n pritn('unsafe')", "s, w = input()\ns = int(s)\nw = int(w)\n\nif s > w :\n print('safe')\nelse:\n pritn('unsafe')", "s, w = input().split(' ')\ns = int(s)\nw = int(w)\n \nif s > w :\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s375004093', 's635865017', 's239483363']
[9184.0, 9096.0, 9148.0]
[25.0, 23.0, 22.0]
[100, 88, 100]
p02699
u408071652
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['import itertools\ns = input()\ncount = 0\n\nfor i,j in itertools.combinations(range(0,len(str(s))+1),2):\n if int(s[i:j]) % 2019 ==0:\n count +=1\n print(s[i:j])\nprint(count)\n ', 'S, W =map(int,input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s924168015', 's188338541']
[9104.0, 8980.0]
[23.0, 20.0]
[185, 83]
p02699
u413369061
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = input()\na = [int(c) for c in s]\n\nb=""\ncount=0\n\nfor i in range(len(a)):\n for j in range(i,len(a)):\n for k in range(i,j+1):\n b += str(a[k])\n #print(b)\n if int(b)%2019 == 0:\n count+=1\n b=""\n\nprint(count)\n', 'n=int(input())\n\nmydic={"",0}\n\nfor i in range(n):\n a=input()\n mydic.update(a)\n\n#print(mydic)\nprint(len(mydic)-2)', 'a = list(map(int,input().split()))\ns=a[0]\nw=a[1]\n\nif s<=w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s181134560', 's192681873', 's789240628']
[9196.0, 9148.0, 9168.0]
[23.0, 22.0, 22.0]
[258, 117, 102]
p02699
u413632062
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s=input();c=0\nfor i in range(len(s)):\n for j in range(1,len(s)+1):\n if s[i:j]:\n if int(s[i:j])%2019==0:\n c+=1\nprint(c)', 's,w=map(int,input().split())\nprint(("un"if w>=s else "")+"safe")']
['Runtime Error', 'Accepted']
['s479000311', 's495300015']
[9176.0, 9164.0]
[24.0, 24.0]
[154, 64]
p02699
u414430923
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["if W >= S:print('unsafe')\nelse: print('safe')", "W,S = list(map(int,input().split()))\nif W >= S:print('unsafe')\nelse: print('safe')", 'n = int(input())\nd = []\nfor i in range(n):\n s = input()\n if not(s in d): d.append(s)\n\nprint(len(d))\n\n', "S,W = list(map(int,input().split()))\nif W >= S:print('unsafe')\nelse: print('safe')"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s253550184', 's484581702', 's743994096', 's351798943']
[9080.0, 9104.0, 9144.0, 9100.0]
[24.0, 21.0, 20.0, 22.0]
[45, 82, 107, 82]
p02699
u414682674
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["print('unsafe') if int(input()) <= int(input()) else print('safe')", "S, W = input().split(' ')\nprint('unsafe') if int(S) <= int(W) else print('safe')"]
['Runtime Error', 'Accepted']
['s148071074', 's728528447']
[9156.0, 9156.0]
[21.0, 20.0]
[66, 80]
p02699
u417610915
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = int(input())\nW = int(input())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")\n\n', 'S, W = map(int(input().split()))\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s462695928', 's634890790', 's268208266']
[9156.0, 8960.0, 9024.0]
[22.0, 20.0, 23.0]
[90, 87, 87]
p02699
u418197217
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = int(input())\nw = int(input())\nif w >= s:\n print("unsafe")\nelse:\n print(\'safe\')', 's = input()\nw = input()\nif w >= s:\n print("unsafe")\nelse:\n print(\'safe\')', 's, w = map(int, input().split())\nif w >= s:\n print(\'unsafe\')\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s366074593', 's977569252', 's751615678']
[9108.0, 9092.0, 9152.0]
[22.0, 20.0, 20.0]
[84, 74, 83]
p02699
u418808418
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = input()\n\nn = len(s)\n\nk = 0\n\nfor i in range(n - 4):\n for j in range(i+4, n+1):\n if int(s[i:j]) % 2019 == 0:\n k = k+1\n \nprint(k)', "a, b = map(int, input().split())\n\nif a > b :\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s921709360', 's760650352']
[9160.0, 9156.0]
[23.0, 23.0]
[162, 88]
p02699
u418826171
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S, W = map(int,input(.split()))\nif W >= S:\n print('unsafe')\nelse:\n print('safe')", "S, W = map(int,input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s826154466', 's989099356']
[8936.0, 9088.0]
[24.0, 28.0]
[86, 86]
p02699
u420399048
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S.W=map(int,input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")', 'S,W=map(int,input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s242831342', 's702270722']
[9088.0, 9160.0]
[20.0, 22.0]
[81, 81]
p02699
u422992358
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['if S<W:\n print("unsafe")\nelse:\n print("safe")', 'S=100\nW=10\n\nif S <= W:\n print("unsafe")\nelse:\n print("safe")', 'if S <= W:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\n\nif S <= W:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s056891779', 's793600671', 's949872929', 's190065281']
[9024.0, 9028.0, 9088.0, 9092.0]
[21.0, 20.0, 20.0, 20.0]
[47, 62, 50, 84]
p02699
u424467986
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["S, W = map(int, input().split(' '))\nprint('safe' if S <= W else 'unsafe')", "S, W = map(int, input().split(' '))\nprint('unsafe' if S <= W else 'safe')"]
['Wrong Answer', 'Accepted']
['s326046863', 's203288042']
[9164.0, 9168.0]
[22.0, 22.0]
[73, 73]
p02699
u426205961
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = list(map(int, input().split()))\nif S < W :\n print(unsafe)\nif S > W :\n print(safe)', 'S, W = list(map(int, input().split()))\nif S <= W :\n print("unsafe")\nif S > W :\n print("safe")']
['Runtime Error', 'Accepted']
['s905757999', 's413726779']
[9164.0, 9160.0]
[25.0, 21.0]
[94, 99]
p02699
u426506117
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = (int(x) for in input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")', 'S, W = (int(x) for x in input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s893960641', 's486101158']
[9012.0, 9152.0]
[21.0, 32.0]
[87, 90]
p02699
u427163848
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S,W = map(int, input().split())\nif S > W:\n print(safe)\nelse :\n print(unsafe)\n', 'S,W = map(int, input().split())\nif S > W:\n print(safe)\n else :\n print(unsafe)', "S,W = map(int, input().split())\nif S > W:\n print('safe')\nelse :\n print('unsafe')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s067932298', 's498534467', 's675423935']
[9160.0, 9016.0, 9028.0]
[23.0, 21.0, 21.0]
[79, 79, 83]
p02699
u429220960
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['A, B, C, D = map(int, input().split())\ncount = 0\nwhile True:\n if count % 2 == 0:\n C -= B\n else:\n A -= D\n count += 1\n if A <= 0:\n print("No")\n break\n elif C <= 0:\n print("Yes")\n break\n', 'a, b = map(int, input().split())\nif a <= b:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s661763943', 's211977058']
[9172.0, 9148.0]
[24.0, 24.0]
[240, 88]
p02699
u435385845
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w = map(int,input())\nprint("unsafe" if s <= w else "safe")', 's,w = map(int,input().split())\nprint("unsafe" if s <= w else "safe")']
['Runtime Error', 'Accepted']
['s988842837', 's691357003']
[9160.0, 9108.0]
[25.0, 24.0]
[60, 68]
p02699
u436660228
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s=input()\nw=input()\nss=int(s)\nww=int(w)\nif ww>=ss:\n print("unsafe")\nelse:\n print("safe")', 'if W>=S:\n print("unsafe")\nelse:\n print("safe")', 's,w=int(input()),int(input())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")', 's,w=map(int,input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s314826712', 's381139170', 's896916252', 's552646825']
[8972.0, 8972.0, 9052.0, 9164.0]
[24.0, 20.0, 24.0, 22.0]
[90, 48, 78, 77]
p02699
u438782979
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b = map(int,input().split())\nif b > a:\n priant("unsafe")\nelif a > b:\n print("safe")', 'a,b = map(int,input().split())\nif b >= a:\n print("unsafe")\nelif a > b:\n print("safe")']
['Runtime Error', 'Accepted']
['s988926144', 's976922568']
[9020.0, 9088.0]
[23.0, 22.0]
[91, 91]
p02699
u439063038
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s, w = input()\nif s <= w:\n print('unsafe')\nelse:\n print('safe')", "S, W = map(int, input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s594673701', 's130270460']
[8944.0, 9096.0]
[23.0, 25.0]
[65, 87]
p02699
u439706453
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['A=list(map(int,input.split()))\ns=A[0]\nw=A[1]\n\nif s>w:\n return safe\nelse:\n return unsafe', '\nA=list(map(int,input.split()))\ns=A[0]\nw=A[1]\n\nif s>w:\n print(safe)\nelse:\n print(unsafe)', '\ns,w=map(int,input().split())\n\n\nif s>w:\n print(safe)\nelse:\n print(unsafe)', '\ns,w=map(int,input.split())\n\n\nif s>w:\n print(safe)\nelse:\n print(unsafe)', '\ns,w=map(int,input().split())\n\n\nif s>w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s016798458', 's313489100', 's494454758', 's719286109', 's979967394']
[9036.0, 8996.0, 8984.0, 9028.0, 8988.0]
[23.0, 22.0, 21.0, 22.0, 23.0]
[93, 94, 79, 77, 83]
p02699
u441320782
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S,W=map(int,input().split())\nif W>=s:\n print("unsafe")\nelse:\n print("safe")', 'S,W=map(int,input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s761283759', 's521449996']
[9164.0, 9164.0]
[23.0, 24.0]
[77, 77]
p02699
u442850625
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["\nS = input()\nW = input()\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')", "S = input()\nW = input()\n\ndef sheep_wold(S=S, W=W):\n if S <= W:\n print('unsafe')\n else:\n print('safe')", "s, w = map(int, input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s481401951', 's754089242', 's582235382']
[9088.0, 9100.0, 9160.0]
[21.0, 22.0, 24.0]
[80, 121, 88]
p02699
u443151804
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w=[int(i) for i in input().split()]\nprint(["unsefe","safe"][s>w])', 's,w=[int(i) for i in input().split()]\nprint(["unsefe","safe"][s>w])', 's,w=[int(i) for i in input().split()]\nprint("unsafe" if w>=s else "safe")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s371243003', 's940313864', 's800047935']
[9160.0, 9088.0, 9176.0]
[21.0, 23.0, 21.0]
[67, 67, 73]
p02699
u443996531
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['def main():\n St = input()\n Va = St.split()\n S = Va[0]\n W = Va[1]\n if S>W:\n print("safe")\n else:\n print("unsafe")', 'St = input()\nVa = St.split()\nS = int(Va[0])\nW = int(Va[1])\nif S>W:\n print("safe")\nelse:\n print("unsafe")']
['Wrong Answer', 'Accepted']
['s289571879', 's787764352']
[9084.0, 9128.0]
[22.0, 19.0]
[124, 106]
p02699
u444165875
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b,c,d=map(int, input().split())\nwhile True:\n\tb -= c\n\tif c<=0:\n print"Yes"\n break\n\ta -=d\n\tif a<=0:\n print"No"\n break\n', 'S,W=map(int, input().split())\nprint("safe" if S>W else "unsafe")']
['Runtime Error', 'Accepted']
['s126889939', 's959284633']
[8988.0, 8972.0]
[23.0, 21.0]
[138, 64]
p02699
u445036147
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w = map(int,input().split())\n\nif s >= w :\n print(safe)\nelse:\n print(unsafe)', 's,w = map(int,input().split())\n\nif s > w :\n print("safe")\nelse:\n print("unsafe")\n']
['Runtime Error', 'Accepted']
['s678105850', 's205094479']
[9184.0, 9148.0]
[19.0, 21.0]
[79, 83]
p02699
u446785233
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['if 1 <= W <= 100 and 1 <= S <= 100 and W >= S :\n print ("unsafe")\nif 1 <= W <= 100 and 1 <= S <= 100 and W < S :\n print("safe")', 'if W >= S :\n print ("unsafe")\nif W < S :\n print("safe")', 'S, W = map(int, input().split())\nif 1 <= W <= 100 and 1 <= S <= 100 and W >= S :\n print ("unsafe")\nif 1 <= W <= 100 and 1 <= S <= 100 and W < S :\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s046746909', 's563305667', 's186800599']
[9028.0, 9084.0, 9176.0]
[25.0, 22.0, 23.0]
[129, 57, 162]
p02699
u447068988
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = int(input())\nw = int(input())\nif ( w >= s )\n\tprint("unsafe")\nelse\n\tprint("safe")', 'A, B, C, D = map(int, input().split())\nwhile (A>0 and C > 0):\n C = C - B\n if C <= 0:\n break\n A = A - D\nprint("Yes" if C<=0 else "No")', 's = int(input())\nw = int(input())\nif w > s\n\tprint("unsafe")\nelse\n\tprint("safe")', 's = int(input())\nw = int(input())\nif ( w >= s ):\n\tprint("unsafe")\nelse:\n\tprint("safe")', 's, w = map(int, input().split())\nif ( w >= s )\n\tprint("unsafe")\nelse\n\tprint("safe")', 's, w = map(int, input().split())\nif ( w >= s ):\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s331925002', 's587648546', 's596198906', 's776211515', 's811701665', 's893066139']
[8972.0, 9028.0, 8948.0, 9164.0, 8956.0, 9040.0]
[20.0, 25.0, 23.0, 25.0, 20.0, 21.0]
[84, 149, 79, 86, 83, 91]
p02699
u449446168
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['list = map(int, input().split())\nS = list[0]\nW = list[1]\nif W >= S: print("unsafe")\nelse: print("safe")', 'list = map(int, input().split())\nS = list[0]\nW = list[1]\nif W => S: print("unsafe")\nelse: print("safe")', 'list = map(int, input().split())\nS = list[0]\nW = list[1]\nif W >= S: print("unsafe")\nelse: print("safe")', 'S = input()\nL = len(S)\nN = 0\n\nfor i in range(L - 3):\n for j in range(4,L - i+1):\n P = int(S[i:i + j])\n if P % 3 == 0:\n if P % 2019 == 0: N += 1\n\nprint(N)', 'list = list(map(int, input().split()))\nS = list[0]\nW = list[1]\nif W >= S: print("unsafe")\nelse: print("safe")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s256126036', 's345264393', 's564987284', 's663068885', 's534830247']
[9096.0, 8956.0, 9100.0, 9100.0, 9160.0]
[24.0, 20.0, 23.0, 22.0, 25.0]
[103, 103, 103, 181, 110]
p02699
u452512115
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S, W = map(int, input().split())\n\nif W &gt;= S:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif W >= S:\n print(“unsafe”)\nelse:\n print(“safe”)', 'S, W = map(int, input().split())if W >= S: print("unsafe")else: print("safe")\n', 'S, W = map(int, input().split())\n\n\nif W >= S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s313716064', 's383104449', 's911199629', 's974422570']
[8952.0, 9016.0, 9008.0, 9160.0]
[24.0, 24.0, 19.0, 21.0]
[87, 91, 80, 85]
p02699
u458023139
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["a, b, c, d = list(map(int, input().split()))\nA = a - d\nB = c - b\nif A>=B:\n print('Yes')\nelse:\n print('No')", "w, s = input().split()\nif w>=s:\n\tprint('unsafe')\nelse:\n\tprint('safe')", "s, w = map(int, input().split())\nif w>=s:\n\tprint('unsafe')\nelse:\n\tprint('safe')\n "]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s212942217', 's642289818', 's825815833']
[9176.0, 8880.0, 9036.0]
[20.0, 26.0, 26.0]
[108, 69, 90]
p02699
u459965464
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['n = input()\n\nm = len(n)\n\nl = list()\n\nc = 0\n\nfor i in range(m):\n for j in range(m-i):\n l.append(i)\n l.append(i+j+2)\n\nfor k in range(len(l)//2):\n s = n[l[2*k]:l[2*k+1]]\n s = int(s)\n \n if s % 2019 == 0:\n c += 1\n\nprint(c)\n', "input().split()\ns = int(a[0])\nw = int(a[1])\n \nif w >= s:\n print('unsafe')\nelse:\n print('safe')", " input().split()\ns = int(a[0])\nw = int(a[1])\n \nif w >= s:\n print('unsafe')\nelse:\n print('safe')\n", " \na = input().split()\ns = int(a[0])\nw = int(a[1])\n\nif w >= s:\n print('safe')\nelse:\n print('unsafe')\n", "a = input()\ns = int(a[0])\nw = int(a[1])\n\nif w <= s:\n print('safe')\nelse:\n print('unsafe')\n", "a = input().split()\ns = int(a[0])\nw = int(a[1])\n \nif w >= s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s021032237', 's623495787', 's677025420', 's757302081', 's792958317', 's213221003']
[9176.0, 9032.0, 9000.0, 9156.0, 9148.0, 9100.0]
[25.0, 21.0, 20.0, 23.0, 24.0, 23.0]
[254, 100, 102, 106, 96, 104]
p02699
u465900169
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = int(input())\ntotal = 0\nS1 = str(S)\nfor i in range(0,S,2019):\n j = str(i)\n if j in S1:\n total+=1\nprint(total)', 'S,W = [int(x) for x in input().split()]\nif S>W:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s365109286', 's339289552']
[9172.0, 9160.0]
[19.0, 25.0]
[117, 87]
p02699
u466282478
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['input_line = int(input())\nS = input_line[0]\nW = input_line[1]\nif S > W:\n print("safe")\nelse:\n print("unsafe")', 'input_line = input()\nS = int(input_line[0])\nW = int(input_line[1])\nif S > W:\n print("safe")\nelse:\n print("unsafe")\n', 'input_line = input().split(" ")\nS = int(input_line[0])\nW = int(input_line[1])\nif S > W:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s116226474', 's551682360', 's058988286']
[9116.0, 9152.0, 9176.0]
[25.0, 25.0, 27.0]
[111, 117, 127]
p02699
u467881696
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['nm = list(map(int, input().split()))\nif (nm[0] =< nm[1]):\n print("unsafe")\nelse print("safe")', 'sw = list(map(int, input().split()))\nif sw[0] <= sw[1]:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s275900416', 's238593318']
[9036.0, 9164.0]
[22.0, 22.0]
[96, 99]
p02699
u468972478
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s, w = map(int, input().split())\nprint("unsafe" s <= w else "safe")', 's, w = map(int, input().split())\nprint("safe" s > w else "unsafe")', 's, w = map(int, input().split())\nprint("safe" if s > w else "unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s161469714', 's764285487', 's577120368']
[8900.0, 8908.0, 9156.0]
[25.0, 28.0, 30.0]
[67, 66, 69]
p02699
u469932052
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['# -*- coding: utf-8 -*-\na,b = input().split()\nif int(a) <= int(b):\n print("unsafe")\nelse:\n print("safe)', '# -*- coding: utf-8 -*-\na,b = input().split()\nif int(a) <= int(b):\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s507538846', 's264210045']
[8960.0, 9016.0]
[23.0, 23.0]
[105, 106]
p02699
u471163954
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s = input()\ncount = 0\nfor i in range(len(s)+1):\n for j in range(i+1, len(s)+1):\n if (int(s[i:j])%3 == 0 and int(s[i:j])%673 == 0):\n count += 1\n #print("ok", s[i:j])\nprint(count)', "s, w = map(int, input().split())\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s278294675', 's147218562']
[9072.0, 9160.0]
[22.0, 24.0]
[209, 83]
p02699
u472534477
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s,w=map(int(),input().split())\n \nif s>w:\n print("safe")\nelse:\n print("unsafe")', 's,w=map(int(),input().split())\n \nif s>w:\n\treturn("safe")\nelse:\n\treturn("unsafe")', 's,w=map(int(),input().split())\n\nif s>w:\n return "safe"\nelse:\n return "unsafe"', 's,w=map(int,input().split())\n \nif s>w:\n\treturn("safe")\nelse:\n\treturn("unsafe")', 's,w=map(int(),input().split())\n \nif s>w:\n return("safe")\nelse:\n return("unsafe")', 's,w=map(int,input().split())\n \nif s>w:\n\tprint("safe")\nelse:\n\tprint("unsafe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s228120183', 's379866446', 's564284732', 's615322183', 's851428905', 's472702922']
[9088.0, 8988.0, 9032.0, 9096.0, 9024.0, 9168.0]
[22.0, 24.0, 22.0, 22.0, 23.0, 21.0]
[80, 80, 79, 78, 82, 76]
p02699
u474922930
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['1 2\na, b= map(int , input().split())\nprint (a)\nprint (b)\nunsafe\ns = input()\nprint(s)\n', 's, w = map(int, input().split())\nif w <= s:\n print("unsafe")\nelse:\n print("safe")', 's, w = map(int, input() .split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s509541428', 's658056956', 's952675532']
[8852.0, 8976.0, 9188.0]
[21.0, 21.0, 22.0]
[85, 83, 88]
p02699
u475189661
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['S = int(input())\nW = int(input())\nif W < S:\n print("safe")\nelse:\n print("unsafe")', 'S, W = input().split()\nif int(S) > int(W):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s611439760', 's169428340']
[9100.0, 9092.0]
[22.0, 20.0]
[83, 82]
p02699
u483884608
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['a,b=map(int,input().split())\nif a<=b:\n print(unsafe)\nelse:\n print(safe)', 'a,b=map(int,input().split())\nif a<=b:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s985678084', 's642981199']
[9152.0, 9160.0]
[22.0, 22.0]
[73, 77]
p02699
u486074261
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['from sys import stdin\n\ns = int(stdin.readline().rstrip())\n\nsl = len(str(s))\ncnt = 0\n\nfor i in range(sl - 3):\n for j in range(i + 3, sl):\n num = s % (10 ** (sl - i)) // (10 ** (sl - j - 1))\n if num % 2019 == 0 and num > 0:\n cnt += 1\n\nprint(cnt)', 'from sys import stdin\n\ns,w = [int(x) for x in stdin.readline().rstrip().split()]\nprint("safe" if s > w else "unsafe")']
['Runtime Error', 'Accepted']
['s042423434', 's465538902']
[9192.0, 9072.0]
[24.0, 25.0]
[271, 117]
p02699
u488884575
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["s,w = map(int, input().split())\nif s>f:\n print('safe')\nelse:\n print('unsafe')", "s,w = map(int, input().split())\nif s>w:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s903680340', 's271026083']
[9096.0, 9116.0]
[24.0, 27.0]
[83, 83]
p02699
u490489966
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
["#A\ns, w = map(int, input().split())\nif w >= s:\n print('unsefe')\nelse:\n print('sefe')", "#A\ns, w = map(int, input().split())\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s557584603', 's108925669']
[9156.0, 9092.0]
[23.0, 21.0]
[90, 90]
p02699
u492959898
2,000
1,048,576
There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`.
['s, w = map(int, input().strip())\nif s > w:\n print("safe")\nelse:\n print("unsafe)\n ', 's, w = map(int, input().strip())\n\nif s > w:\n print("safe")\nelse:\n print("unsafe")\n', 's, w = map(int, input().strip())\nprint(s)\nprint(w)\n\n# print("safe")\n#else:\n# print("unsafe")\n', 's, w = map(int, input().strip())\nif s > w:\n print("safe")\nelse:\n print("unsafe")\n \n', '\n\n\n\n\na,b,c,d = map(int, input().split())\n\nwhile c > 0:\n c = c-b\u3000\n if c <= 0:\n print("Yes")\n a = a-d\n if a <= 0:\n print("No")\n ', 's, w = map(int, input().split())\nprint(s)\nprint(w)\n\n# print("safe")\n#else:\n# print("unsafe")\n', 's, w = map(int, input().strip())\nprint s\nif s > w:\n print("safe")\nelse:\n print("unsafe")', 's, w = map(int, input().split())\nif s > w:\n print("safe")\nelse:\n print("unsafe")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s009353946', 's140534113', 's160122358', 's180095858', 's409512172', 's763660955', 's821349855', 's305097235']
[9016.0, 9148.0, 9140.0, 9148.0, 8948.0, 9144.0, 9008.0, 9152.0]
[23.0, 20.0, 24.0, 22.0, 24.0, 23.0, 24.0, 26.0]
[90, 84, 105, 92, 230, 105, 90, 83]