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
u711238850
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 x,y = tuple([int(t)for t in input().split()])\n\n if x>=y:\n print("unsafe")\n else:\n print("safe")\n\n\nif __name__ == "__main__":\n main()', 'def main():\n x,y = tuple([int(t)for t in input().split()])\n\n if x<=y:\n print("unsafe")\n else:\n print("safe")\n\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s482719771', 's527389063']
[9128.0, 9160.0]
[23.0, 22.0]
[171, 171]
p02699
u716777673
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)\nprint(w)', 's, w = map(int, input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s066813890', 's069015133']
[9064.0, 9072.0]
[20.0, 23.0]
[48, 83]
p02699
u718026578
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 "unsafe"\nelse:\n return "safe"\n', 'if S<= W:\n print("unsafe")\n else:\n print("safe)\n ', 's, w = map(int, input().split()) \nif w>=s:\n\tprint("unsafe") \nelse:\n\tprint("safe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s099505339', 's487374517', 's695059723']
[9016.0, 8936.0, 9080.0]
[22.0, 22.0, 21.0]
[51, 58, 81]
p02699
u718270795
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, W)\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']
['s927039030', 's774443954']
[9160.0, 9156.0]
[22.0, 23.0]
[99, 87]
p02699
u722875240
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())\nprint("Yes" if a <= b else "No")', 'a, b = map(int, input().split())\nprint("safe" if a > b else "unsafe")']
['Wrong Answer', 'Accepted']
['s092131370', 's997751198']
[9140.0, 9088.0]
[22.0, 20.0]
[65, 69]
p02699
u723065526
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())\nans = "Yes"\ncurA = A\ncurC = C\nfor i in range(max(A,C)):\n curC = curC-B\n if(curC<=0):\n ans = "Yes"\n break\n curA = curA-D\n if(curA<=0):\n ans = "No"\n break\nprint(ans)', 'S, W = map(int,input().split())\nans = "safe"\nif(S<=W):\n ans = "unsafe"\nprint(ans)']
['Runtime Error', 'Accepted']
['s619747880', 's420273544']
[9180.0, 9100.0]
[25.0, 22.0]
[218, 82]
p02699
u723583932
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']
['s480493508', 's639437079']
[9072.0, 9160.0]
[20.0, 24.0]
[82, 82]
p02699
u725359833
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(""))\nres = "safe"\nif w >= s:\n res = "unsafe"\nprint(res)\n', 's, w = map(int, input().split(" "))\nres = "safe"\nif w >= s:\n res = "unsafe"\nprint(res)\n']
['Runtime Error', 'Accepted']
['s552737943', 's617513773']
[9084.0, 9032.0]
[25.0, 21.0]
[89, 90]
p02699
u727051308
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 (int12,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")\nelse :\n print("unsafe")']
['Runtime Error', 'Accepted']
['s347480312', 's315030856']
[8968.0, 9096.0]
[21.0, 23.0]
[85, 82]
p02699
u727726778
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("unafe")\nelse:\n print("safe")', 's, w = map(int, input().split())\nif w>s:\n print("unafe")\nelse:\n print("safe")', 's, w = map(int, input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s045669883', 's142476492', 's296801336']
[9180.0, 9160.0, 9152.0]
[22.0, 20.0, 22.0]
[84, 83, 85]
p02699
u730747703
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 W >= S else "safe"', 'S,W = map(int, input().split())\nprint "unsafe" if W >= S else "safe"\n', 'S, W = map(int, input().split())\nprint("unsafe" if W >= S else "safe")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s049984302', 's352991607', 's313238258']
[8984.0, 8948.0, 9148.0]
[20.0, 22.0, 22.0]
[66, 69, 71]
p02699
u733167185
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())\nif c // b >= a // d:\n print('Yes')\nelse:\n print('No')", "s, w = map(int, input().split())\nif s > w:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s577778836', 's371014353']
[9168.0, 9008.0]
[22.0, 23.0]
[98, 86]
p02699
u733465500
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 int(S) =< int(W):\n print("safe")\nelse:\n print("unsafe")', 'S, W = input().split()\nif int(S) <= int(W):\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s206397015', 's170093524']
[8996.0, 9136.0]
[21.0, 21.0]
[83, 84]
p02699
u734252743
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\nS = input()\n\ns = []\nfor i in S:\n s.append(int(i))\ncount = 0\n\nif (len(s) < 4 ):\n print(0)\n sys.exit()\n\nfor i in range(len(s)):\n j = i\n target = s[i]\n for k in range(len(s)-i):\n j += 1\n if(j >= len(s)):\n break\n target = target*10\n target += s[j]\n if ( target%2019 == 0):\n count += 1\nprint(count)\n', 's, w = map(int, input().split())\n\nif (s > w):\n print("safe")\nelse:\n print("unsafe")\n']
['Runtime Error', 'Accepted']
['s660385160', 's119941855']
[9208.0, 9132.0]
[23.0, 22.0]
[381, 90]
p02699
u734524514
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())\nif c//b + 1 > a//d:\n print("No")\nelse:\n print("Yes")', 's, w = map(int, input().split())\nif(s>w):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s659080101', 's179643878']
[9164.0, 9104.0]
[22.0, 21.0]
[93, 81]
p02699
u735891571
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("usnafe")\nelse:\n print("safe")', 'S, W = map(int,input().split())\nif S <= W:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s145209381', 's355376751']
[9160.0, 9100.0]
[21.0, 24.0]
[86, 86]
p02699
u735975757
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())\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")\n']
['Runtime Error', 'Accepted']
['s788056696', 's417038210']
[9016.0, 9076.0]
[23.0, 22.0]
[68, 81]
p02699
u736443076
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\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n s, w = map(int, rl().split())\n if ans = s > w :\n print('safe')\n\u3000\u3000else:\n\u3000\u3000 print('unsafe')\n \n\nif __name__ == '__main__':\n solve()\n", "s, w = map(int, input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s148524709', 's629805003']
[8928.0, 9152.0]
[23.0, 28.0]
[242, 88]
p02699
u736564905
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()))\nif num[0]<num[1]:\n print("safe")\nelse:\n print("unsafe")', 'num=list(map(int,input().split()))\nif num[0]>num[1]:\n print("safe")\nelse:\n print("unsafe")']
['Wrong Answer', 'Accepted']
['s469976058', 's008494073']
[9160.0, 9156.0]
[22.0, 22.0]
[92, 92]
p02699
u737508101
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\ndef main():\n\tA,B,C,D = map(int, input().split())\n\twhile True:\n\t\tC - B\n\t\tif C <= 0:\n\t\t\tprint("Yes")\n\t\tA - D\n\t\tif A <= 0:\n\t\t\tprint("No")\n\t\t\tsys.exit()\nmain()\n', 'S,W = map(int, input().split())\n\nif W >= S:\n\tprint("unsafe")\n\nelif W < S:\n\tprint("safe")\n']
['Runtime Error', 'Accepted']
['s465340474', 's197293139']
[9028.0, 9152.0]
[25.0, 23.0]
[167, 89]
p02699
u740157634
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(:)\nS = int(s)\nW = int(w)\nif S<=W:\n print("unsafe")\nelse:\n print("safe")', 's = input(:)\nw = input(:)\nS = int(s)\nW = int(w)\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")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s433515460', 's766214523', 's627309055']
[8880.0, 8948.0, 9064.0]
[25.0, 22.0, 25.0]
[96, 96, 89]
p02699
u740852847
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# print(s[2:len(s)])\nl = len(s)\ncount = 0\n\n\n# for i, j in itertools.combinations(range(len(s)+1), 2):\n# if(int(s[i:j]) % 2019 == 0):\n# count = count + 1\n#\n# print(count)\n\nfor i in range(2019):\n count2 = 0\n for j in range(l):\n if int(s[j:l]) % 2019 == i:\n count2 = count2 + 1\n count = count + (count2 * (count2 - 1)) / 2\nprint(int(count))', 's = input()\ncount = 0\n\nfor i in range(len(s)):\n for j in range(len(s) - i):\n if int(s[i:i+j+1]) % 2019 == 0:\n count = count + 1\n\nprint(count)', 's, w = map(int, input().split())\nif s > w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s788572034', 's864358103', 's327599564']
[9164.0, 9180.0, 9164.0]
[20.0, 20.0, 20.0]
[388, 162, 82]
p02699
u741579801
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())\n\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'W, S = input()\n\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")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s459784822', 's591355969', 's843381303']
[9164.0, 9008.0, 9164.0]
[22.0, 22.0, 23.0]
[84, 66, 84]
p02699
u749614185
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())\nW=int(input())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")', "S,W = map(int,input().split())\n \nif S<=W:\n print('unsafe')\nelse:\n print('safe')\n\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s303344337', 's372926386', 's575866607']
[9068.0, 9096.0, 9088.0]
[23.0, 28.0, 27.0]
[78, 78, 83]
p02699
u751539777
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')\nif S < W:\n print('unsafe')", 's, w = map(int, input().split())\nif s > w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s915644130', 's964449115']
[8988.0, 9136.0]
[19.0, 19.0]
[91, 86]
p02699
u760446276
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=int(input())\nw=int(input())\nif(s<=w):\n print("unsafe")\nif(s>w):\n print("safe")', "s,w =map(int,input().split())\nif(s<=w):\n print('unsafe')\nif(s>w):\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s423997820', 's921347253', 's632611282']
[9160.0, 9160.0, 9168.0]
[23.0, 21.0, 23.0]
[83, 86, 86]
p02699
u761683368
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 inputs = input()\n\n roop_num = len(inputs)\n\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input()\n\n roop_num = len(inputs)\n if roop_num >= 1000000000\n cnt = 0\n\n else:\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input()\n\n roop_num = len(inputs)\n if roop_num >= 80000:\n cnt = 0\n\n else:\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input()\n\n roop_num = len(inputs)\n if roop_num >= 90000:\n cnt = 0\n\n else:\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input()\n\n roop_num = len(inputs)\n\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input()\n\n roop_num = len(inputs)\n if roop_num >= 100000:\n cnt = 0\n\n else:\n cnt = 0\n flag = False\n for start in range(roop_num-3):\n roop_num_end = roop_num - start\n ans_list = []\n ans_list = [int(inputs[start:end+start+4]) for end in range(roop_num_end-3) if int(inputs[start:end+start+4]) % 2019 == 0]\n\n cnt += len(ans_list)\n\n print(cnt)\n\nif __name__ == '__main__':\n main()", "def main():\n inputs = input().split(' ')\n sheep = int(inputs[0])\n wolf = int(inputs[1])\n\n if sheep > wolf:\n print('safe')\n\n else:\n print('unsafe')\n\nif __name__ == '__main__':\n main()"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s425079609', 's438680327', 's522838852', 's564809696', 's740088281', 's961317508', 's487423819']
[9084.0, 8944.0, 9140.0, 9200.0, 9208.0, 9000.0, 9044.0]
[22.0, 19.0, 21.0, 23.0, 19.0, 21.0, 22.0]
[404, 492, 484, 484, 403, 485, 214]
p02699
u763383823
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 = list()\nfor i in range(N):\n x = input()\n S.append(x)\n \nA = set(S)\nprint(len(A))', "S,W = map(int,input().split())\nif W/S >= 2:\n print('unsafe')\nelse:\n print('safe')", "S,W = map(int, open(0).read().split())\nif S > W:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s634926439', 's927434145', 's455266014']
[9152.0, 9160.0, 9140.0]
[23.0, 20.0, 22.0]
[102, 83, 88]
p02699
u763534217
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 >= s:\n print("unsefe")\nelse:\n print("safe")\n ', 's, w = map(int, input().split())\n \nif w >= s:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s359186807', 's355187032']
[9120.0, 8980.0]
[23.0, 20.0]
[87, 85]
p02699
u763628696
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`.
['\na = list.map(int,input().split())\nif a[1] >= a[0]:\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']
['s754350629', 's601846982']
[9040.0, 9104.0]
[25.0, 30.0]
[91, 91]
p02699
u764604930
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=eval(input(""))\ns=eval(input(""))\nif w>=s:\n print("unsafe")\nelse:\n print("safe")', 'w=eval(input())\ns=eval(input())\nif(w>=s):\n print("unsafe")\nelse:\n print("safe")', 'li = str.split()\nif(eval(li[0])<=eval(li[1])):\n print("unsafe")\nelse:\n print("safe")', 'w=eval(input(""))\ns=eval(input(""))\nif(w>=s):\n print("unsafe")\nelse:\n print("safe")', 'str = input("")\nli = str.split()\nif(eval(li[0])<=eval(li[1])):\n print("unsafe")\nelse:\n print("safe")\n ']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s048456189', 's273029498', 's585302645', 's760627099', 's032108435']
[9096.0, 9096.0, 9088.0, 8964.0, 9096.0]
[22.0, 26.0, 21.0, 24.0, 23.0]
[84, 81, 86, 85, 105]
p02699
u768256617
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>=s:\n print('safe')\n \nelse:\n print('unsafe')", "s,w=map(int,input().split())\n \nif w>=s:\n print('unsafe')\n \nelse:\n print('safe')"]
['Wrong Answer', 'Accepted']
['s054542727', 's593382391']
[9056.0, 9064.0]
[23.0, 22.0]
[81, 82]
p02699
u768636516
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('safe' if S > W else 'unsafe')", "S,W = map(int,input().split())\nprint('safe' if S > W else 'unsafe')"]
['Runtime Error', 'Accepted']
['s869033949', 's022023418']
[9100.0, 9044.0]
[25.0, 28.0]
[59, 67]
p02699
u771538568
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()\np=input()\np=p[0:-1]\nif n==p:\n print("Yes")\nelse:\n print("No")', 'n, k = map(int, input().split())\nif n<=k:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s255929640', 's585540428']
[9040.0, 9172.0]
[23.0, 24.0]
[79, 82]
p02699
u773077120
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()\nprint(sum([int(S[i:j]) % 2019 == 0 for i in range(len(S)) for j in range(i, len(S) + 1) if i < j]))', "A, B, C, D = map(int, input().split())\nwhile A > 0 and C > 0:\n C -= B\n A -= D\nprint('Yes' if C <= 0 else 'No' )", "S, W = map(int, input().split())\nprint('safe' if S > W else 'unsafe')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s373056624', 's631998188', 's867607822']
[9204.0, 9168.0, 9140.0]
[23.0, 24.0, 24.0]
[112, 113, 69]
p02699
u773865844
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\nlines = sys.stdin.readlines()\n\nS = str(lines[0])\nX = []\nA = []\np =1\nfor i in range(len(S)):\n A.append(p)\n p = p*10%2019\n', 'import sys\nlines = sys.stdin.readlines()\n\nS = str(input())\n\n\nA = []\np =1\nfor i in range(len(S)):\n A.append(p)\n p = p*10%2019\n\n\nX = []\na = 0\nfor i in range(len(S)):\n a = (a + int(S[len(S)-i-1])*A[i]) %2019\n X.append(a)\nX.sort()\nflag =1\nn = 0\n\n\nfor i in range(len(X)-1):\n if X[i]==0:\n n +=1\n if X[i]==X[i+1]:\n flag += 1\n else:\n n += flag*(flag-1)//2\n flag = 1\nprint(n)', "import sys\n\nlines = sys.stdin.readlines()\n\nx = lines[0].split(' ')\nS =int(x[0])\nW =int(x[1])\n\nif S > W:\n ans = 'safe'\nelse:\n ans = 'unsafe'\n\nprint(ans)\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s296095167', 's591353553', 's595204432']
[9104.0, 9156.0, 9168.0]
[21.0, 22.0, 22.0]
[133, 560, 158]
p02699
u774838740
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\nfor i in range(0,n-3):\n s = S[i:i+4]\n for j in range(i+4,n):\n s = s + S[j]\n if int(s)%2019 == 0 : count += 1\nprint(count)', 'S,W = map(int, input().split())\nif S>W: print("safe")\nelse : print("unsafe")']
['Runtime Error', 'Accepted']
['s701214327', 's565614340']
[9152.0, 9092.0]
[25.0, 23.0]
[174, 76]
p02699
u776237437
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')"]
['Wrong Answer', 'Accepted']
['s821715006', 's216198656']
[9160.0, 9192.0]
[23.0, 21.0]
[81, 81]
p02699
u777028980
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(input,int().split())\nif(n>m):\n print("safe")\nelse:\n print("unsafe")', 'n,m=map(int,input().split())\nif(n>m):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s888303159', 's147730829']
[9096.0, 9152.0]
[23.0, 24.0]
[77, 77]
p02699
u781027071
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(str, input().split())\nif w >= s:\n print('unsafe')\nelif:\n print('safe')", "s, w = map(str(), input().split())\nif w >= s:\n print('unsafe')\nelif:\n print('safe')", "a, b, c, d = map(int, input().split())\nwhile a > 0 and c > 0:\n c -= b\n if c > 0:\n a -= d\n else:\n print('Yes')\n if a <= 0\n print('No')\n", "s, w = map(int, input().split())\nif w >= s:\n print('unsafe')\nelif:\n print('safe')", "s, w = input().split()\nif int(w) >= int(s):\n print('unsafe')\nelif:\n print('safe')\n", "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']
['s423893530', 's459554318', 's720010447', 's765546056', 's967252039', 's295116023']
[8948.0, 8952.0, 9024.0, 8952.0, 9020.0, 9144.0]
[24.0, 20.0, 24.0, 22.0, 26.0, 23.0]
[84, 86, 147, 84, 85, 84]
p02699
u781535828
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', 's, w = map(int, input().split())\n\nif s <= w:\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Accepted']
['s114340428', 's992823805']
[9144.0, 9152.0]
[23.0, 24.0]
[33, 88]
p02699
u783340206
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")\nelse:\n print("safe")', 's, w = map(int, input().split())\nif s<=w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s633862330', 's551655772']
[9040.0, 8992.0]
[21.0, 21.0]
[76, 81]
p02699
u783676040
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,intput().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']
['s707394611', 's245748918']
[9084.0, 9008.0]
[23.0, 28.0]
[78, 77]
p02699
u790744807
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 >= s:\n print('safe')\nelse:\n print('unsafe') \n", "s, w = map(int, input().split())\n\nif w >= s:\n print('unsafe')\nelse:\n print('safe') \n"]
['Wrong Answer', 'Accepted']
['s735222969', 's809715312']
[9144.0, 9148.0]
[21.0, 21.0]
[86, 86]
p02699
u795983729
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")\n\nelse :\n print("safe")', 'S = input()\nW = input()\n\nif S <= W :\n print("unsafe")\n\nelif S > W :\n print("safe")', 'S = input()\nW = input()\n\nS = int(S)\nW = int(W)\n\nif S <= W :\n print("unsafe")\n\nelse :\n print("safe")', 'S,W = amp(int,input,split)\n\nif S <= W :\n print("unsafe")\n\nelse :\n print("safe")', '\nS = input()\nW = input()\n\nS = int(S)\nW = int(W)\n\nif S <= W :\n print("unsafe")\n\nelif S > W :\n print("safe")', 'S = input()\nW = input()\n\nS = int(S)\nW = int(W)\n\nif S <= W :\n print("unsafe")\n\nelif S > W :\n print("safe")\n ', '\nS,W = map(int,input().split())\n\nif S <= W :\n print("unsafe")\n\nelse :\n print("safe")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s191616830', 's250310002', 's251614734', 's253071129', 's636293364', 's869425215', 's402126939']
[9076.0, 9024.0, 9100.0, 9092.0, 9052.0, 9024.0, 8980.0]
[23.0, 21.0, 20.0, 21.0, 21.0, 22.0, 27.0]
[85, 88, 105, 85, 146, 116, 124]
p02699
u796044734
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 s<=w:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s701249872', 's575068542']
[9132.0, 9140.0]
[21.0, 22.0]
[80, 81]
p02699
u796102246
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(a) for a in input().split())\nif S <= W :\n prit("unsafe")\nelse : print("safe")', 'S , W = (int(a) for a in input().split())\nif S <= W :\n print("unsafe")\nelse : print("safe")']
['Runtime Error', 'Accepted']
['s958168564', 's035425607']
[9160.0, 9100.0]
[24.0, 28.0]
[93, 94]
p02699
u800507623
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')\n", "s = int(input())\nw = int(input())\nif s <= w:\n print('unsafe')\nelif:\n print('safe')", "a = input().split()\ns = int(a[0])\nw = int(a[1])\nif s <= w:\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s327696926', 's785875453', 's978784339']
[9096.0, 9020.0, 9104.0]
[22.0, 22.0, 24.0]
[85, 84, 99]
p02699
u801116507
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 w>=s else "safe")\n', 's,w=map(int,input().split())\nprint("unsafe" if w>=s else "safe")\n']
['Runtime Error', 'Accepted']
['s314996229', 's905230431']
[9044.0, 9148.0]
[23.0, 23.0]
[65, 65]
p02699
u806779442
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\n\na,b,c,d = map(int,input().split())\nif (math.ceil(a/d)) <= (math.ceil(b/c)):\n print('No')\nelse:\n print('Yes')\n", "a, b = map(int,input().split())\nif a <= b:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s379810688', 's526558318']
[9032.0, 9160.0]
[21.0, 25.0]
[128, 86]
p02699
u806976856
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', 'S,W=input().split()\nif int(S)<=int(W):\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Accepted']
['s230442855', 's678211099']
[9116.0, 9000.0]
[19.0, 23.0]
[1, 83]
p02699
u807943476
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 collections\ns = input()\nl = len(s)\n\nd = [0] * l\nfor i in range(l-1,0,-1):\n d[i] = int(s[i:]) % 2019\n\nans = 0\nfor v in collections.Counter(d).values():\n ans += v*(v-1)/2\n\nprint(int(ans))\n', "a, b = map(int, input().split())\n\nif a > b:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s020211958', 's920503407']
[9424.0, 9184.0]
[23.0, 20.0]
[195, 83]
p02699
u808757777
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().rstrip().split(' '))\nif s<=w:\n print('safe')\nelse:\n print('unsafe')\n ", "s,w = map(int,input().rstrip().split(' '))\nif s>w:\n print('safe')\nelse:\n print('unsafe')"]
['Wrong Answer', 'Accepted']
['s700887361', 's784211069']
[9064.0, 9168.0]
[23.0, 19.0]
[94, 90]
p02699
u808817704
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 = tuple(int(c) for c in input().split(' '))\nif S < W:\n print('safe')\nelse:\n print('unsafe')", "S, W = tuple(int(c) for c in input().split(' '))\nif S > W:\n print('safe')\nelse:\n print('unsafe')"]
['Wrong Answer', 'Accepted']
['s215225083', 's378636664']
[9068.0, 9096.0]
[20.0, 22.0]
[102, 102]
p02699
u810764216
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())\n\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', 'Accepted']
['s643703110', 's621318398']
[9152.0, 9156.0]
[29.0, 30.0]
[78, 86]
p02699
u811709035
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)', 's,w = map(int,input().split())\n \nif s > w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s807612321', 's813923172', 's658945508']
[9092.0, 9064.0, 9092.0]
[21.0, 22.0, 22.0]
[78, 78, 82]
p02699
u813963714
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')\n else:\n print('unsafe')", "s,w = map(int,input().split())\nif s>w:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s376052843', 's341064562']
[8960.0, 9160.0]
[24.0, 21.0]
[79, 78]
p02699
u815468655
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()\nprint('safe' if s > w else 'unsafe')", "s = input('enter a number')\nw = input('enter a number')\nprint('safe' if s > w else 'unsafe')", 's = int(input())\nw = int(input())\nprint("safe" if s > w else "unsafe")', "s = input()\nw = input()\nprint('safe' if s > w else 'unsafe')", "S = int(input())\nW = int(input())\nif W < S:\n print('safe')\nelse:\n print('unsafe')", "s = input()\nw = 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 = int(input())\nW = int(input())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')", "s = input()\nw = input()\nprint('safe' if s > w else 'unsafe')", "s = input()\nw = input()\nprint('safe' if s > w else 'unsafe')", "s = input()\nw = 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 = input()\nw = input()\nprint('safe' if s > w else 'unsafe')", "num = map(int,input().split())\na = []\nfor i in num:\n a.append(i)\nif a[0]<a[1]:\n print('unsafe')\nelif a[0]>a[1]:\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s002478408', 's096982381', 's175152440', 's204704578', 's343373378', 's375634409', 's446587525', 's577816298', 's601852201', 's759565917', 's761110926', 's810679658', 's914058456', 's761256403']
[9084.0, 9084.0, 9152.0, 9088.0, 9164.0, 9028.0, 9032.0, 9164.0, 9088.0, 9088.0, 9024.0, 9120.0, 9092.0, 9204.0]
[23.0, 22.0, 23.0, 22.0, 23.0, 21.0, 23.0, 20.0, 25.0, 20.0, 20.0, 21.0, 21.0, 22.0]
[60, 92, 70, 60, 87, 78, 78, 88, 60, 60, 78, 76, 60, 161]
p02699
u816171517
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())\n\nif m>=n:\n\n print('unsafe')\n\nelse:\n print('safe')\n", "n,m=map(int,input())\n\nif m>=n:\n\n print('unsafe')\n\nelse:\n print('safe')\n", "n,m=map(int,input().split())\n\nif m>=n:\n\n print('unsafe')\n\nelse:\n print('safe')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s030365007', 's231651402', 's006183237']
[9144.0, 9144.0, 9148.0]
[20.0, 24.0, 23.0]
[77, 77, 85]
p02699
u820806107
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`.
['x = list(map(int,input().split()))\nif x[0] < x[1] :\n print("safe")\n else:\n print("unsafe")\n', 'x = list(map(int,input().split()))\nif x[0] > x[1]:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s213268129', 's822283067']
[8736.0, 8916.0]
[23.0, 21.0]
[96, 90]
p02699
u821262411
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 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']
['s560772398', 's049663727']
[9044.0, 9088.0]
[21.0, 24.0]
[78, 90]
p02699
u825528847
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", "safe"][S < W])\n', 'S, W = map(int, input().split())\nprint(["unsafe", "safe"][S > W])\n']
['Wrong Answer', 'Accepted']
['s243268267', 's913289438']
[9168.0, 9152.0]
[23.0, 25.0]
[66, 66]
p02699
u827553608
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,l=[],[]\ns=[input() for i in range(n)]\nfor i in s:\n if i not in l:\n l.append(i)\nprint(len(l))', 's,w=map(int,input().split())\nif w>=s:\n\tprint("unsafe")\nelse:\n\tprint("safe")']
['Runtime Error', 'Accepted']
['s847401174', 's966790280']
[9048.0, 9104.0]
[21.0, 24.0]
[115, 75]
p02699
u828551622
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`.
["nums = input()\nS = int(nums.split(' ')[0])\nW = int(nums.split(' ')[1])\n\nif W >= S:\n\tprint(unsafe)\nelse:\n\tprint('safe')", "nums = input()\nS = int(nums.split(' ')[0])\nW = int(nums.split(' ')[1])\n\nif W >= S:\n\tprint('unsafe')\nelse:\n\tprint('safe')"]
['Runtime Error', 'Accepted']
['s091337018', 's986136192']
[9164.0, 9196.0]
[22.0, 22.0]
[118, 120]
p02699
u829364446
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=int(input("羊:"))\nW=int(input("狼:"))\nif S>W:\n print("safe")\nelse:\n print("unsafe")', 's=int(input("羊:"))\nw=int(input("狼:"))\nif s>w:\n print("safe")\nelse:\n print("unsafe")', 'S=int(input("羊:"))\nW=int(input("狼:"))\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s233994278', 's335931880', 's394340369', 's730927366', 's249803952']
[9060.0, 9136.0, 9168.0, 9072.0, 9092.0]
[20.0, 20.0, 20.0, 22.0, 23.0]
[81, 93, 93, 93, 92]
p02699
u829416877
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=input() W=input()\nprint("unsafe" if int(W) >= int(S) else "safe")', "S = input() W = input()\nif(int(W)>=int(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')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s067577745', 's567083224', 's942694688', 's661813595']
[8952.0, 8924.0, 9000.0, 9164.0]
[20.0, 23.0, 20.0, 21.0]
[79, 67, 84, 80]
p02699
u830162518
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())\nL=[input() for i in range(N)]\nM=set(L)\nprint(len(M))', "a,b,c,d=map(int,input().split())\ne=a//d\nf=c//b\nx=a-e*d\ny=c-f*b\nif x==y==0:\n if f<=e:\n print('Yes')\n else:\n print('N0')\nelif x==0 and y!=0:\n if f+1<=e:\n print('YES')\n else:\n print('No')\nelif y==0 and x!=0:\n if f<=e+1:\n print('Yes')\n else:\n print('NO')\nelse:\n if f<=e:\n print('Yes')\n else:\n print('No')\n ", "a,b,c,d=map(int,input().split())\nwhile a or c >0:\n c=c-b\n if c<=0:\n print('Yes')\n break\n a=a-d\n if a<=0:\n print('No')\n break\n", "a,b,c,d=map(int,input().split())\ne=a//d\nf=c//b\nx=a-e*d\ny=c-f*b\nif x==y==0:\n if f<=e:\n print('Yes')\n else:\n print('N0')\nif x==0:\n if f+1<=e:\n print('YES')\n else:\n print('No')\nif y==0:\n if f<=e+1:\n print('Yes')\n else:\n print('NO')\nelse:\n if f<=e:\n print('Yes')\n else:\n print('No')\n ", "a,b,c,d=map(int,input().split())\ne=a//d\nf=c//b\nx=a-e*d\ny=c-f*b\nif x==y==0:\n if f<=e:\n print('Yes')\n else:\n print('N0')\nelif x==0 and y!=0:\n if f+1<=e:\n print('Yes')\n else:\n print('No')\nelif y==0 and x!=0:\n if f<=e+1:\n print('Yes')\n else:\n print('NO')\nelse:\n if f<=e:\n print('Yes')\n else:\n print('No')\n ", "S,W=map(int,input().split())\nif S<=W:\n print('unsafe')\nelse:\n print('safe')\n "]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s179188975', 's411866287', 's708151178', 's805087703', 's891515720', 's744404800']
[9164.0, 9192.0, 9184.0, 9232.0, 9188.0, 9152.0]
[22.0, 25.0, 24.0, 23.0, 23.0, 24.0]
[67, 335, 141, 313, 335, 80]
p02699
u831053714
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=input().split()\nif(int(A)>int(B)):\n print("unsafe")\nelse:\n print("safe")', 'A,B=input().split()\nif(int(A)>=int(B)):\n print("unsafe")\nelse:\n print("safe")', 'A,B=input().split()\nif(int(A)<=int(B)):\n print("unsafe")\nelse:\n print("safe")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s362942537', 's799229485', 's027518638']
[9100.0, 9108.0, 9120.0]
[24.0, 21.0, 23.0]
[82, 83, 83]
p02699
u832039789
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`.
['#include <bits/stdc++.h>\nusing namespace std;\nusing ll = long long;\n#define REP(i, n) for (ll (i) = 0; (i) < (n); ++(i))\n#define FOR(i, a, b) for (ll (i) = (a); (i) < (b); ++(i))\n\nsigned main() {\n\n int a, b;\n cin >> a >> b;\n if (a > b) cout << "safe" << endl;\n else cout << "unsafe" << endl;\n\n}\n', "s,w = map(int,input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s930200905', 's736159659']
[9004.0, 9152.0]
[23.0, 23.0]
[312, 85]
p02699
u834224054
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`.
['tmp = input().split()\nN = int(tmp[0])\n\nListG = []\n\nfor i in range(N):\n Si = input().split()\n p = Si in ListG\n if not p :\n ListG.append(Si)\n \nprint(len(ListG))', "tmp = input().split()\nS = int(tmp[0])\nW = int(tmp[1])\n\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s575136414', 's060977335']
[9176.0, 9160.0]
[23.0, 23.0]
[177, 109]
p02699
u840841119
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())\n\nprint('safe' if W < S else 'unsafe')", "S,W = map(int, input().split())\n\nprint('safe' if W < S else 'unsafe')"]
['Wrong Answer', 'Accepted']
['s524387077', 's085214670']
[8976.0, 9152.0]
[27.0, 26.0]
[69, 69]
p02699
u843768197
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 print('Yes')\n break\n a = a - d\n if a <= 0:\n print('No')\n break\n", "s, w = map(int, input().split())\nif s > w:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s844728044', 's455681780']
[8984.0, 9160.0]
[23.0, 23.0]
[178, 86]
p02699
u847033024
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())\nif a / d > c / d:\n print('Yes')\nelse:\n print('No')\n", "a, b, c, d = map(int, input().split())\nc / b \na / d\nif a / d > c / d:\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', 'Runtime Error', 'Accepted']
['s195243546', 's732753752', 's992890512']
[8984.0, 9032.0, 9160.0]
[20.0, 25.0, 28.0]
[92, 104, 82]
p02699
u847535452
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"\n\n\n\n', 's,w=map(int,raw_input().split())\nif s>w:\n print "safe"\nelse:\n print "unsafe"\n\n\n\n', 's,w=map(int,input().split())\nif(s>w):\n print "safe"\nelse:\n print "unsafe"\n\n\n\n', 's,w=map(int,input().split())\nif s>w:\n print ("safe")\nelse:\n print ("unsafe")\n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s059378476', 's269764948', 's332567833', 's334657664']
[8948.0, 9008.0, 8936.0, 9132.0]
[23.0, 21.0, 22.0, 25.0]
[73, 86, 83, 84]
p02699
u848097937
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().spilt())\n\nif w >= s:\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")\n ']
['Runtime Error', 'Accepted']
['s150751736', 's822385666']
[8940.0, 9056.0]
[25.0, 33.0]
[87, 84]
p02699
u849341325
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 W >= S:\n print('unsafe')\nelse:\n print('safe')", "S = list(map(int,input().split()))\n \nif S[1] >= S[0]:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s449189536', 's378723005']
[9164.0, 9104.0]
[23.0, 24.0]
[83, 91]
p02699
u849647454
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 or c <= 0:\n c =c - b\n a =a - d\n if c <= 0:\n print('Yes')\n else:\n print('No')", "a,b,c,d = map(int,input().split())\nwhile a <= 0 or c <= 0:\n c =c - b\n a =a - d\nif c <= 0:\n print('Yes')\nelse:\n print('No')", "a,b,c,d = map(int,input().split())\nwhile a >= 0 or c >= 0:\n c =c - b\n a =a - d\nif c <= 0:\n print('Yes')\nelse:\n print('No')", "S,W =map(int,input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s416528244', 's674126022', 's689831294', 's771102185']
[9172.0, 9064.0, 9164.0, 9156.0]
[22.0, 20.0, 21.0, 22.0]
[150, 134, 134, 84]
p02699
u851704997
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")\nelse:\n print("unsafe")', 'S,W = map(int,input().split())\nif(S > W):\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s108581202', 's624754752']
[9032.0, 9164.0]
[21.0, 23.0]
[77, 81]
p02699
u852552252
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()\nlength=len(n)\nrs=0\nfor i in range(1,length-2):\n num=0\n start=0\n end=length-i\n gap=length-end\n for j in range(i):\n num=int(n[start+j:end+1+j])\n if num%2019==0:\n rs+=1\nprint(rs)', '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()']
['Runtime Error', 'Accepted']
['s879069823', 's862768657']
[9168.0, 9164.0]
[23.0, 26.0]
[225, 131]
p02699
u852956428
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("S"))\nW=int(input("W"))\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']
['s873863709', 's825203362']
[9100.0, 9108.0]
[25.0, 24.0]
[88, 81]
p02699
u854550470
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()\nlen_s = len(s)\nans = 0\nfor i in range(len_s):\n for j in range(i + 4 , len_s + 1):\n if int(s[i:j]) % 2019 == 0:\n ans += 1\nprint(ans)', 's = input()\nlen_s = len(s)\nans = 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 ans += 1\nprint(ans)', 's = input()\nlen_s = len(s)\nans = 0\nfor i in range(len_s):\n for j in range(i + 3 , len_s + 1):\n if int(s[i:j]) % 2019 == 0:\n ans += 1\nprint(ans)\n\n', 's = input()\nlen_s = len(s)\nans = 0\nfor i in range(len_s - 4):\n for j in range(i + 4 , len_s + 1):\n if int(s[i:j]) % 2019 == 0:\n ans += 1\nprint(ans)', "s, w =[int(i) for i in input().split()]\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s222232876', 's482883590', 's553468798', 's850284062', 's057016634']
[9176.0, 9064.0, 9132.0, 9100.0, 9160.0]
[24.0, 24.0, 26.0, 22.0, 23.0]
[164, 168, 166, 168, 94]
p02699
u857133667
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`.
['line = input().split()\na=int(line[0])\nb=int(line[1])\nc=int(line[2])\nd=int(line[3])\ne=c//b\nf=a//d\nif e>=f:\n g=e\nelse:\n g=f\nh=int(c)\nj=int(a)\nfor i in range(g):\n\th=h-b\n\tj=j-d\n\tif h <= 0:\n\t\tprint("Yes")\n\telif j <= 0:\n\t\tprint("No")', 'line = input().split()\ns=int(line[0])\nw=int(line[1])\nif s<=w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s336318017', 's029330391']
[9248.0, 9160.0]
[22.0, 22.0]
[231, 101]
p02699
u857428111
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 = list(input())\nn = len(s)\n\ncounter = [0] * 2019\n\ncounter[0] += 1\ntemp=""\nfor i in range(1, n+1):\n c=s.pop()\n temp = c + (temp if i != 1 else "")\n #s_cu.append(temp)\n counter[int(temp) % 2019] += 1\n\nans = 0\nfor i in counter:\n ans += (i * (i - 1)) // 2\n\nprint(ans)', '\nimport sys\ninput= lambda: sys.stdin.readline().rstrip()\ndef pin(type=int):return map(type,input().split())\ndef tupin(t=int):return tuple(pin(t))\n#%%code\ndef resolve():\n N,M=pin()\n cond=M<N\n print(["unsafe","safe"][cond])\n#%%submit!\nresolve()']
['Runtime Error', 'Accepted']
['s948142107', 's084718130']
[9184.0, 9180.0]
[20.0, 23.0]
[291, 280]
p02699
u857673087
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())\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')\n", '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")', 's = input(int())\nw = input(int())\n\nif s =< w:\n print("unsafe")\nelse:\n print("safe")', "S =int(input())\nW =int(input())\n\nif (S <= W) and 0 <= S,W <= 100: \n print('unsafe')\nelse:\n print('safe')", "S = input()\nW = input()\n\nif int(S) <= int(W):\n print('unsafe')\nelif int(S) > int(W):\n print('safe')\n ", "import random\n\nS = random.randint(1,100)\nW = random.randint(1,100)\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')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s112511533', 's266724847', 's404803325', 's433800463', 's666785468', 's667493470', 's877026494', 's894055606', 's920925528', 's233609741']
[8968.0, 9152.0, 9012.0, 9160.0, 9016.0, 8976.0, 8888.0, 9560.0, 9104.0, 9032.0]
[24.0, 21.0, 24.0, 24.0, 23.0, 21.0, 26.0, 28.0, 23.0, 19.0]
[50, 86, 84, 85, 85, 110, 104, 118, 86, 82]
p02699
u858748695
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()\nwhile True:\n pass', "#!/usr/bin/env python3\ns, w = map(int, input().split())\nprint(['unsafe', 'safe'][s > w])"]
['Time Limit Exceeded', 'Accepted']
['s696937988', 's334156714']
[8920.0, 9120.0]
[2205.0, 21.0]
[28, 88]
p02699
u859059120
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")\n else:\n print("safe")', 's,w=map(int,input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s012251879', 's983090963', 's521077008']
[9100.0, 8836.0, 9096.0]
[24.0, 22.0, 25.0]
[75, 78, 78]
p02699
u859622821
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=input()\nw=input()\nif(s<w) \n print("unsafe")\nelse\n print("safe")', 's,w=map(int,input().split())\nif s>w: \n\tprint("safe")\nelse:\n\tprint("unsafe")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s194168599', 's380880299', 's803075460']
[8864.0, 8952.0, 9056.0]
[21.0, 22.0, 21.0]
[76, 67, 75]
p02699
u860002137
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']
['s171722011', 's639691496']
[9036.0, 9184.0]
[22.0, 22.0]
[62, 70]
p02699
u862920361
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(\'out\')\nelse:\n print("safe")\n', 'S,W=map(int,input().split())\nif S<=W:\n print(\'unsafe\')\nelse:\n print("safe")\n']
['Wrong Answer', 'Accepted']
['s341577432', 's360000586']
[9180.0, 9148.0]
[23.0, 23.0]
[79, 82]
p02699
u862959195
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, 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', 'Accepted']
['s551963533', 's676172852']
[8964.0, 9128.0]
[28.0, 28.0]
[89, 87]
p02699
u863370423
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`.
["Q = int(input())\nfor i in range(Q):\n S,W=[int(x) for x in input().split()]\n if W >= S:\n print('unsafe')\n else:\n print('safe')\n\n", 'a,b=[int(x) for x in input().split()]\nif b>=a:\n\tprint("unsafe")\nelse:\n\tprint("safe")\n']
['Runtime Error', 'Accepted']
['s137272997', 's867702659']
[9084.0, 8912.0]
[21.0, 23.0]
[150, 85]
p02699
u863673790
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()))\n\nif s > w:\n print('safe')\nelse:\n print('unsafe')", "s, w = list(map(int, input().split()))\n\nif s > w:\n print('safe')\nelse:\n print('unsafe')"]
['Runtime Error', 'Accepted']
['s714528446', 's996609302']
[9012.0, 9152.0]
[21.0, 22.0]
[91, 93]
p02699
u863955163
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 = [input() for i in range(N)]\na = set(S)\nprint(len(a))', "S, W = map(int, input().split())\nprint('unsafe' if W>=S else 'safe')"]
['Runtime Error', 'Accepted']
['s293459401', 's973486710']
[9164.0, 9096.0]
[21.0, 21.0]
[73, 68]
p02699
u864069774
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")\n']
['Wrong Answer', 'Accepted']
['s365940178', 's382639758']
[8912.0, 9104.0]
[24.0, 24.0]
[81, 82]
p02699
u867616076
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', 's = int(input())\nw = int(input())\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', 'Runtime Error', 'Accepted']
['s674205097', 's878953672', 's743938005']
[9040.0, 8916.0, 8980.0]
[25.0, 24.0, 30.0]
[90, 94, 87]
p02699
u867736259
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,K = map(int,input().split())\nif(N<=K):\n print('unsafe')\nelse:\n print('safe'", "N,K = map(int,input().split())\nif(N<=K):\n print('unsafe')\nelse:\n print('safe')"]
['Runtime Error', 'Accepted']
['s069414782', 's880267196']
[8900.0, 9160.0]
[21.0, 24.0]
[83, 84]
p02699
u867826040
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`.
['#define _GLIBCXX_DEBUG\n\n#include <bits/stdc++.h>\nusing namespace std;\n\nint main() {\n int s,w; cin >> s >> w;\n if (w >= s){\n cout << "unsafe\\n";\n }\n else{\n cout << "safe\\n";\n }\n}', 's,w = map(int,input().split())\nif s<=w:\n print("unsafe")\nelse:\n print("safe")']
['Runtime Error', 'Accepted']
['s806048043', 's292150117']
[8840.0, 9160.0]
[28.0, 23.0]
[257, 83]
p02699
u869567753
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())\nl = []\nfor i in range(N):\n Si = input()\n if not Si in l:\n l.append(Si)\nprint(len(l))', 's, w =map(int, input().split())\nif s > w:\n print("safe")\nelse:\n print("unsafe")']
['Runtime Error', 'Accepted']
['s037431551', 's692073297']
[9156.0, 9144.0]
[23.0, 21.0]
[106, 81]
p02699
u870736713
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())\na=[]\nfor i in range(N):\n a.append(input())\nprint(len(set(a)))', "a,b=map(int, input().split())\nprint('unsafe') if a<=b else print('safe')"]
['Runtime Error', 'Accepted']
['s273979891', 's361343633']
[9164.0, 9092.0]
[22.0, 20.0]
[79, 72]
p02699
u873736356
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())\nhpa = math.ceil(A / D)\nhhb = math.ceil(C / B)\nif (hpa >= hpb):\n print('Yes')\nelse:\n print('No')\n", "S, W = map(int,input().split())\n\nif (W >= S):\n print('unsafe')\nelse:\n print('safe')\n"]
['Runtime Error', 'Accepted']
['s185991452', 's326804244']
[9116.0, 9148.0]
[21.0, 20.0]
[152, 90]