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 | u493407368 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')\n "] | ['Runtime Error', 'Accepted'] | ['s798912124', 's671377280'] | [9144.0, 9148.0] | [23.0, 22.0] | [76, 84] |
p02699 | u497805118 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['s, w = list(map(int, input().split(" ")))\nif s >= w:\n print("unsafe")\nelse:\n print("safe)', 's, w = list(map(int, input().split(" ")))\nif s >= w:\n print("unsafe")\nelse:\n print("safe")', ' w = list(map(int, input().split(" ")))\nif s >= w:\n print("unsafe")\nelse:\n print("safe")', 's, w = list(map(int, input().split(" ")))\nif s >= w:\n print("unsafe")\nelse:\n print("safe)', 's, w = list(map(int, input().split(" ")))\nif s <= w:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s366343081', 's509684978', 's511434927', 's952409632', 's720953432'] | [9028.0, 9148.0, 9008.0, 9020.0, 9116.0] | [22.0, 20.0, 24.0, 21.0, 23.0] | [91, 92, 90, 91, 93] |
p02699 | u500092662 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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(input().split(), int)\nprint("unsafe" if w >= s else "safe")', 's = int(input())\nw = int(input())\nprint "unsafe" if w>=s else "safe"', 's,w = map(int, input().split())\nprint("unsafe" if w >= s else "safe")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s031795892', 's714161070', 's175469959'] | [9088.0, 9020.0, 9152.0] | [22.0, 24.0, 20.0] | [69, 68, 70] |
p02699 | u505564549 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\tprint('safe')\nelse:\n\tprint('unsafe')"] | ['Runtime Error', 'Accepted'] | ['s810035448', 's589974973'] | [9012.0, 9156.0] | [24.0, 24.0] | [77, 74] |
p02699 | u508934152 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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"] | ['Wrong Answer', 'Accepted'] | ['s984376378', 's319434184'] | [9096.0, 9148.0] | [18.0, 19.0] | [84, 85] |
p02699 | u509830642 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\ninput = sys.stdin.readline\ndef print_ans(S, W):\n """Test Case\n >>> print_ans(4, 5)\n unsafe\n >>> print_ans(100, 2)\n safe\n """\n if S > W :\n return \'safe\'\n else:\n return \'unsafe\'\nif __name__ == \'__main__\':\n S, W = map(int, input().rstrip().split())\n print_ans(S, W)\n\n', "import sys\ninput = sys.stdin.readline\ndef print_ans(S, W):\n \n if S > W :\n return 'safe'\n else:\n return 'unsafe'\nif __name__ == '__main__':\n S, W = map(int, input().rstrip().split())\n print_ans(S, W)\n\n", "import sys\ninput = sys.stdin.readline\ndef print_ans(S, W):\n \n if S > W :\n print('safe')\n else:\n print('unsafe')\nif __name__ == '__main__':\n S, W = map(int, input().rstrip().split())\n print_ans(S, W)\n\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s580223753', 's684663459', 's924223968'] | [9168.0, 9172.0, 9168.0] | [22.0, 25.0, 21.0] | [320, 363, 357] |
p02699 | u510975899 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['s,w = map(int,input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe)', 's,w = map(int,input().split())\nif w>=s:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Accepted'] | ['s225594616', 's925876570'] | [8852.0, 9124.0] | [20.0, 23.0] | [78, 80] |
p02699 | u511457539 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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(undafe)\nelse:\n print(safe)\n', 'S, W = map(int, input().split())\n\nif W >= S:\n print(unsafe)\nelse:\n print(safe)\n', 'S, W = map(int, input().split())\n\nif W>=S:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s728153926', 's753748881', 's645454599'] | [9144.0, 9148.0, 9148.0] | [21.0, 25.0, 22.0] | [85, 85, 87] |
p02699 | u513929200 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\nprint("unsafe" if W >= S else "safe")', 's= int(input())\nw = int(input())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")', 'S,W = map(int, input().split())\nprint("unsafe" if W >= S else "safe")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s127902379', 's862849772', 's982089596', 's138233021'] | [9164.0, 9176.0, 9160.0, 9092.0] | [24.0, 23.0, 22.0, 21.0] | [88, 71, 87, 69] |
p02699 | u514118270 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["s,w = list(map(int,input().split()))\nif w >= S:\n print('unsafe')\nelse:\n print('safe')", "s,w = list(map(int,input().split()))\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Accepted'] | ['s733488734', 's784030970'] | [9164.0, 9160.0] | [20.0, 20.0] | [91, 91] |
p02699 | u517674755 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 = int(input())\nB = int(input())\nC = int(input())\nD = int(input())\nwhile (A>0 and C>0):\n C = C - B\n if C <= 0:\n break\n A = A - D\nprint("Yes" if C<=0 else "NO")', "S,W = map(int,input().split())\nif(S<=W):\n print('unsafe')\nelse:\n print('safe') \n"] | ['Runtime Error', 'Accepted'] | ['s380455382', 's206580194'] | [9188.0, 9156.0] | [22.0, 23.0] | [176, 86] |
p02699 | u518085378 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\nsi = int(s)\nans = 0\n \n \nfor i in range(1,300000//2019):\n d = 0\n while 1:\n if s.find(str(2019*i), d) != -1:\n ans = ans+1\n d = s.find(str(2019*i), d)+1\n else:\n break\n \nprint(ans)', 'n,m=map(int,input().split())\nif n>m:\n print("safe")\nelse:\n print("unsafe")'] | ['Runtime Error', 'Accepted'] | ['s497053165', 's604264867'] | [9052.0, 9180.0] | [22.0, 20.0] | [241, 76] |
p02699 | u520331522 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\ni = 1\nwhile a > 0 & c > 0:\n a = a\n c = c - i*b\n\n if c > 0:\n a = a-i*d\n c = c\n\n i += 1\nif a <= 0:\n print('No')\nif c :\n print('Yes')", "a,b,c,d = map(int, input().split())\n\n\nn = c // b\nm = c % b\n\nif m != 0:\n\n if a - n * d <= 0 | a - (n-1) * d <= 0:\n print('No')\n\n else:\n print('Yes')\n\n\nif m == 0:\n if a - (n-2) * d <= 0 | a - (n-1) * d <= 0:\n print('No')\n\n else:\n print('Yes')", "s,w = map(int,input().split())\n\nif s <= w :\n print('unsafe')\n\nelse :\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s123288398', 's424705091', 's035989209'] | [9184.0, 9060.0, 9160.0] | [18.0, 22.0, 20.0] | [203, 280, 89] |
p02699 | u524534026 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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*2:\n print('unsafe')\nelse:\n print('safe')", "s, w = map(int, input().split())\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"] | ['Wrong Answer', 'Accepted'] | ['s205789690', 's938582148'] | [9124.0, 9180.0] | [22.0, 21.0] | [89, 88] |
p02699 | u528793636 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 W => S:\n print('unsafe')\nelse:\n print('safe')", "\nS,W = map(int, input().split())\n\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Accepted'] | ['s465830794', 's691537201'] | [8980.0, 9008.0] | [24.0, 28.0] | [88, 88] |
p02699 | u531456543 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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("saffe")\nelse:\n print("unsafe")', 's,w = map(int,input().split())\nif s > w:\n print("safe")\nelse:\n print("unsafe")'] | ['Runtime Error', 'Accepted'] | ['s023604935', 's151728779'] | [9084.0, 9152.0] | [23.0, 20.0] | [79, 80] |
p02699 | u531599639 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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('unsafe')\nelse:\n print('safe')\n"] | ['Wrong Answer', 'Accepted'] | ['s782693100', 's579038807'] | [9152.0, 9152.0] | [21.0, 23.0] | [80, 81] |
p02699 | u538296348 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\nlens=len(s)\ncount=0\nfor i in range(lens):\n for k in range(i,lens):\n num=s[i:k]\n if(len(num)>=4):\n if(int(num)%2019==0):\n count=count+1\nprint(count)', "ABCD=input()\nABCD=ABCD.split()\nA=int(ABCD[0])\nB=int(ABCD[1])\nC=int(ABCD[2])\nD=int(ABCD[3])\nwhile(1):\n C=C-B\n if(C<=0):\n print('Yes')\n break\n A=A-D\n if(A<=0):\n print('No')\n break", "SW=input()\nSW=SW.split()\nif(int(SW[1])>=int(SW[0])):\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s102598147', 's204091869', 's353117883'] | [9104.0, 9192.0, 9164.0] | [23.0, 21.0, 24.0] | [200, 217, 96] |
p02699 | u543019323 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['s,w=map(int,input().split())\nif s <= w:\n print("unsafe")\n else:\n print("safe")', 'input(int())', 's,w=map(int,input().split())\nif s <= w:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s180462729', 's724842228', 's890532686'] | [9008.0, 9144.0, 9164.0] | [20.0, 24.0, 21.0] | [80, 12, 79] |
p02699 | u547375079 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 input.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'] | ['s856981425', 's537229239'] | [9084.0, 9080.0] | [23.0, 20.0] | [89, 91] |
p02699 | u548545174 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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'] | ['s096050024', 's777096521'] | [9096.0, 9100.0] | [24.0, 22.0] | [87, 87] |
p02699 | u550146922 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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)\n', 's,w = map(int,input().split())\nif s <= w:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Accepted'] | ['s836960912', 's851806204'] | [9112.0, 9072.0] | [24.0, 26.0] | [82, 86] |
p02699 | u550528193 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\nfor i in range(100):\n c-=b\n if c<=0:\n print("Yes")\n break\n else:\n a-=d\n if a<=0:\n print("No")\n break', 's,w=map(int,input().split())\nif s>w :\n print("safe")\nelse:\n print("unsafe")'] | ['Runtime Error', 'Accepted'] | ['s856534220', 's580388177'] | [9180.0, 9156.0] | [23.0, 21.0] | [192, 81] |
p02699 | u551437236 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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'] | ['s553871184', 's153944594'] | [9004.0, 9148.0] | [22.0, 22.0] | [86, 85] |
p02699 | u555767343 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['strS = input()\nS = int(strS)\nlenS = len(strS)\n \nans = 0\nfor i in range(lenS - 3):\n for j in range(i+3, lenS):\n# print(i,j)\n if int(strS[i:j+1])%2019 == 0:\n# print(int(str(S)[i:j]), i, j)\n ans += 1\nprint(ans)', 'S = int(input())\nlenS = len(str(S))\n\nans = 0\nfor i in range(lenS):\n if i+3 <= lenS:\n for j in range(i+3, lenS):\n# print(i,j)\n if int(str(S)[i:j+1])%2019 == 0:\n# print(int(str(S)[i:j]), i, j)\n ans += 1\nprint(ans)', "S, W = map(int, input().split())\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s798784925', 's811505717', 's775484634'] | [9108.0, 9192.0, 9096.0] | [23.0, 23.0, 22.0] | [246, 273, 87] |
p02699 | u556477263 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["a, b = map(int, input().split())\n\nif a <= b:\n print('safe')\nelse:\n print('unsafe')", "a, b = map(int, input().split())\n\nif a > b:\n print('safe')\nelse:\n print('unsafe')"] | ['Wrong Answer', 'Accepted'] | ['s779457828', 's341347009'] | [8924.0, 9152.0] | [29.0, 27.0] | [88, 87] |
p02699 | u556589653 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\nfor i in range(10**2):\n c -= b\n if c <= 0:\n print("Yes")\n break\n a -= d\n if a <= 0:\n print("No")\n break\n', 'a,b = map(int,input().split())\nif b>=a:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Accepted'] | ['s616446210', 's916215629'] | [9024.0, 9156.0] | [25.0, 21.0] | [155, 83] |
p02699 | u556594202 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()))\nprint("safe" if S>W else "unsafe")', 'S,W = list(map(int,input().split()))\nprint("safe" if S>W else "unsafe")\n'] | ['Runtime Error', 'Accepted'] | ['s167228618', 's522312463'] | [8896.0, 9092.0] | [24.0, 30.0] | [70, 72] |
p02699 | u558867581 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | [' 1 SW = list(map(int,input().split()))\nSW = list(map(int,input().split()))\nif (SW[0] > SW[1]):\n print("safe")\nelse:\n print("unsafe")', 'S = int(input())\nW = int(input())\nif (S > W):\n print("safe")\nelse:\n print("unsafe")', 'SW = list(map(int,input().split()))\nif (SW[0] > SW[1]):\n print("safe")\nelse:\n print("unsafe")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s687793952', 's724630001', 's937680284'] | [8876.0, 9020.0, 9080.0] | [24.0, 20.0, 23.0] | [135, 85, 95] |
p02699 | u566237370 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 = (int(x) for x in input("please enter number of sheep and wolves: ").split())\n\nif 1 <= s <= 100 and 1 <= w <= 100:\n if s > w:\n print("safe")\n else:\n print("unsafe")\nelse:\n print("invaild values...")', 's, w = map(int, input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")'] | ['Wrong Answer', 'Accepted'] | ['s465712628', 's479433902'] | [9108.0, 9168.0] | [20.0, 23.0] | [272, 87] |
p02699 | u571028152 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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=(a+d-1)/d\ny=(c+b-1)/c\n \nif x>=y:\n print("yes")\nelse:\n print("no")', 'a,b,c,d=map(int,input().split())\nx=float(a/d)\ny=float(c/b)\n\nif x>=y:\n print("yes")\nelse:\n print("no")', 'a,b,c,d=map(int,input().split())\nx=float(a-1/d)\ny=float(c-1/b)\n\nif x>=y:\n print("yes")\nelse:\n print("no")', 'import math\n\na,b,c,d=map(int,input().split())\nx=int((a+d-1)/d)\ny=int((c+b-1)/c)\n \nif x>=y:\n print("Yes")\nelse:\n print("No")\n', 'a,b,c,d=map(int,input().split())\nx=int((a+d-1)/d)\ny=int((c+b-1)/c)\n \nif x>=y:\n print("Yes")\nelse:\n print("No")\n', 's,w=map(int,input().split())\nif s <= w:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s328834655', 's642980999', 's745268851', 's821062105', 's866208337', 's551704569'] | [9036.0, 9108.0, 9160.0, 9160.0, 9160.0, 9160.0] | [25.0, 21.0, 21.0, 22.0, 21.0, 22.0] | [102, 103, 107, 126, 113, 83] |
p02699 | u574565611 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 -= B\n if C <= 0:\n print("Yes")\n else:\n A -= D\n if A <= 0:\n print("No")', 'N = int(input())\nS = [int(input()) for _ in N]\nprint(len(set(s)))', 'S,W = map(int,input().split())\nif S>W:\n print("safe")\nelse:\n print("unsafe")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s033026789', 's082975692', 's586897738'] | [9104.0, 9056.0, 9016.0] | [24.0, 21.0, 20.0] | [172, 65, 78] |
p02699 | u575750790 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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('unsase')", "s,w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsase')", "s,w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsase')", "s,w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsase')\n", "s,w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsase')", "s,w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsafe')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s069037282', 's140950877', 's655070801', 's752268389', 's802275705', 's659103905'] | [9068.0, 9072.0, 9148.0, 9164.0, 9088.0, 9108.0] | [25.0, 22.0, 24.0, 21.0, 22.0, 24.0] | [82, 82, 82, 83, 82, 82] |
p02699 | u576927476 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 \n s,w =(int(n) for n in input().split())\n \n if (s <= w):\n print("unsafe")\n sys.exit()\n else:\n print("safe")', '\nimport sys\n \ns,w =(int(n) for n in input().split())\n \nif (s <= w):\n print("unsafe")\n sys.exit()\nelse:\n print("safe")'] | ['Runtime Error', 'Accepted'] | ['s532402819', 's078780163'] | [8824.0, 9164.0] | [24.0, 25.0] | [161, 146] |
p02699 | u580273604 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['100 2', "S,W=map(int,input().split())\nif S<=W:print('unsafe')\nelse:print('safe')"] | ['Runtime Error', 'Accepted'] | ['s305657703', 's299771143'] | [9072.0, 9156.0] | [27.0, 28.0] | [5, 71] |
p02699 | u582803594 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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")'] | ['Runtime Error', 'Accepted'] | ['s093480074', 's339044688'] | [8836.0, 9140.0] | [24.0, 29.0] | [80, 81] |
p02699 | u586857375 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\tprint('unsafe')\nelse:\n\tprint('safe')", "S,W = map(int, input().split())\nif W >= S:\n\tprint('unsafe')\nelse:\n\tprint('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s239499935', 's934378267', 's492662014'] | [9164.0, 9116.0, 9152.0] | [24.0, 23.0, 20.0] | [84, 82, 80] |
p02699 | u588048170 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["w, s = map(int, input().split())\nif (w >= s):\n print('unsafe')\nelse:\n print('safe')", 's, w = map(int, input().split())\nif (w >= s):\n print("unsafe")\nelse:\n print("safe")'] | ['Wrong Answer', 'Accepted'] | ['s379731167', 's737301003'] | [9160.0, 9104.0] | [20.0, 22.0] | [89, 89] |
p02699 | u588276267 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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)\n\nif w >= s:\n print('unsafe')\nelse:\n print('safe')\n", "s, w = input().split()\n\nif w <= s:\n print('unsafe')\nelse:\n print('safe')\n", "s, w = int(input().split)\n\nif w <= s:\n print('unsafe')\nelse:\n print('safe')\n", "s, w = input().split()\n\nif int(w) >= int(s):\n print('unsafe')\nelse:\n print('safe')\n "] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s185868682', 's447464681', 's589831588', 's396026878'] | [8992.0, 8944.0, 9004.0, 9068.0] | [22.0, 24.0, 23.0, 20.0] | [78, 75, 78, 87] |
p02699 | u589969467 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')", "s,w = int(input())\nif s < w:\n print('unsafe')\nelse:\n print('safe')", "s,w = map(int,input().split())\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s332537370', 's670739845', 's683753828'] | [9156.0, 9016.0, 9160.0] | [26.0, 24.0, 28.0] | [72, 68, 81] |
p02699 | u590460312 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 re\nmultiplies = []\n\nfor i in range (1, 800):\n multiplies.append(i * 2019)\n\nS = input()\n\ncount = 0\n\nfor i in multiplies:\n count += len(re.findall('(?=' + str(i) + ')',S))\n\nprint(count)\n", "line = [int(s) for s in input().split()]\n\nif line[0] > line[1]:\n print('safe')\nelse:\n print('unsafe')\n"] | ['Wrong Answer', 'Accepted'] | ['s823810667', 's366544147'] | [10004.0, 9092.0] | [54.0, 20.0] | [197, 108] |
p02699 | u593019570 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\n\nif n <= m:\n print(\'unsafe\')\nelse:\n print("safe")', 'n,m =map(int,input().split())\n\nif n <= m:\n print(\'unsafe\')\nelse:\n print("safe")\n'] | ['Runtime Error', 'Accepted'] | ['s029710096', 's523049980'] | [8940.0, 9088.0] | [25.0, 21.0] | [81, 82] |
p02699 | u594862874 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["S, W = map(int, input.split())\n\nprint('unsafe' if W>=S else 'safe')", "S, W = map(int, input().split())\n\nprint('unsafe' if W>=S else 'safe')"] | ['Runtime Error', 'Accepted'] | ['s394134609', 's724109823'] | [9112.0, 9152.0] | [24.0, 21.0] | [67, 69] |
p02699 | u595289165 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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, w = map(int, input().split())\n\nif w >= s:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Accepted'] | ['s046582955', 's939621539'] | [9188.0, 9152.0] | [24.0, 21.0] | [89, 89] |
p02699 | u597455618 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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'] | ['s853548370', 's499342705'] | [9080.0, 9088.0] | [21.0, 22.0] | [87, 88] |
p02699 | u597626771 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\nnumber = [ str(x*2019) for x in range(1000)]\ncount=0\nv = []\nfor i in range(4, len(S)):\n for k in range(i):\n v =[]\n for l in range(0, len(S)//i):\n if len(S[l*i+k: l*i+k+i])==i:\n v.append(S[l*i+k: l*i+k+i])\n for m in v:\n if m in number:\n count+=1\n\nprint(count)', "l = [int(x) for x in input().split()]\nS, W = l[0], l[1]\n\nif W >= S:\n print('unsafe')\nelse:\n print('safe')"] | ['Wrong Answer', 'Accepted'] | ['s274037146', 's677765352'] | [9032.0, 9168.0] | [23.0, 20.0] | [346, 111] |
p02699 | u601235270 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 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'] | ['s749456215', 's708954176'] | [9108.0, 9160.0] | [20.0, 20.0] | [73, 86] |
p02699 | u601893725 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 = str(input())\n\nif n[0]==\'7\' or n[1]==\'7\' or n[2]==\'7\':\n print("Yes")\nelse:\n print("No")', 'n = str(input())\n\nif n[0]==\'7\' or n[1]==\'7\' or n[2]==\'7\':\n print("Yes")\nelse:\n print("No")', 'n = str(input())\n\nif n[0]=="7" or n[1]=="7" or n[2]=="7":\n print("Yes")\nelse:\n print("No")\n ', 's,w = map(int, input().split())\n\nif s <= w:\n print("unsafe")\nelse:\n print ("safe")\n '] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s010647529', 's262764766', 's286133364', 's317397165'] | [8996.0, 9024.0, 9052.0, 9012.0] | [20.0, 22.0, 21.0, 20.0] | [92, 92, 95, 87] |
p02699 | u602128502 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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(map(int, input().split()))\nprint(s[1],s[0])\n\nif s[0] > s[1]:\n\tprint("safe")\nelse:\n print("unsafe") ', 's = list(map(int, input().split()))\n\nif s[0] > s[1]:\n\tprint("safe")\nelse:\n print("unsafe") '] | ['Wrong Answer', 'Accepted'] | ['s526995324', 's525772534'] | [9164.0, 9152.0] | [20.0, 21.0] | [112, 95] |
p02699 | u602773379 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['from math import factorial as fact\nimport math\nimport fractions\nimport sys\nimport itertools\nimport numpy as np\nfrom collections import Counter\nimport datetime\n\ndef input1():\n\treturn int(input())\n\n\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(map(int,input().split()))\n\ndef keta(N):\n\treturn len(str(N))\n\n\ndef input_daytime(input_time):\n\ttime,distance=input_time.split()\n\tt=time.split(":")\n\tse=str(t[-1]).split(".")\n\tdt1 = datetime.timedelta(hours=int(t[0]),minutes=int(t[1]),seconds=int(se[0]),milliseconds=int(se[1]))\n\treturn dt1\n\ndef combinations(n,r):\n\treturn list(itertools.combinations(n,r))\n\ndef all_sets(num_list):\n\tsubsets=[]\n\tfor i in range(2,len(num_list) + 1):\n\t\tfor c in combinations(num_list, i):\n\t\t\tsubsets.append(c) \n\treturn subsets\n\n\ndef ch(x1):\n\tcf=[]\n\tfor i in range(2,math.sqrt(x1)+1):\n\t\tif x1 % i==0:\n\t\t\tcf.append(i)\n\treturn cf\n\ndef CountOneRoots(x,y):\n\t\n\treturn fact(x+y)/fact(x)/fact(y)\n\n\ndef factorization(n):\n\ttmp=n\n\tcount=0\n\tfor i in range(2,int(n**0.5)+2):\n\t\tif tmp%i==0:\n\t\t\tcnt=0\n\t\t\twhile tmp%i==0:\n\t\t\t\tcnt+=1\n\t\t\t\ttmp//=i\n\t\t\tcount+=1\n\tif tmp!=1:\n\t\tcount+=1\n\n\treturn count\n\t\t\t\n\n\ns,w=input2()\nif w >=s2:\n\tprint("unsafe")\nelse:\n\tprint("safe")\n\n# a,b,c,d=input2()\n\n\n# \tif i%2==1:\n# \t\tc-=b\n# \t\tif c<=0:\n# \t\t\tprint("Yes")\n# \t\t\tbreak\n# \telse:\n# \t\ta-=d\n# \t\tif a<=0:\n# \t\t\tprint("No")\n# \t\t\tbreak\n\n\t\n\n\n\n\n\n', 'from math import factorial as fact\nimport math\nimport fractions\nimport sys\nimport itertools\nimport numpy as np\nfrom collections import Counter\nimport datetime\n\ndef input1():\n\treturn int(input())\n\n\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(map(int,input().split()))\n\ndef keta(N):\n\treturn len(str(N))\n\n\ndef input_daytime(input_time):\n\ttime,distance=input_time.split()\n\tt=time.split(":")\n\tse=str(t[-1]).split(".")\n\tdt1 = datetime.timedelta(hours=int(t[0]),minutes=int(t[1]),seconds=int(se[0]),milliseconds=int(se[1]))\n\treturn dt1\n\ndef combinations(n,r):\n\treturn list(itertools.combinations(n,r))\n\ndef all_sets(num_list):\n\tsubsets=[]\n\tfor i in range(2,len(num_list) + 1):\n\t\tfor c in combinations(num_list, i):\n\t\t\tsubsets.append(c) \n\treturn subsets\n\n\ndef ch(x1):\n\tcf=[]\n\tfor i in range(2,math.sqrt(x1)+1):\n\t\tif x1 % i==0:\n\t\t\tcf.append(i)\n\treturn cf\n\ndef CountOneRoots(x,y):\n\t\n\treturn fact(x+y)/fact(x)/fact(y)\n\n\ndef factorization(n):\n\ttmp=n\n\tcount=0\n\tfor i in range(2,int(n**0.5)+2):\n\t\tif tmp%i==0:\n\t\t\tcnt=0\n\t\t\twhile tmp%i==0:\n\t\t\t\tcnt+=1\n\t\t\t\ttmp//=i\n\t\t\tcount+=1\n\tif tmp!=1:\n\t\tcount+=1\n\n\treturn count\n\t\t\t\n\n\ns,w=input2()\nif w >=s:\n\tprint("unsafe")\nelse:\n\tprint("safe")\n\n# a,b,c,d=input2()\n\n\n# \tif i%2==1:\n# \t\tc-=b\n# \t\tif c<=0:\n# \t\t\tprint("Yes")\n# \t\t\tbreak\n# \telse:\n# \t\ta-=d\n# \t\tif a<=0:\n# \t\t\tprint("No")\n# \t\t\tbreak\n\n\t\n\n\n\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s115381058', 's776867154'] | [27256.0, 27272.0] | [109.0, 106.0] | [1513, 1512] |
p02699 | u603324902 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\n\nif n > m:\n print("safe")\nelse:\n print("ansafe")', 'n, m = map(int,input().split())\n\nif n > m:\n print("safe")\nelse:\n print("unsafe")'] | ['Wrong Answer', 'Accepted'] | ['s861352520', 's041060636'] | [9156.0, 8968.0] | [23.0, 21.0] | [82, 82] |
p02699 | u606878291 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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(s, w):\n if w >= 2 * s:\n return 'unsafe'\n else:\n return 'safe'\n\n\nif __name__ == '__main__':\n S, W = map(int, input().split(' '))\n print(main(S, W))\n", "def main(s, w):\n if s > w:\n return 'safe'\n else:\n return 'unsafe'\n\n\nif __name__ == '__main__':\n S, W = map(int, input().split(' '))\n print(main(S, W))\n"] | ['Wrong Answer', 'Accepted'] | ['s081530842', 's018520444'] | [9156.0, 9156.0] | [23.0, 23.0] | [182, 177] |
p02699 | u607729897 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ndef main():\n S, W = map(int, read().split())\n print('safe' if S < W else 'unsafe')\n return\n\nif __name__ == '__main__':\n main()\n\n", "import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ndef main():\n S, W = map(int, read().split())\n print('safe' if S > W else 'unsafe')\n return\n\nif __name__ == '__main__':\n main()\n\n"] | ['Wrong Answer', 'Accepted'] | ['s214137370', 's525424462'] | [9160.0, 9100.0] | [21.0, 22.0] | [257, 257] |
p02699 | u609307781 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\nargs = sys.argv\n\ns = int(args[0])\nw = int(args[1])\n\nif s <= w:\n print('unsafe')\nelse:\n print('safe')", "inputs = input().split(' ')\n\ns = int(inputs[0])\nw = int(inputs[1])\n\nif s <= w:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Accepted'] | ['s864446989', 's494868387'] | [9168.0, 9048.0] | [24.0, 20.0] | [117, 122] |
p02699 | u611033537 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['s, w = int(input()).split()\nif w >= s:\n print("unsafe")\nelse:\n print("safe")', 's, w= map(int, input().split())\nif w >= s:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Accepted'] | ['s553730873', 's023688829'] | [9156.0, 9116.0] | [20.0, 23.0] | [78, 82] |
p02699 | u612223903 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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)\ndp = {0:1}\nq = 1\np = 0\nfor i in range(n):\n p += int(S[n-1-i])*q\n q *= 10\n q = q % 2019\n p = p % 2019\n if p not in dp:\n dp[p] = 1\n else:\n dp[p] += 1\nprint(dp)\nprint(sum(dp[i]*(dp[i]-1)//2 for i in dp))', 's,w = map(int,input().split())\nprint("safe" if s < w else "unsafe")', 'import collections\ns_str = input()\ns = [int(s_str[i]) for i in range(len(s_str))] \nn = len(s_str)\ns_block = []\nfor k in range(n):\n a = sum(s[i]*10**(n-i-1) for i in range(k,n)) % 2019\n s_block.append(a)\ns_dict = list(dict(collections.Counter(s_block)).values())\nans = sum(s_dict[i]*(s_dict[i]-1)/2 for i in range(len(s_dict)))\nprint(int(ans))', 's,w = map(int,input().split())\nprint("safe" if s > w else "unsafe")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s243109783', 's255336964', 's787332563', 's639914107'] | [9180.0, 9040.0, 9468.0, 9124.0] | [20.0, 20.0, 22.0, 21.0] | [255, 67, 391, 67] |
p02699 | u616534089 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 -= b\n 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', 'Accepted'] | ['s058955224', 's791143238'] | [9160.0, 9156.0] | [24.0, 21.0] | [125, 83] |
p02699 | u617953889 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 w>=s:\n print(\'UNSAFE\')\nelse:\n print("SAFE")\n ', "#A\ns,w = map(int,input().split())\nif w>=s :\n print('unsafe')\nelse :\n print('safe')"] | ['Runtime Error', 'Accepted'] | ['s144494090', 's741376072'] | [9156.0, 9168.0] | [20.0, 23.0] | [69, 88] |
p02699 | u619398783 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 = list(map,int(input().split()))\nif w >= s:\n print('unsafe')\nelse:\n print('safe')", "w,s = list(map(int,input().split()))\nif w >= s:\n print('unsafe')\nelse:\n print('safe')", "s,w = list(map(int,input().split()))\nif w >= s:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s427485407', 's844384021', 's172909974'] | [9096.0, 9160.0, 9168.0] | [23.0, 20.0, 22.0] | [91, 91, 91] |
p02699 | u619672182 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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#import numpy as np\n\n\nN = int(input())\nkeihin = []\nfor i in range(N):\n keihin.append(input())\n# \n\n# \n# \n\n\n\n\n\n\n\n', '\nimport numpy as np\n\n\nN = int(input())\nkeihin = []\nfor i in range(N):\n keihin.append(input())\n\nnn = np.array(keihin)\n\n\nprint(np.unique(nn).size)\n\n\n\n\n\n\n', 'a=input().split()\nS = int(a[0])\nW = int(a[1])\nif S >= W:\n print("unsafe")\nelse:\n print("safe")', 'a = input().split()\nS = int(a[0])\nW = int(a[1])\nif S <= W:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s015960410', 's432955319', 's440036863', 's306620348'] | [9180.0, 27132.0, 9160.0, 9168.0] | [19.0, 106.0, 22.0, 23.0] | [186, 175, 100, 102] |
p02699 | u626228246 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 = input().split()\n\nprint("unsafe" if int(w) >= int(s) else "safe")', 's,w = map(int,input().split())\n\nprint("unsafe" if w >= s else "safe")'] | ['Wrong Answer', 'Accepted'] | ['s367432104', 's009923561'] | [9032.0, 9004.0] | [24.0, 22.0] | [71, 69] |
p02699 | u627674248 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 * 2:\n print('unsafe')\nelse:\n print('safe')", "S, W = map(int, input().split())\n\nif W >= S * 2:\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', 'Wrong Answer', 'Accepted'] | ['s080520969', 's141977549', 's521200092'] | [9056.0, 9164.0, 9148.0] | [30.0, 24.0, 26.0] | [88, 88, 84] |
p02699 | u629276590 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\nW=int()\nS=input()\nW=input()\n\nif S<=W:\n print("unsafe")\nelse:\n print("safe")', 'S=int()\nW=int()\nS=input()\nW=input()\n\nif S<=W:\n print("unsafe")\nelse:\n print("safe")', 'S, W = map(int, input().split())\n \nprint("unsafe" if W >= S else "safe")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s420351750', 's860518875', 's029532725'] | [8956.0, 9092.0, 9088.0] | [23.0, 24.0, 21.0] | [89, 89, 72] |
p02699 | u629369952 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\nimport math\n\n\ndef main():\n input = sys.stdin.readline\n a, b = (int(i) for i in input().split())\n if a <= b:\n print("unsafe")\n else:\n print("safe)\n\n\nmain()\n', 'import sys\nimport math\n\n\ndef main():\n input = sys.stdin.readline\n a, b = (int(i) for i in input().split())\n if a <= b:\n print("unsafe")\n else:\n print("safe")\n\n\nmain()\n'] | ['Runtime Error', 'Accepted'] | ['s381092851', 's821455246'] | [8912.0, 9112.0] | [22.0, 20.0] | [192, 193] |
p02699 | u629454253 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\n\nl = [int(s[-1])]\nd = 10\nfor i in range(len(s)-2, -1, -1):\n l.append((l[-1] + int(s[i])*d) % 2019)\n d *= 10\n d %= 2019\nc = collections.Counter(l)\nans = 0 \nfor i in c.values():\n ans += i*(i-1)//2\n\nans += c[0]\n\nprint(ans)', "s, w = map(int, input().split())\n\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', 'Accepted'] | ['s682302864', 's886396333', 's589275876'] | [9400.0, 9008.0, 9160.0] | [27.0, 26.0, 20.0] | [255, 84, 87] |
p02699 | u629560745 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\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'] | ['s600963361', 's737113158'] | [9024.0, 9156.0] | [23.0, 23.0] | [83, 87] |
p02699 | u638795007 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 examA():\n S, W = LI()\n if S<=W:\n print("unsefe")\n else:\n print("safe")\n return\n\ndef examB():\n ans = 0\n print(ans)\n return\n\ndef examC():\n ans = 0\n print(ans)\n return\n\ndef examD():\n ans = 0\n print(ans)\n return\n\ndef examE():\n ans = 0\n print(ans)\n return\n\ndef examF():\n ans = 0\n print(ans)\n return\n\nimport sys,bisect,itertools,heapq,math,random\nfrom copy import deepcopy\nfrom heapq import heappop,heappush,heapify\nfrom collections import Counter,defaultdict,deque\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\ndef I(): return int(readline())\ndef LI(): return list(map(int,readline().split()))\ndef LSI(): return list(map(str,sys.stdin.readline().split()))\ndef LS(): return sys.stdin.readline().split()\ndef SI(): return sys.stdin.readline().strip()\nglobal mod,mod2,inf,alphabet,_ep\nmod = 10**9 + 7\nmod2 = 998244353\ninf = 10**18\n_ep = 10**(-12)\nalphabet = [chr(ord(\'a\') + i) for i in range(26)]\n\nsys.setrecursionlimit(10**7)\n\nif __name__ == \'__main__\':\n examA()\n\n', 'def examA():\n S, W = LI()\n if S<=W:\n print("unsafe")\n else:\n print("safe")\n return\n\ndef examB():\n A, B, C, D = LI()\n while(True):\n C -= B\n if C<=0:\n print("Yes")\n break\n A -= D\n if A<=0:\n print("No")\n break\n return\n\ndef examC():\n ans = 0\n print(ans)\n return\n\ndef examD():\n ans = 0\n print(ans)\n return\n\ndef examE():\n ans = 0\n print(ans)\n return\n\ndef examF():\n ans = 0\n print(ans)\n return\n\nimport sys,bisect,itertools,heapq,math,random\nfrom copy import deepcopy\nfrom heapq import heappop,heappush,heapify\nfrom collections import Counter,defaultdict,deque\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\ndef I(): return int(readline())\ndef LI(): return list(map(int,readline().split()))\ndef LSI(): return list(map(str,sys.stdin.readline().split()))\ndef LS(): return sys.stdin.readline().split()\ndef SI(): return sys.stdin.readline().strip()\nglobal mod,mod2,inf,alphabet,_ep\nmod = 10**9 + 7\nmod2 = 998244353\ninf = 10**18\n_ep = 10**(-12)\nalphabet = [chr(ord(\'a\') + i) for i in range(26)]\n\nsys.setrecursionlimit(10**7)\n\nif __name__ == \'__main__\':\n examA()\n\n'] | ['Wrong Answer', 'Accepted'] | ['s726540709', 's285320994'] | [10100.0, 10108.0] | [27.0, 27.0] | [1138, 1299] |
p02699 | u641545507 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['# -*- coding: utf-8 -*-\n \ns = input()\ncounter = 0\n\nfor i in range(len(s) - 4):\n for j in range(4, len(s) + 1):\n if int(float(s[i:j])) % 2019 == 0:\n counter += 1\n \nprint(counter)\n', "# -*- coding: utf-8 -*-\n\ns, w = map(int, input().split())\n\nif s > w:\n print('safe')\nelse:\n print('unsafe')"] | ['Runtime Error', 'Accepted'] | ['s310643798', 's309474019'] | [9096.0, 9060.0] | [22.0, 21.0] | [198, 108] |
p02699 | u648192617 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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()\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'] | ['s169733568', 's100666808'] | [9064.0, 9096.0] | [22.0, 22.0] | [78, 86] |
p02699 | u658447090 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\n\nif S <= W:\n print('unsafe')\nelse:\n print('safe')", 'S = input()\n\nans = 0\n\n\nfor i in range(0, len(S)-3):\n for j in range(i+3, len(S)):\n #print(S[i:j+1])\n if int(S[i:j+1]) % 2019 == 0:\n ans += 1\n\nprint(ans)', "S, W = map(int, input().split())\n \nif S <= W:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s220975913', 's382828689', 's943862801'] | [9048.0, 9064.0, 9124.0] | [24.0, 21.0, 23.0] | [85, 171, 85] |
p02699 | u658627575 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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#S = str(1817181712114)\nans = 0\n \nfor a in range(len(S) - 3):\n\tfor b in range(a+3, len(S)):\n\t\tif int(S[a:b+1]) % 2019 == 0:\n\t\t\tans += 1 \nprint(ans)', 'S = input()\n#S = str(1817181712114)\nans = 0\n\nfor a in range(len(S)-1):\n\tfor b in range(a+1, len(S)):\n\t\tif int(S[a:b+1]) % 2019 == 0:\n\t\t\tans += 1 \nprint(ans)\n\n', 'S = input()\n#S = str(1817181712114)\nans = 0\n\nfor a in range(len(S) - 3):\n\tfor b in range(a+1, len(S)):\n\t\tif int(S[a:b+1]) % 2019 == 0:\n\t\t\tans += 1 \nprint(ans)', 'S,W = map(int,input().split())\n\nif S <= W :\n\tprint("unsafe")\nelse :\n\tprint("safe")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s222824872', 's620785542', 's859886569', 's878980227'] | [9152.0, 9124.0, 9168.0, 9156.0] | [22.0, 22.0, 23.0, 22.0] | [166, 165, 165, 82] |
p02699 | u665078057 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\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'] | ['s523289180', 's499889019'] | [9092.0, 9032.0] | [22.0, 22.0] | [77, 83] |
p02699 | u665452497 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["n, m = map(int, input().split())\nif n <= m:\n print('safe')\nelse:\n print('unsafe')", "n, m = map(int, input().split())\nif n <= m:\n print('unsafe')\nelse:\n print('safe')"] | ['Wrong Answer', 'Accepted'] | ['s079621449', 's191617424'] | [9180.0, 9156.0] | [23.0, 23.0] | [83, 83] |
p02699 | u666844906 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\tprint('unsefe')\nelse:\n\tprint('safe')", "s, w = map(int, input().split())\nif w >= s:\n\tprint('unsafe')\nelse:\n\tprint('safe')"] | ['Wrong Answer', 'Accepted'] | ['s931560025', 's611330985'] | [9056.0, 9160.0] | [31.0, 28.0] | [81, 81] |
p02699 | u669742612 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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("unface")\nelse:\n print("safe")', 'S,W=map(int,input().split())\nif S<=W:\n print("unsafe")\nelse:\n print("safe")'] | ['Wrong Answer', 'Accepted'] | ['s342132445', 's287519377'] | [9076.0, 8976.0] | [28.0, 28.0] | [81, 81] |
p02699 | u671211357 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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")'] | ['Runtime Error', 'Accepted'] | ['s227569163', 's295072065'] | [9080.0, 9156.0] | [21.0, 23.0] | [9, 81] |
p02699 | u672314394 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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().sprit())\n\nif(s>w):\n print('safe')\nelse\n print('unsafe')", 's, w = map(int, input().sprit())\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', 'Runtime Error', 'Accepted'] | ['s590578943', 's639005608', 's998929796', 's963182234'] | [8888.0, 8984.0, 8888.0, 9104.0] | [23.0, 20.0, 20.0, 23.0] | [85, 82, 85, 87] |
p02699 | u674588203 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')\nprint('safe')", "S,W=map(int,input().split())\nif W>=S:\n print('unsafe')\n exit()\nprint('safe')"] | ['Wrong Answer', 'Accepted'] | ['s315994324', 's323566405'] | [9052.0, 9104.0] | [23.0, 22.0] | [69, 78] |
p02699 | u678505520 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\ns = int(S)\nn = len(S)\ncount = 0\nfor i in range(1,n+1):\n for j in range(i+4,n+1):\n si = s%10**(n-i+1)\n sij = si//10**(n-j)\n if sij % 2019 == 0:\n count+=1\n i+=4\n j+=4\n\nprint(count)\n', "S,W = map(int,input().split())\nif S>W:\n print('safe')\nelse:\n print('unsafe')"] | ['Runtime Error', 'Accepted'] | ['s386040456', 's429562800'] | [9188.0, 9156.0] | [22.0, 23.0] | [253, 78] |
p02699 | u681390786 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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,b=input().split()\ndef b(n,b):\n return "safe" if n>b else "No"\nprint(b(n,b))', 'n,b=map(int,input().split())\n\ndef a(n,b):\n return "safe" if n>b else "No"\nprint(a(n,b))', 'n,b=input().split()\nn,b=int(n),int(b)\ndef a(n,b):\n return "safe" if n>b else "No"\nprint(a(n,b))', 'n,b=map(int,input().split())\n\ndef a(n,b):\n return "safe" if n>=b else "No"\nprint(a(n,b))', 'n,b=input().split()\nn,b=int(n),int(b)\ndef b(n,b):\n return "safe" if n>b else "No"\nprint(b(n,b))', 'n,m=map(int,input().split())\ndef func(n,m):\n return "unsafe" if n<=m else "safe"\nprint(func(n,m))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s187088024', 's334208111', 's718885945', 's807269615', 's963996608', 's370929577'] | [9088.0, 9160.0, 9164.0, 9108.0, 9100.0, 9160.0] | [22.0, 20.0, 22.0, 21.0, 20.0, 23.0] | [80, 90, 98, 91, 98, 100] |
p02699 | u684906944 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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\ns = input()\n\n# print(s)\n\nans = np.zeros((len(s)+1, len(s)+1), dtype = np.int)\n\n# print(ans)\n\nif len(s) >= 4:\n for i in range (0, len(s) - 3):\n for j in range (i + 4, len(s)+1):\n num = int(s[i:j])\n # print(num)\n if num % 2019 == 0:\n ans[i, j] += 1\n\n# print(ans)\n\nprint(np.sum(ans))', "s, w = map(int, input().split())\n\nans = 'unsafe'\n\nif s > w:\n ans = 'safe'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s346194053', 's564659302'] | [27156.0, 9160.0] | [109.0, 22.0] | [326, 86] |
p02699 | u685416576 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 abc():\n S,W=map(int,input().split(" "))\n if(S>=1 and S<=100 and W>=1 and W<=100):\n if(S>W):\n print("safe")\n else:\n print("unsafe")', 'def abc():\n S,W=map(int,input().split(" "))\n if(S>=1 and S<=100 and W>=1 and W<=100):\n if(S>W):\n print("safe")\n else:\n print("unsafe")\nabc()'] | ['Wrong Answer', 'Accepted'] | ['s397564030', 's470962363'] | [9100.0, 9160.0] | [19.0, 24.0] | [164, 170] |
p02699 | u686989171 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')", "\ns, 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', 'Wrong Answer', 'Accepted'] | ['s167169370', 's776065719', 's289800810'] | [9124.0, 9144.0, 9144.0] | [22.0, 20.0, 20.0] | [84, 85, 84] |
p02699 | u689835643 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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, y = map(int, input().split())\nif y >= x:\n print("safe")\nelse:\n print("unsafe")\n', 'x, y = map(int, input().split())\nif y >= x:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Wrong Answer', 'Accepted'] | ['s968080837', 's356074647'] | [9112.0, 9092.0] | [22.0, 22.0] | [88, 88] |
p02699 | u689890477 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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")', 'a,b,c,d = map(int,input().split())\n\nans1 = 0\nwhile a>=0:\n a -= d\n ans1 += 1\n\nans2 = 0\nwhile c >= 0:\n c -= b\n ans2 += 1\n\nif ans1 >= ans2:\n print("Yes")\nelse:\n print("No")\n', 'a,b,c,d = map(int,input().split())\n\nans1 = 0\nwhile a>=0:\n a -= d\n ans1 += 1\n\nans2 = 0\nwhile c >= 0:\n c -= b\n ans2 += 1\n\nif ans1 >= ans2:\n print("No")\nelse:\n print("Yes")', 's,w = map(int,input().split())\nif s<=w:\n print("unsafe")\nelse:\n print("safe")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s083397824', 's409660501', 's963602449', 's008975837'] | [9180.0, 9052.0, 9164.0, 9160.0] | [22.0, 24.0, 21.0, 23.0] | [83, 188, 187, 83] |
p02699 | u690442716 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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)\ncount = 0\nfor i in range(4,l+1):\n for j in range(l-i+1):\n if float(S[j:j+i]) % 2019 == 0:\n count += 1\nprint(count)', 'S, W = list(map(int, input().split()))\nif S <= W:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Accepted'] | ['s323493984', 's824065784'] | [9000.0, 9128.0] | [24.0, 23.0] | [146, 89] |
p02699 | u692311686 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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=0\nwhile A>0 and C>0:\n if t%2==0:\n A-=D\n else:\n C-=B\n t+=1\nif A<=0:\n print("No")\nelse:\n print("Yes")\n', 'S=input()\nN=len(S)\nSlis=[]\nfor i in range(N):\n Slis+=[int(S[i])]\nT=[0 for i in range(N+1)]\n\n\ndef kaizyou(n):\n c=1\n c=c*10**n\n return c%2019\n\n\nfor i in range(N):\n T[N-i-1]=(T[N-i]+kaizyou(i)*Slis[N-i-1])%2019\n\nMOD=[0 for i in range(2019)]\nfor i in range(N+1):\n tmp=T[i]%2019\n MOD[tmp]+=1\n\n\n \nans=0\n\nfor i in range(2019):\n tmp=MOD[i]\n ans+=tmp*(tmp-1)//2\nprint(ans)\n', 'S,W=map(int,input().split())\nif W>=S:\n print("unsafe")\nelse:\n print("safe")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s291369281', 's797810809', 's771383612'] | [9164.0, 9152.0, 9116.0] | [20.0, 21.0, 23.0] | [146, 407, 78] |
p02699 | u694380052 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')", "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')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s434495045', 's708495356', 's363343350'] | [9156.0, 9136.0, 9108.0] | [23.0, 25.0, 22.0] | [73, 74, 82] |
p02699 | u695691591 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\n\nW = int(input())\n\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif W >= S:\n print("unsafe")\n \nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif S >= W/2:\n print("unsafe")\n \nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif S >= W/2:\n print("unsafe")\n \nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif W >= S:\n print("unsafe")\nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif W >= S/2:\n print("unsafe")\n \nelse:\n print("safe")', 'S = int(input())\n\nW = int(input())\n\nif W >= S:\n print("unsafe")\n \nelse:\n print("safe")', 's, w = map(int, input().split())\n\nif w >= s:\n print("unsafe")\n \nelse:\n print("safe")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s067351241', 's216611192', 's260989033', 's740176216', 's745683852', 's761412635', 's874368861', 's573430361'] | [9116.0, 9104.0, 9164.0, 9160.0, 9160.0, 9116.0, 9156.0, 9160.0] | [23.0, 21.0, 20.0, 21.0, 21.0, 20.0, 21.0, 23.0] | [90, 89, 91, 91, 86, 91, 89, 87] |
p02699 | u696231671 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 i in range(N):\n S.append(input())\nprint(set(S))', "S, W = map(int,input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Accepted'] | ['s240009616', 's151291710'] | [9088.0, 9164.0] | [24.0, 22.0] | [78, 86] |
p02699 | u696499790 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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')", "S,W=map(int,input().split())\nif S <= W:\n print('unsafe')\nelse:\n print('safe')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s713963908', 's959600196', 's675806600'] | [8876.0, 8936.0, 9116.0] | [20.0, 23.0, 23.0] | [78, 76, 79] |
p02699 | u697559326 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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")'] | ['Runtime Error', 'Accepted'] | ['s545178108', 's866010282'] | [9088.0, 9144.0] | [21.0, 21.0] | [74, 88] |
p02699 | u697634943 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['\nclass Main:\n\n def main(s1,s2):\n if s1 <= s2:\n print("unsafe");\n else:\n print("safe");\n main()', 'def main():\n s = int(input.split());\n if s[1] <= s[2]:\n print("unsafe");\n else:\n print("safe");\nmain()', '\nclass Main:\n\n t1, a1, t2, a2= map(int,input().split());\n\n while(t1 > 0 and t2 > 0):\n if t2 <= 0:\n break;\n t2 -= a1;\n if t1 <= 0:\n break;\n t1 -= a2;\n\n if t1 >= t2:\n print("Yes");\n else:\n print("No")\n\n', '\nclass Main:\n\n s = int(input().split());\n\n if s[0] <= s[1]:\n print("unsafe");\n else:\n print("safe");\n', 'import sys;\n\n\nclass Main:\n s = set([i.strip() for i in sys.stdin.readlines()]);\n\n print(len(s));\n\n', '\n\nclass Main:\n\n s1, s2= int(input().split());\n\n if s1 <= s2:\n print("unsafe");\n else:\n print("safe");\n', '\nclass Main:\n\n def main(s1,s2):\n if s1 <= s2:\n print("unsafe");\n else:\n print("safe");', 'class Main:\n\n s1, s2= map(int,input().split());\n\n if s1 <= s2:\n print("unsafe");\n else:\n print("safe");\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s074965524', 's286940353', 's724207109', 's756112039', 's819503913', 's884961093', 's905983531', 's885975330'] | [9088.0, 9044.0, 9156.0, 9028.0, 9088.0, 9088.0, 9088.0, 9152.0] | [24.0, 24.0, 23.0, 23.0, 22.0, 23.0, 23.0, 22.0] | [136, 125, 276, 124, 104, 125, 125, 127] |
p02699 | u697758384 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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")', 'A,B,C,D = map(int, input().split())\n\ncheck = True\nwhile True:\n if check:\n c -= b\n if c <= 0:\n print("Yes")\n break\n\nelse:\n a -= d\n if a<= 0:\n print("No")\n break\n\n check = not check\n', 'S, W = map(int, input().split())\n\nif W >= S:\n print("unsafe")\nelse:\n print("safe")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s232754076', 's974009324', 's019506487'] | [9156.0, 9104.0, 9172.0] | [24.0, 21.0, 27.0] | [89, 242, 88] |
p02699 | u698737869 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ['TaHP,TaAP,AoHP,AoAP = map(int, input().split())\n\nFlag_Ta = True\n\nwhile( TaHP > 0 or AoHP > 0):\n\tif\tFlag_Ta:\n\t\tAoHP = AoHP - TaAP\n\t\tFlag_Ta = False\n\telse:\n\t\tTaHP = TaHP - AoAP\n\t\tFlag_Ta = True\nif TaHP > 0:\n\tprint("Yes")\nelse:\n print("No")\n', 's, w = map(int, input().split())\nif w >= s:\n print ("unsafe")\nelse:\n print ("safe")'] | ['Runtime Error', 'Accepted'] | ['s374002168', 's697284330'] | [9172.0, 9160.0] | [24.0, 22.0] | [241, 85] |
p02699 | u705007443 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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())\ntaka=c/b\nao=a/d\ntaka=taka if taka==c//b else int(taka)+1\nao=ao if ao==a//d else int(ao)+1\nprint("Yes" if taka<=ao else "No")', 's,w=map(int,input().split())\nprint("unsafe" if s<=w else "safe")'] | ['Runtime Error', 'Accepted'] | ['s164146362', 's055934106'] | [9068.0, 9092.0] | [24.0, 19.0] | [157, 64] |
p02699 | u705606364 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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 Sol(w,s):\n \n if s>w:\n print("safe")\n else:\n print("unsafe")\n \n return\n\n \n\n#for t in range(int(input())):\nn,k = map(int,input().split())\n#n = int(input())\n#arr = []\n\n# time = list(map(int,input().split()))\n# time = time[0] + (time[1]/60)\n# arr.append(time)\n#arr = list(map(int,input().split()))\n#k = input()\n#n = int(input())\nSol(n,k)\n', 'def Sol(a,b,c,d):\n \n if a%d != 0:\n m_aoki = int(a/d) + 1\n else:\n m_aoki = int(a/d)\n\n if c%b != 0:\n m_taka = int(c/b) + 1\n else:\n m_taka = int(c/b)\n \n if m_taka >= m_aoki:\n print("YES")\n else:\n print("NO")\n\n return\n\n \n\n#for t in range(int(input())):\nn,k,c,d = map(int,input().split())\n#n = int(input())\n#arr = []\n\n# arr.append(input())\n#arr = list(map(int,input().split()))\n#k = input()\n#n = int(input())\nSol(n,k,c,d)\n', '\ndef Sol(s,w):\n \n if s>w:\n print("safe")\n else:\n print("unsafe")\n \n return\n\n \n\n#for t in range(int(input())):\nn,k = map(int,input().split())\n#n = int(input())\n#arr = []\n\n# time = list(map(int,input().split()))\n# time = time[0] + (time[1]/60)\n# arr.append(time)\n#arr = list(map(int,input().split()))\n#k = input()\n#n = int(input())\nSol(n,k)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s531845295', 's656772229', 's098084541'] | [9152.0, 9172.0, 9088.0] | [22.0, 23.0, 23.0] | [399, 515, 399] |
p02699 | u706433263 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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)))\n', "s,w=map(int,input().split())\nif s>w:\n print('safe')\nelse:\n print('unsafe')"] | ['Runtime Error', 'Accepted'] | ['s542567629', 's518527470'] | [9144.0, 9128.0] | [20.0, 22.0] | [73, 76] |
p02699 | u706908631 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than 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,W = list(map(int,input().split()))\nif W > N:\n print("safe")\nelse:\n print("unsafe")', 'S,W = list(map(int,input().split()))\nif S <= W:\n print("unsafe")\nelse:\n print("safe")'] | ['Wrong Answer', 'Accepted'] | ['s901491713', 's363991179'] | [9168.0, 9160.0] | [23.0, 21.0] | [86, 87] |
p02699 | u708890186 | 2,000 | 1,048,576 | There are S sheep and W wolves. If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep. If the wolves will attack the sheep, print `unsafe`; otherwise, print `safe`. | ["a,b=map(int,input.split())\nif a<=b:\n print('unsafe')\nelse:\n print('safe')", "a,b=map(int,input().split())\nif a<=b:\n print('unsafe')\nelse:\n print('safe')\n"] | ['Runtime Error', 'Accepted'] | ['s634519123', 's236241856'] | [8960.0, 9092.0] | [20.0, 23.0] | [75, 78] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.