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
u101350975
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 A > 0 and C > 0:\n C = C - B\n A = A - D\nif A == 0:\n ans = 'No'\nelse:\n ans = 'Yes'\nprint(ans)\n", "S, W = map(int, input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s208409968', 's864925726']
[9164.0, 9152.0]
[23.0, 22.0]
[149, 88]
p02699
u102461423
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 solve(n):\n ret = 0\n for i in range(n):\n ret += i\n return ret\n\ndef cc_export():\n from numba.pycc import CC\n cc = CC('my_module')\n cc.export('solve', '(i4,)')(solve)\n cc.compile()\n \n \nif sys.argv[-1] == 'ONLINE_JUDGE':\n cc_export()\n exit()\nelse:\n from my_module import solve\n\nprint(solve(100))", "import sys\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ns, w = map(int, read().split())\n\nprint('unsafe' if w >= s else 'safe')"]
['Wrong Answer', 'Accepted']
['s606207269', 's969015770']
[27388.0, 8824.0]
[107.0, 30.0]
[320, 188]
p02699
u105124953
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()\ns_li = list(s)\nlee = len(s_li)\n\ncount = 0\nketa = list(itertools.combinations([i for i in range(lee)], 2))\nfor k in keta:\n lk = list(k)\n #print(s_li[lk[0]:lk[1]+1])\n if int(''.join(s_li[lk[0]:lk[1]+1]))%2019 == 0:\n count += 1\nprint(count)", "s,w = map(int,input().split())\nif w>=s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s139420217', 's969887497']
[9196.0, 9180.0]
[23.0, 23.0]
[282, 83]
p02699
u106095117
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 = str(input())\ncount = 0\ns_len = len(s)\nfor i in range(s_len - 4):\n for j in range(i + 4, s_len + 1):\n if int(s[i:j]) % 2019 == 0:\n count += 1\nprint(count)', "s, w = map(int, input().split())\n\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s811064462', 's697192920']
[9168.0, 9080.0]
[22.0, 21.0]
[178, 89]
p02699
u107798522
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(input())\nS = []\nans = N\nfor i in range(N):\n S.append(input())\n flg = 0\n j = 0\n while(flg == 0 and j < i):\n if i != j:\n if len(S[j]) == len(S[i]):\n if S[j][0] == S[i][0]:\n if S[j] == S[i]:\n S[j] = ''\n ans = ans - 1\n flg = 1\n j = j+1\nprint(ans)", "S, W = map(int, input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s239082116', 's760716657']
[9048.0, 9100.0]
[23.0, 23.0]
[391, 87]
p02699
u108375911
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:\n print('safe')", "a,b = (map(int,input().split()))\nif a <= b:\n print('unsafe')\nif a > b:\n print('safe')"]
['Runtime Error', 'Accepted']
['s025667279', 's852646826']
[9012.0, 9160.0]
[20.0, 22.0]
[85, 91]
p02699
u110081213
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 w>=n:\n print('unsafe')\nelse:print('safe')", "s,w=[int(x) for x in input().split()]\nif w>=s:print('unsafe')\nelse:print('safe')"]
['Runtime Error', 'Accepted']
['s364833194', 's632626458']
[9160.0, 9164.0]
[24.0, 25.0]
[83, 80]
p02699
u110199424
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 = str(input())\n\ndata = []\n\ncount = 0\nfor i in range(len(S)):\n for j in range(i+4, min(i+7,len(S)+1)):\n if(int(S[i:j]) % 2019 == 0):\n count += 1\n data.append([i,j])\n\nfor i in range(len(data) - 1):\n if(data[i][1] == data[i+1][0]):\n count += 1\n\nprint(count)', 'S = str(input())\n\ndata = []\n\ncount = 0\nfor i in range(len(S)):\n for j in range(i+4, min(i+9,len(S)+1)):\n if(int(S[i:j]) % 2019 == 0):\n count += 1\n data.append([i,j])\n\nfor i in range(len(data) - 1):\n if(data[i][1] == data[i+1][0]):\n count += 1\n\nprint(count)', 'S, W = map(int, input().split())\n\nif(W >= S):\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s714087199', 's724455513', 's348370917']
[9212.0, 9144.0, 9172.0]
[23.0, 24.0, 19.0]
[298, 298, 89]
p02699
u111282258
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(s) for s in intput().split(" ")]\nif w >= s:\n print("unsafe")\nelse:\n print("safe")', 's, w = [int(s) for s in input().split(" ")]\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s730150396', 's766952175']
[8992.0, 9136.0]
[20.0, 23.0]
[95, 94]
p02699
u112007848
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`.
["suuji = list(input())\ncount = 0\nfor i in range(0, len(suuji)):\n for j in range(i+3, len(suuji) + 1):\n if (int)(''.join(suuji[i:j])) % 2019 == 0:\n count += 1\nprint(count)", 's, w = map(int, input().split(" "))\nprint("safe" if s > w else "unsafe")']
['Runtime Error', 'Accepted']
['s810572663', 's963328847']
[9184.0, 9028.0]
[22.0, 23.0]
[178, 72]
p02699
u112247039
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 input('w') >= input('s') else print('safe')", "print('unsafe') if input() <= input() else print('safe')", "s, w = list(map(int, input().split()))\nprint('safe' if s > w else 'unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s751861236', 's807971960', 's141078226']
[9080.0, 9080.0, 9028.0]
[21.0, 19.0, 24.0]
[62, 56, 75]
p02699
u112317104
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 solve():\n a, b, c, d = map(int, input().split())\n \n x = c / b\n y = a / d\n\n\n if c % b == 0 and x - y <= 1:\n return 'Yes'\n \n\n return 'Yes' if x < y else 'No'\n\nprint(solve())", "def solve():\n N, M = map(int, input().split())\n\n return 'safe' if N > M else 'unsafe'\n\nprint(solve())"]
['Runtime Error', 'Accepted']
['s737626892', 's810308286']
[9172.0, 9156.0]
[22.0, 22.0]
[207, 107]
p02699
u112623731
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()\nif s < w:\n print('safe')\nelse:\n print('unsafe')", "i = list(map(int, input().split()))\nif i[0] > i[1]:\n print('safe')\nelse:\n print('unsafe')"]
['Wrong Answer', 'Accepted']
['s234355438', 's796690703']
[9092.0, 9164.0]
[21.0, 24.0]
[72, 91]
p02699
u112629957
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"if S>W"unsafe"else)\n', 'S, W = map(int,input().split())\nif S>W:\n print("safe")\nelse S<=W:\n print("unsafe")', 'S, W = map(int,input().split())\nprint("safe"if S>W"unsafe"else)\n', 'S, W = map(int,input().split())\nprint("safe"if S>W else"unsafe")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s004705434', 's169449432', 's628799781', 's185434054']
[8948.0, 9012.0, 8952.0, 9092.0]
[20.0, 25.0, 25.0, 24.0]
[74, 84, 64, 65]
p02699
u116527980
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 math\na, b, c, d = map(int, input().split())\n\nif math.ceil(a/d) >= math.ceil(c/b):\n print("Yes")\nelse:\n print("No")', 'a, b = map(int, input().split())\nif a>b:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s752283422', 's701778283']
[9008.0, 9152.0]
[22.0, 22.0]
[127, 84]
p02699
u117741705
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(input())\ns = []\nfor _ in range(n):\n s.append(input())\nprint(len(set(s))', "s, w = input().split()\nif int(s) <= int(w):\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s743447047', 's726266550']
[8968.0, 9164.0]
[21.0, 22.0]
[80, 87]
p02699
u122557211
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\n n = int(input())\n db = []\n kinds = 0\n\n for i in range(10):\n tmp = []\n db.append(tmp)\n\n for i in range(n):\n str = input()\n num = len(str)\n\n if(not(str in db[num-1])):\n db[num-1].append(str)\n kinds = kinds + 1\n\n print(kinds)\n\nmain()\n', "def main():\n s,w = map(int,input().strip().split())\n if(w>=s):\n print('unsafe')\n else:\n print('safe')\n\nmain()\n"]
['Runtime Error', 'Accepted']
['s431482323', 's853026370']
[9192.0, 9092.0]
[23.0, 22.0]
[320, 133]
p02699
u126183307
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("safe" if s[0] < s[1] else "unsafe")', 's = list(map(int, input().split()))\nprint("safe" if s[0] > s[1] else "unsafe")']
['Wrong Answer', 'Accepted']
['s426086696', 's134836994']
[9028.0, 9076.0]
[21.0, 22.0]
[62, 78]
p02699
u129019798
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('safe')", "S,W=map(int,input().split())\nif W>=S:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s643966022', 's330855049']
[8880.0, 9000.0]
[27.0, 31.0]
[13, 77]
p02699
u129749062
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 break\n A = A - D\n if A <= 0:\n break\nprint('Yes' if A >= C else 'No')", "S, W = map(int,input().split())\ninput('unsafe' if S <= W else 'safe')", "S,W = map(int,input().split())\nprint('safe' if S > W else 'unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s245997850', 's630995970', 's068504498']
[9164.0, 9156.0, 9128.0]
[24.0, 23.0, 31.0]
[149, 69, 67]
p02699
u129798154
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()\n\nif int(s) > int(w):\n print('safe')\nelse:\n print('unsafe')", "arg = input()\ns = (arg.split())[0]\nw = (arg.split())[1]\n\n\nif int(s) > int(w):\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s961933684', 's347277607']
[9032.0, 9116.0]
[25.0, 22.0]
[84, 117]
p02699
u130900604
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`.
['# test', 's,w=map(int,input().split())\n\nif w>=s:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s655868320', 's850819060']
[9084.0, 9012.0]
[20.0, 21.0]
[6, 82]
p02699
u133356863
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)-3):\n for j in range(i+4,len(s)+1):\n if int(s[i:j])%2019==0:\n count+=1\n i=j\nprint(count)', "s,w=map(int,input().split())\nprint('unsafe' if w>=s else 'safe')"]
['Runtime Error', 'Accepted']
['s197637757', 's683592281']
[9116.0, 9156.0]
[24.0, 23.0]
[159, 64]
p02699
u135360096
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 w<s else "unself")', '#!/usr/bin/env python3\nimport sys\n\n\ndef solve(S: int, W: int):\n print("safe" if S > W else "unsafe")\n return\n\n\n# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n S = int(next(tokens)) # type: int\n W = int(next(tokens)) # type: int\n solve(S, W)\n\nif __name__ == \'__main__\':\n main()\n']
['Wrong Answer', 'Accepted']
['s985978979', 's210247166']
[9152.0, 9104.0]
[21.0, 25.0]
[67, 580]
p02699
u136719195
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`.
['numbers = input().split(" ")\nhealthOfT = int(numbers[0])\nstrengthOfT = int(numbers[1])\nhealthOfA = int(numbers[2])\nstrengthOfA = int(numbers[3])\nfor i in(0,1000):\n\thealthOfA=healthOfA-strengthOfT\n\tif healthOfA<=0:\n\t\ta=i\n\t\tbreak\nfor p in(0,1000):\n\thealthOfT=healthOfT-strengthOfA\n\tif healthOfT<=0:\n\t\tbreak\nif p<i:\n\tprint("No")\nelse:\n\tprint("Yes")', 's, w = map(int,input().split())\nif s <= w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s923001980', 's583543592']
[9188.0, 9140.0]
[19.0, 19.0]
[345, 86]
p02699
u141419468
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())\n\nif S < W:\n print('unsafe')\nelse:\n print('safe')", "S = int(input())\nW = int(input())\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n", "S, W = map(int,input().split())\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s233368576', 's304561417', 's339327730']
[8980.0, 9156.0, 9096.0]
[23.0, 23.0, 19.0]
[88, 90, 87]
p02699
u143322814
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 s,w = map(int, input().split())\n if s > w:\n print(\'safe\')\n else:\n print(\'unsefe\')\nif __name__ == "__main__":\n main()', 'def main():\n s,w = map(int, input().split())\n if s > w:\n print(\'safe\')\n else:\n print(\'unsafe\')\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s743465932', 's349530810']
[9160.0, 9160.0]
[19.0, 22.0]
[155, 155]
p02699
u144542168
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()),int(input())\n\nif s <= w:\n print("unsafe")\n\nelse:\n print("safe")\n', 'data = []\nwhile len(data) < 2:\n val = input()\n data = data + val.split(" ")\n #print(data)\n\nfor i,val in enumerate(data):\n data[i] = int(val)\n\ns,w = data[0],data[1]\n\nif s <= w:\n print("unsafe")\n\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s690466879', 's828122190']
[9104.0, 9140.0]
[25.0, 22.0]
[89, 233]
p02699
u151820863
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`.
["tems = list(map(lambda x: int(x), input().split()))\ns = items[0]\nw = items[1]\nprint('safe' if s > w else 'unsafe')", "items = list(map(lambda x: int(x), input().split()))\ns = items[0]\nw = items[1]\nprint('safe' if s > w else 'unsafe')"]
['Runtime Error', 'Accepted']
['s676873221', 's226518546']
[9160.0, 9052.0]
[24.0, 22.0]
[114, 115]
p02699
u152252650
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`.
['NUM = list(map(int,input().split()))\n\nif(NUM[0] >= NUM[1]):\n print("unsafe")\nelif(NUM[0] < NUM[1]):\n print("safe")\n', 'NUM = list(map(int,input().split))\n\nif(NUM[0] >= NUM[1]):\n print("unsafe")\nelif(NUM[0] < NUM[1]):\n print("safe")', 'NUM = list(map(int,input().split()))\n\nif(NUM[0] > NUM[1]):\n print("safe")\nelif(NUM[0] <= NUM[1]):\n print("unsafe")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s224336978', 's998640027', 's465146723']
[9116.0, 9012.0, 9052.0]
[30.0, 27.0, 27.0]
[117, 114, 117]
p02699
u152283104
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 __name__ == '__main__':\n S,W = map(int, input().split())\n if S >= W:\n print('unsafe')\n else :\n print('safe')\n", "if __name__ == '__main__':\n S,W = map(int, input().split())\n print(S,W)\n if S > W:\n print('safe')\n elif S <= W:\n print('unsafe')\n", "if __name__ == '__main__':\n S,W = map(int, input().split())\n print(S,W)\n if S >= W:\n print('safe')\n elif S < W:\n print('unsafe')\n", "if __name__ == '__main__':\n S,W = map(int, input().split())\n if S > W:\n print('safe')\n elif S <= W:\n print('unsafe')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s148465275', 's560342294', 's981605103', 's209935064']
[9136.0, 9160.0, 9160.0, 9156.0]
[23.0, 22.0, 24.0, 22.0]
[135, 155, 155, 140]
p02699
u152402277
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()))\n \nA = a[0]\nB = a[1]\nC = a[2]\nD = a[3]\n \nwhile B>0 and D>0:\n D = D - A\n if D <= 0:\n print("No")\n break\n B = B - D\n if B <= 0:\n print("Yes")\n break\n', 'a = list(map(int,input().split()))\n\nif a[1] >= a[0] :\n print("unsafe")\nelse: \n print("safe")']
['Runtime Error', 'Accepted']
['s635782330', 's223774699']
[9192.0, 9176.0]
[22.0, 24.0]
[197, 94]
p02699
u155051961
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 compare():\n S=int(input())\n W=int(input())\n if S<=W:\n print("unsafe")\n else:\n print("safe")', 'def compare():\n S=int(input())\n W=int(input())\n if S<=W:\n print("unsafe")\n else:\n print("safe")\ncompare()', 'def compare():\n a,b=map(int,input().split())\n\n if a <= b:\n print("unsafe")\n else:\n print("safe")\n\n\ncompare()']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s572571719', 's662950710', 's639118670']
[8908.0, 9160.0, 9100.0]
[20.0, 21.0, 23.0]
[105, 115, 131]
p02699
u155073626
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, a, b, c = (int(x) for x in input().split())\nwhile n > 0 and b > 0:\n n -= c\n if n < 0:\n print("No")\n break\n b -= a\n if b < 0:\n print("Yes")\n break\n\n', 'n, a = (int(x) for x in input().split())\nif n <= a:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s491055546', 's924050934']
[9108.0, 9184.0]
[24.0, 19.0]
[190, 96]
p02699
u156209487
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 if S >= W:\n print('safe')\n else:\n S < W:\n print('unsafe')", "S, W = map(int, input().split())\n if S >= W:\n print('safe')\n else S < W:\n print('unsafe')", "S, W = map(int, input().split())\n if S >= W:\n print('safe')\n else S < W\n print('unsafe')", "S, W = map(int, input().split())\n if S >= W:\n print('safe')\n else:\n S < W\n print('unsafe')", "S,W = input()\n if S < W:\n print('unsafe')\n else:\n S > W:\n print('safe')", "S,W = int(input())\n if S =< W:\n print('unsafe')\n else:\n S > W:\n print('safe')", "S, W = map(int, input().split())\n if S >= W:\n print('safe')\n else S < W\n print('unsafe')", "S,W = input()\n if S < W\n print('unsafe')\n else S > W\n print('safe')", "S,W = input()\n if S < W\n print('unsafe'):\n else S > W\n print('safe'):", "S, W = map(int, input().split())\n if S >= W:\n print('safe')\n else S < W:\n print('unsafe')", "s,w=map(int,input().split())\nif s>w:\n print('safe')\nelse :\n print('unsafe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s089503364', 's388729369', 's389979647', 's436334421', 's507262442', 's533711830', 's666029088', 's696345499', 's779604139', 's798322302', 's455151581']
[9008.0, 8940.0, 9004.0, 8952.0, 8952.0, 9004.0, 9004.0, 8932.0, 8992.0, 9004.0, 9120.0]
[23.0, 21.0, 25.0, 20.0, 21.0, 23.0, 20.0, 23.0, 23.0, 22.0, 23.0]
[114, 107, 106, 113, 94, 100, 106, 87, 89, 107, 81]
p02699
u159369286
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(input())\ns = set(map(int,input().split()))\na = len(s)\nprint(a)', 's,w = map(int,input().split())\nif s <= w :\n print("unsafe")\nelse :\n print("safe")']
['Runtime Error', 'Accepted']
['s975168918', 's833799088']
[9028.0, 9140.0]
[25.0, 27.0]
[70, 87]
p02699
u160452355
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()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\nwhile 1:\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\tbreak", "s, w = input(,)\nif s >= w:\n\tprint('safe')\nelse:\n\tprint('unsafe')", "a,b,c,d = input('').split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\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\tbreak", "s, w = input('').split()\ns= int(s)\nw=int(w)\nif s > w:\n\tprint('safe')\nelse:\n\tprint('unsafe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s142155344', 's812162684', 's841316084', 's219008619']
[9112.0, 9008.0, 9112.0, 9100.0]
[20.0, 22.0, 23.0, 22.0]
[151, 64, 154, 91]
p02699
u161432819
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()\nl = len(S)\n\ncount = 0\nfor i in range(l):\n for j in range(l):\n if i < j:\n new_s = int(S[i:j+1])\n if new_s % 2019 == 0:\n count += 1\n else:\n continue\n else:\n continue\nprint(count)', "S, W = [int(i) for i in input().split()]\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s234753289', 's738525629']
[9160.0, 9164.0]
[23.0, 20.0]
[229, 92]
p02699
u162565714
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')", 's, w = map(int, input().split())\n \nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s594531903', 's759268137', 's920698400']
[9164.0, 9116.0, 9144.0]
[24.0, 26.0, 29.0]
[84, 83, 89]
p02699
u170301438
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=(int(x) for x in input().split())\nif(s<=w):\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s443530761', 's749409880']
[9072.0, 9040.0]
[24.0, 24.0]
[79, 87]
p02699
u171600314
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\na = []\nfor l in sys.stdin:\n a.append(int(l))\np = input() .split()\ns = set()\nfor i in range(1, len(p)):\n s.add(p[i])\nprint(len(set(s)))', 's, w = map(int, (input().split()))\nif s <= w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s265420349', 's986971851']
[9180.0, 9100.0]
[23.0, 20.0]
[151, 89]
p02699
u172846967
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()\nimport numpy as np\nlength = len(S)\narr = np.array([int(S[i:j]) for i in range(0,length-3) for j in range(i+4, length+1)])\narr2 = arr % 2019\nprint(len(arr2)- np.count_nonzero(arr2))', 'S, W = map(int, input().split())\nif W >= S:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s267783546', 's649610015']
[27144.0, 9156.0]
[108.0, 22.0]
[192, 87]
p02699
u174203233
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("unsafe")\nprint("safe")', 'S, W = map(int, input().split())\n\nif S < W:\n print("unsafe")\nprint("safe")', 'S, W = map(int, input().split())\n\nif S < W/2:\n print("unsafe")\nprint("safe")', 'S, W = map(int, input().split())\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")']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s389181863', 's440971443', 's966704546', 's969840624', 's505343395']
[8948.0, 9160.0, 9160.0, 8944.0, 9156.0]
[22.0, 22.0, 21.0, 22.0, 22.0]
[76, 75, 77, 84, 84]
p02699
u174394352
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']
['s365355371', 's892188058']
[8972.0, 8972.0]
[23.0, 27.0]
[79, 78]
p02699
u175198591
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(input())\nS = [str(input()) for i in range(N)]\nprint(len(set(S)))', "S, W = map(int,input().split())\nprint('unsafe'if W >= S else 'safe')\n\n"]
['Runtime Error', 'Accepted']
['s300779867', 's330704276']
[9100.0, 9144.0]
[25.0, 23.0]
[72, 70]
p02699
u175217658
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())\n\nn = int(A/D)\nm = int(C/B)\n\nif n>m:\n x = n\nelse :\n x = m\n \nfor i in range(1, x+1):\n a = C - B\n t = A - D\n if a <= 0:\n print('Yes')\n break\n elif t <= 0:\n print('No')\n break", "A, B, C, D = map(int, input().split())\n\nn = int(A/D)\nm = int(C/B)\n\nif n<=m:\n print('No')\nelif n>m:\n print('Yes')", "S, W = map(int, input().split())\n\nif S>W:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s257873483', 's369930848', 's084228206']
[9172.0, 9168.0, 9156.0]
[21.0, 21.0, 20.0]
[259, 118, 85]
p02699
u179029337
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=int(input())\nW=int(input())\nif S<=W:\n print("unsafe")\nelse:\n print("safe")', 's=int(input())\nw=int(input())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")', '(S,W)=input()\nif S<=W:\n print("unsafe")\nelse:\n print("safe")', '(S,W)=input().split()\nS=int(S)\nW=int(W)\nif S<=W:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s112611616', 's263589187', 's466301330', 's762570409', 's976231812']
[9064.0, 9144.0, 9156.0, 9004.0, 9144.0]
[20.0, 21.0, 22.0, 20.0, 22.0]
[48, 78, 80, 62, 88]
p02699
u179581055
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('unsefe')", "s, w = map(int, input().split())\nif s > w:\n print('safe')\nelse:\n print('unsafe')"]
['Wrong Answer', 'Accepted']
['s241595920', 's380661962']
[9156.0, 9180.0]
[21.0, 22.0]
[86, 86]
p02699
u181195295
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: print('unsafe')\nelse: print('safe')", 'a ,b = map(int,input().split())\n\nif a <=b; print(“unsafe”)\nelse; print(“safe”)', 'a ,b = map(int,input().split())\n\nif a <=b:print(“unsafe”)\nelse:print(“safe”)\n', "s, w = map(int, input().split())\n\nif s>w: print('safe')\nelse: print('unsafe')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s245118301', 's582741040', 's953297030', 's975907784']
[9156.0, 9012.0, 8880.0, 9148.0]
[23.0, 21.0, 21.0, 21.0]
[77, 86, 85, 78]
p02699
u184902932
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())\nprint("unsafe" if w>=s else "safe")', 's,w = map(int, input().split())\nprint("unsafe" if w>=s else "safe")']
['Wrong Answer', 'Accepted']
['s960488949', 's265193468']
[9156.0, 9044.0]
[24.0, 23.0]
[67, 67]
p02699
u186121428
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())\nt_eq = -(-C//B)\na_eq = -(-A//D)\nif t_eq <= a_eq:\n print('Yes')\nelse:\n print('No')", "S, W = map(int, input().split())\nprint('unsafe' if S <= W else 'safe')"]
['Runtime Error', 'Accepted']
['s550183907', 's350808837']
[9144.0, 9116.0]
[20.0, 23.0]
[126, 70]
p02699
u187193817
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("safe")\nelse:\n print("unsafe")']
['Wrong Answer', 'Accepted']
['s966719351', 's539969213']
[9136.0, 9164.0]
[20.0, 22.0]
[87, 87]
p02699
u187621751
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(inpit())\n\nif S <= W:\n print('unsafe')\n elif S > W\n print('safe')\n ", "S, W = int(input())\n\nif S <= W:\n print('unsafe')\n elif S > W\n print('safe')\n \n", "S, W = int(inpit())\n\nif S <= W:\n print('unsafe')\nelse S > W:\n print('safe')\n \n", "S, W = map(int, input().split())\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n \n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s457682420', 's908234565', 's950644452', 's335176926']
[9008.0, 8952.0, 8948.0, 9148.0]
[24.0, 21.0, 24.0, 23.0]
[89, 90, 87, 94]
p02699
u195396655
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 out = 'unsafe'\nelse:\n out = 'safe'\n\nprint(out)", "s, w = map(int, input().split())\n\nif s < w\n out = 'unsafe'\nelse\n out = 'safe'\n\nprint(out)", "s, w = map(int, input().split())\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")', 's, w = map(int, input().split())\n\nif s <= w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s304474498', 's396539832', 's514670121', 's705123145', 's253788514']
[8948.0, 8888.0, 8900.0, 9012.0, 9160.0]
[24.0, 20.0, 23.0, 21.0, 22.0]
[96, 95, 86, 82, 84]
p02699
u196746947
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\nsys.setrecursionlimit(10000000)\ns=input()\nn=len(s)\ndef mod10(x):\n p=x//10000000\n q=x-10000000*p\n if p==0:\n return (10**q)%2019\n return ((10**q)*mod10(p))%2019\n\ndef T(i):\n if i==n-1:\n return int(s[n-1])\n return T(i+1)+10**(n-1-i)*int(s[i])\ndict={}\ndef modi(i,dict):\n if i in dict.keys():\n return dict[i]\n else:\n if i==n-1:\n dict[i]=int(s[i])\n return int(s[i])\n else:\n # c=modi(i+1,dict)+(10**(n-1-i)*int(s[i]))\n c=modi(i+1,dict)+(mod10(n-1-i)*int(s[i]))\n c=c%2019\n dict[i]=c\n return c\n\nmodnum={}\nfor i in range(n):\n #print(T(i))\n if int(s[i])==0:\n continue\n x=modi(i,dict)\n # print(T(i),x)\n if x not in modnum.keys():\n modnum[x]=1\n else:\n modnum[x]+=1\nsum=0\nfor md in modnum.keys():\n a=modnum[md]\n if md==0:\n sum+=a\n sum+=-(a*(a-1)//2)\n # print(a*(a-1)//2)\n sum+=a*(a-1)//2\n#print(modnum)\nprint(sum)\n', 's,w=map(int,input().split())\nif w<s:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s968046775', 's689710981']
[9136.0, 9080.0]
[21.0, 21.0]
[1008, 80]
p02699
u201993393
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\tprint("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif S <= W \n\tprint("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\nif S <= W:\n\tprint("unsafe")\nelse:\n\tprint("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s349849808', 's510338709', 's394750630']
[8984.0, 8936.0, 9100.0]
[23.0, 22.0, 24.0]
[84, 84, 81]
p02699
u202400119
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("unsafe")\nelse:\n print("safe")', 's, w = map(int, input().split())\n\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s755095651', 's899029756']
[9152.0, 9092.0]
[23.0, 22.0]
[88, 88]
p02699
u207400417
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')\n", "S, W = map(int, input().split())\nif S >= W:\n print('unsafe')\nelse:\n print('safe')\n", "S, W = map(int, input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s624812136', 's898075257', 's540818930']
[9148.0, 9084.0, 9148.0]
[21.0, 23.0, 24.0]
[84, 84, 84]
p02699
u211277872
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\tprint("safe")\nelse\n\tprint("unsafe")', 's, w = map(int, input().split()) \nif s > w\n\tprint ("safe")\nelse print ("unsafe")', 's, w = map(int, input().split()) \nif s > w:\n\tprint("safe")\nelse:\n\tprint("unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s817999194', 's826382357', 's731012601']
[8996.0, 9024.0, 9160.0]
[23.0, 24.0, 23.0]
[183, 184, 185]
p02699
u213314609
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())\nif ( w >= s):\n print "unsafe"\nelse:\n print "safe"', 's, w = map(int, input().split())\nprint("unsafe" if s<=w else "safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s435044572', 's503007550', 's336065038']
[8948.0, 8956.0, 9088.0]
[23.0, 21.0, 24.0]
[82, 84, 68]
p02699
u217303170
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())\nx = -(-c // b)\ny = -(-a // d)\nif x <= y:\n print('Yes')\nelse:\n print('No')\n", "s, w = map(int, input().split())\nif s <= w: print('unsafe')\nelse : print('safe')"]
['Runtime Error', 'Accepted']
['s577308840', 's101380408']
[9112.0, 9072.0]
[22.0, 21.0]
[119, 84]
p02699
u217385032
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\nif W>=(S/2):\n print('safe')\nelse:\n print('unsafe')\n\n", "def wolfsheep(S,W):\n if W>=(S/2):\n print('safe')\n else:\n print('unsafe')\n", "S,W = map(int, input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s104408020', 's985699824', 's984569145']
[8912.0, 9080.0, 9156.0]
[25.0, 22.0, 20.0]
[58, 81, 82]
p02699
u217729995
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, user_input().split())\nif w >= s:\n\tprint("unsafe")\nelse:\n\tprint("safe")', 'S, W = map(int, raw_input().split())\nif S >= W:\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']
['s319196978', 's342170483', 's801657115', 's976572295']
[9160.0, 9024.0, 8964.0, 9040.0]
[22.0, 22.0, 22.0, 22.0]
[88, 85, 87, 85]
p02699
u218841943
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`.
['try:\n s,w=map(int,input().split())\n if(w>=s):\n print("unsafe")\n else:\n print("safe")\nexcept:\n pass', "s, w = map(int, input().split())\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s319762749', 's705694401']
[8952.0, 9120.0]
[22.0, 20.0]
[109, 83]
p02699
u220085075
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(unt,input().split())\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")']
['Runtime Error', 'Accepted']
['s532959368', 's731832059']
[9020.0, 9160.0]
[18.0, 22.0]
[76, 78]
p02699
u220499476
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`.
['In [93]: s, w = map(int,input().split()) \n ...: print("{} {}".format(s,w)) \n ...: if s <= w: \n ...: print("unsafe") \n ...: else : \n ...: print("safe") ', 'In [93]: s, w = map(int,input().split()) \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") \n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s400030976', 's737716630', 's396918238']
[8952.0, 8864.0, 9160.0]
[24.0, 21.0, 23.0]
[175, 138, 90]
p02699
u224825657
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()\nfor i in map(int, s.split()):\n lis.append(i)\nif lis[0]>lis[1]:\n print("safe")\nelse:\n print("unsafe")', 's=input()\nlis=s.split()\nif int(lis[0])>int(lis[1]):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s225835029', 's401360722']
[9108.0, 9160.0]
[24.0, 21.0]
[119, 95]
p02699
u225596320
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')", "a=list(map(int,input().split()))\nif a[1]>=a[0]:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s319098270', 's740012935']
[9164.0, 9164.0]
[24.0, 22.0]
[82, 91]
p02699
u230717961
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().spli()]\nif s <= w:\n print("unsafe")\nelse:\n print("safe")', 's, w = [int(i) for i in input().split()]\nif s <= w:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s308705682', 's117905387']
[9100.0, 9156.0]
[22.0, 20.0]
[90, 92]
p02699
u234130745
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('unsafe')\nelse:\n print('safe')", "n, m = map(int, input().split())\nif m >= n:\n print('unsafe')\nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s426533690', 's995412851']
[9156.0, 9156.0]
[21.0, 21.0]
[87, 87]
p02699
u235027735
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`.
["\ndef solve():\n s = int(input())\n w = int(input())\n \n if (w >= s):\n print('unsafe')\n else :\n print('safe')\n \n return \n\nif __name__ == '__main__':\n solve()", "import sys\n\ndef solve():\n i = input()\n s, w = i.split()\n s = int(s)\n w = int(w)\n \n if (w >= s):\n print('unsafe')\n else :\n print('safe')\n \n return \n\nif __name__ == '__main__':\n solve()"]
['Runtime Error', 'Accepted']
['s366422737', 's716050165']
[9108.0, 9104.0]
[20.0, 20.0]
[191, 227]
p02699
u236536206
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 A>0:\n C-=B\n if C<=0:\n print("Yes")\n exit()\n A-=D\nprint("No")', 's,w=map(int,input().split())\nif s>w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s778124910', 's544845625']
[9052.0, 9128.0]
[20.0, 20.0]
[108, 80]
p02699
u237299453
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().split()\n\nif sw[0] > w[1]:\n print("safe")\nelse:\n print("unsafe")', 'sw = input().split()\n\nif int(sw[0]) > int(sw[1]):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s974426818', 's651895654']
[9036.0, 9164.0]
[23.0, 22.0]
[82, 93]
p02699
u238368607
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 = list(map(int, input().split()))\nif S[0] <= S[1]:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s700018382', 's328919392']
[9168.0, 9168.0]
[21.0, 20.0]
[84, 92]
p02699
u239653493
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()\nn=len(s)\ncount=0\na=[0 for i in range(n)]\nfor i in range(3,n):\n a[i]=10**i%2019\nif n<4:\n print(0)\nelse:\n for i in reversed(range(2,n)):\n k=int(s[i-2:i+1])\n h=3\n for j in reversed(range(0,i-2)):\n k=k+a[h]*int(s[j])\n h+=1\n if k%2019==0:\n count+=1\n print(count)', 's,w=map(int,input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s898543721', 's458344644']
[9200.0, 9028.0]
[23.0, 23.0]
[348, 81]
p02699
u240608977
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`.
['th,td,ah,ad = map(int,input().split())\nx,y = (td+ah-1)//td,(ad+th-1)//ad\nif(x<=y):print("Yes")\nelse:print("No")\n', 's,w = map(int,input().split())\nif(w>=s):print("unsafe")\nelse:print("safe")']
['Runtime Error', 'Accepted']
['s232408305', 's410145932']
[9088.0, 9164.0]
[22.0, 22.0]
[112, 74]
p02699
u242890210
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()))\nX = A / D\nY = C / B\nif (X - Y) > 1:\n print('Yes')\nelse:\n if Y > X:\n print('No')\n else:\n print('Yes')", "[A, B, C, D] = list(map(int, input().split()))\nX = A / D\nY = C / B\nif (X - Y) > 1:\n print('Yes')\nelse:\n if Y > X:\n print('No')\n else:\n print('Yes')", "[A, B, C, D] = list(map(int, input().split()))\nX = A / D\nY = C / B\nif (X - Y) > 1:\n print('Yes')\nelse:\n if Y > X:\n print('No')\n else:\n print('Yes')", "[S, W] = list(map(int, input().split()))\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s317891575', 's576322556', 's839525115', 's586924080']
[9172.0, 9152.0, 9108.0, 9124.0]
[23.0, 25.0, 21.0, 22.0]
[170, 170, 170, 95]
p02699
u244423127
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\nprint("safe" if a<b else "unsafe")', 'a,b=map(int,input().split())\n\nprint("safe" if a>b else "unsafe")']
['Wrong Answer', 'Accepted']
['s051053468', 's379598785']
[9084.0, 9144.0]
[22.0, 22.0]
[64, 64]
p02699
u249388402
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']
['s678668687', 's267488092']
[9100.0, 9164.0]
[22.0, 22.0]
[82, 83]
p02699
u252828980
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#L = list(map(int,input()split()))\nif W >= S:\n print("unsafe")\nelse:\n print("safe ")', 'S,W = map(int,input().split())\n#L = list(map(int,input()split()))\nif W >= S:\n print("unsafe")\nelse:\n print("safe ")']
['Runtime Error', 'Accepted']
['s719642836', 's761560634']
[8876.0, 9156.0]
[25.0, 21.0]
[120, 121]
p02699
u253389610
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\n\n\ndef count_multi(s, d):\n a = np.array([c for c in s]).astype(np.int)\n m = a # % d\n keta = 1\n count = np.count_nonzero(m == 0)\n while len(m) > 1:\n m = (10*m[:-1] + a[keta:]) % d\n keta += 1\n count += np.count_nonzero(m == 0)\n return count\n \nprint(count_multi(input().strip(), 2019))\n', 'import numpy as np\n\n\ndef count_multi(s, d):\n m = a = np.array([c for c in s]).astype(np.int)\n keta = 1\n count = np.count_nonzero(m == 0)\n while len(m) > 1:\n m = (m[:-1]*10 + a[keta:]) % d\n keta += 1\n count += np.count_nonzero(m == 0)\n return count\n \nprint(count_multi(input().strip(), 2019))\n', 'import numpy as np\n\n\ndef count_multi(s, d):\n m = a = np.array([int(c) for c in s]) # .astype(np.int)\n keta = 1\n count = np.count_nonzero(m == 0)\n while len(m) > 1:\n m = (m[:-1]*10 + a[keta:]) % d\n keta += 1\n count += np.count_nonzero(m == 0)\n return count\n \nprint(count_multi(input().strip(), 2019))\n', 's, w = [int(x) for x in input().strip().split()]\nprint("safe" if s > w else "unsafe")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s107024896', 's364640182', 's510099347', 's987555354']
[27148.0, 27092.0, 27068.0, 9140.0]
[107.0, 107.0, 110.0, 21.0]
[324, 313, 322, 86]
p02699
u256901785
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)\n", "s,w = map(int,input().split(' '))\nif w >= s:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s972690265', 's180353276']
[9060.0, 9108.0]
[23.0, 20.0]
[81, 85]
p02699
u259861571
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()),int(input())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')", "# AtCoder\nS, W = map(int, input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s565551656', 's341908622']
[9160.0, 9092.0]
[23.0, 22.0]
[80, 98]
p02699
u260068288
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())\na=a-d\nc=c-b\nif c>=a:\n print("No")\nelse:\n print("Yes")', 's,w=map(int,input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s951753364', 's729841773']
[9076.0, 9096.0]
[24.0, 23.0]
[92, 83]
p02699
u262065571
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())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')\n ", "s, w = map(int, input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s121767781', 's943828732']
[9028.0, 9028.0]
[22.0, 21.0]
[78, 83]
p02699
u262481526
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 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", "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", "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", "S, W = map(int, input().split())\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')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s236472536', 's502562014', 's571774100', 's786852974', 's727596725']
[9104.0, 9172.0, 8996.0, 9020.0, 9168.0]
[24.0, 25.0, 24.0, 20.0, 20.0]
[145, 145, 149, 86, 86]
p02699
u264505326
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 1:\n c-=b\n if a<=0 or c<=0:\n break\n a -= d\n if a<=0 or c<=0:\n break\nprint('Yes' if a>0 else 'No')\n", "n,m=map(int,input().split())\nprint('unsafe' if m>=n else 'safe')"]
['Runtime Error', 'Accepted']
['s466288743', 's073976729']
[9168.0, 9152.0]
[24.0, 21.0]
[164, 64]
p02699
u264988409
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 return print('safe')\nelse:\n return print('unsafe')\n", "if S > W:\n print('safe')\nelse:\n print('unsafe')", "S = int(input())\nW = int(input())\n\nif S>W:\n print('safe')\nelse:\n print('unsafe')\n", "import random\n\nS = random.randint(1, 100)\nW = random.randint(1, 100)\n\nif S>W:\n print('safe')\nelse:\n print('unsafe')\n ", "S = input()\nW = input()\n\nif S > W:\n print('safe')\nelse:\n print('unsafe')", "import random\n\nS = random.randint(1, 100)\nW = random.randint(1, 100)\n\nif S>W:\n print('safe')\nelse:\n print('unsafe')", "S, W = input().split()\n\nS = int(S)\nW = int(W)\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s081788880', 's297447207', 's326799389', 's782844721', 's838401417', 's859627241', 's801262649']
[9020.0, 9024.0, 9160.0, 9408.0, 9056.0, 9532.0, 9024.0]
[21.0, 23.0, 24.0, 22.0, 25.0, 22.0, 22.0]
[64, 49, 83, 124, 74, 117, 102]
p02699
u270886147
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 = str(input())\n\nS_list =list(S)\n\n\nA = 0\nfor i in range(0,len(S_list)-1):\n for j in range(i+3,len(S_list)+1):\n P = 0\n S_list_P = S_list[i:j]\n for k in range(0,j-i):\n P += int(S_list_P[k])* 10 ** (j-i-k-1)\n\n if P % 2019== 0:\n A += 1\n\n\n\nprint(A)\n', 'S,W = map(int,input().split())\n\nif S <= W:\n print("unsafe")\n\nelse :\n print("safe")\n']
['Runtime Error', 'Accepted']
['s784061159', 's796190622']
[9180.0, 9148.0]
[20.0, 22.0]
[298, 89]
p02699
u271123940
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("safe")\nif w > s:\n print("unsafe")\nif s == w:\n print("unsafe")', 's, w = (for i in input().split())\nif s > w:\n print("safe")\nif w >= s:\n print("unsafe")', 's, w = int(input().split())\nif s > w:\n print("Safe")\nif w > s:\n print("Unsafe")', 's, w = (int(x) for x in input().split())\nif s > w:\n print("safe")\nif w >= s:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s609109531', 's849325270', 's853890649', 's858268685']
[9100.0, 9016.0, 9016.0, 9160.0]
[23.0, 23.0, 23.0, 22.0]
[110, 88, 81, 95]
p02699
u271430213
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`.
['cnt=0\nS=str(input())\nmc=[0]*2019\nL=len(S)\n\ntg=0\ndigit=1\nfor s in S[::-1]:\n tg+=int(s)*digit\n mt=tg%2019\n if mt==0:cnt+=1\n cnt+=mc[mt]\n mc[mt]+=1\n digit*=10\n \nprint(cnt)\n', "S,W=map(int,input().split())\n\nif W>=S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s183788308', 's916299399']
[9200.0, 9160.0]
[24.0, 21.0]
[190, 82]
p02699
u274615057
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`.
['\ndef main():\n s, w = map(int, input())\n if w >= s:\n print(\'unsafe\')\n else:\n print(\'safe\')\n\n\nif __name__ == "__main__":\n main()\n', '\ndef main():\n s, w = map(int, input())\n if w >= s:\n print(\'unsafe\')\n else:\n print(\'safe\')\n\n\nif __name__ == "__main__":\n main()\n', '\ndef main():\n s, w = map(int, input().split())\n if w >= s:\n print(\'unsafe\')\n else:\n print(\'safe\')\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s696020761', 's732400662', 's831015568']
[9152.0, 9152.0, 9152.0]
[26.0, 27.0, 31.0]
[153, 153, 161]
p02699
u277314812
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")']
['Wrong Answer', 'Accepted']
['s610252827', 's615239571']
[9012.0, 9028.0]
[25.0, 21.0]
[87, 87]
p02699
u278855471
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())\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", "S, W = map(int, input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s938673401', 's717078905']
[9088.0, 9104.0]
[23.0, 23.0]
[333, 88]
p02699
u287660527
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(s)\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')", "s == int(input())\nw == int(input())\n\nif s<=w:\n print('unsafe')\nelse:\n print('safe')", "s,w = map(int,split.input())\n\n\nif s<=w:\n print('unsafe')\nelse:\n print('safe')", "s = int(input())\nw = int(input())\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s132926874', 's148820392', 's203669705', 's488445074', 's958627743', 's656685969']
[9104.0, 8940.0, 9056.0, 8968.0, 9044.0, 9128.0]
[30.0, 19.0, 27.0, 25.0, 25.0, 33.0]
[89, 78, 85, 79, 83, 80]
p02699
u293326264
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()\nif w >= s:\n print('unsafe'):\nelse:\n print('safe')\n ", "s, w = [int(x) for x in input().split()]\n\nif w >= s:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s524666898', 's048560901']
[8936.0, 9144.0]
[20.0, 22.0]
[83, 97]
p02699
u296989351
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())\nif S > W:\n\tprint('safe')\nelse:\n\tprint('unsafe')", "S, W = map(int, input().split())\nif S > W:\n\tprint('safe')\nelse:\n\tprint('unsafe')"]
['Runtime Error', 'Accepted']
['s763329896', 's499093501']
[9092.0, 9044.0]
[21.0, 24.0]
[67, 80]
p02699
u301818867
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\u3000<=\u3000W:\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', 'Runtime Error', 'Accepted']
['s348029255', 's805474200', 's080111351']
[8780.0, 8920.0, 9152.0]
[22.0, 19.0, 20.0]
[81, 87, 83]
p02699
u305917597
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 = [i for i in input().split(" ")]\nif (W>=S) :\n print("safe")\nelse:\n print("unsafe")', 'S,W = [int(i) for i in input().split(" ")]\nif (S<=W) :\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s103678873', 's186071322']
[9032.0, 9100.0]
[23.0, 22.0]
[93, 98]
p02699
u310245677
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')", "s,w=map(int,input().split())\nif s > w:\n print('safe')\nelse:\n print('unsafe')"]
['Wrong Answer', 'Accepted']
['s704719877', 's828255156']
[9156.0, 9128.0]
[21.0, 22.0]
[78, 78]