buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
catch(:label) do while line = gets throw :label if line == "0 0\n" a = gets.split(" ") p_0 = a[0].to_i p_1 = a[1].to_i if p_0 > p_1 a[0] = p_1 a[1] = p_0 else a[0] = p_0 a[1] = p_1 end puts a[0].to_s + " " + a[1].to_s + "\n" end end
catch(:label) do while line = gets throw :label if line == "0 0\n" a = line.chomp.split(" ") p_0 = a[0].to_i p_1 = a[1].to_i if p_0 > p_1 a[0] = p_1 a[1] = p_0 else a[0] = p_0 a[1] = p_1 end puts a[0].to_s + " " + a[1].to_s + "\n" end end
[["-", 0, 89, 8, 170, 0, 662, 12, 652, 486, 22], ["+", 8, 170, 0, 662, 12, 652, 486, 652, 486, 22], ["+", 8, 170, 0, 662, 12, 652, 486, 652, 17, 131], ["+", 8, 170, 0, 662, 12, 652, 486, 652, 735, 22]]
4
98
while true a = get.split(" ").map &:to_i if a[0]==0 && a[1]==0 break end puts a.sort.join(" ") end
while true a = gets.split(" ").map &:to_i if a[0]==0 && a[1]==0 break end puts a.sort.join(" ") end
[["-", 8, 170, 0, 662, 12, 652, 486, 652, 486, 22], ["+", 8, 170, 0, 662, 12, 652, 486, 652, 486, 22]]
4
44
while true do tmp = gets.split.map(&:to_i) if tmp[0] == 0 && tmp[0] == 0 break end puts num.sort!.join(" ") end
while true do num = gets.split.map(&:to_i) if num[0] == 0 && num[1] == 0 break end puts num.sort!.join(" ") end
[["-", 0, 493, 0, 89, 8, 170, 0, 662, 31, 22], ["+", 0, 493, 0, 89, 8, 170, 0, 662, 31, 22], ["-", 0, 121, 15, 738, 31, 738, 31, 742, 500, 22], ["+", 0, 121, 15, 738, 31, 738, 31, 742, 500, 22], ["-", 0, 121, 15, 738, 12, 738, 31, 742, 500, 22], ["+", 0, 121, 15, 738, 12, 738, 31, 742, 500, 22], ["-", 0, 121, 15, 738, ...
4
42
loop do tmp = gets.split.map(&:to_i) if tmp[0] == 0 && tmp[1] == 0 break end puts num.sort!.join(" ") end
loop do num = gets.split.map(&:to_i) if num[0] == 0 && num[1] == 0 break end puts num.sort!.join(" ") end
[["-", 0, 652, 196, 737, 8, 736, 0, 662, 31, 22], ["+", 0, 652, 196, 737, 8, 736, 0, 662, 31, 22], ["-", 0, 121, 15, 738, 31, 738, 31, 742, 500, 22], ["+", 0, 121, 15, 738, 31, 738, 31, 742, 500, 22], ["-", 0, 121, 15, 738, 12, 738, 31, 742, 500, 22], ["+", 0, 121, 15, 738, 12, 738, 31, 742, 500, 22]]
4
41
while true aryMondai = gets.split.map(&:to_i); num1 = aryMondai[0]; num1 = aryMondai[0]; if num1 == 0 && num2 == 0 then break; end if num1 > num2 then puts num2.to_s + " " + num1.to_s; elsif num1 < num2 then puts num1.to_s + " " + num2.to_s; else puts num1.to_s + " " + num2.to_s; end end
while true aryMondai = gets.split.map(&:to_i); num1 = aryMondai[0]; num2 = aryMondai[1]; if num1 == 0 && num2 == 0 then break; end if num1 > num2 then puts num2.to_s + " " + num1.to_s; elsif num1 < num2 then puts num1.to_s + " " + num2.to_s; else puts num1.to_s + " " + num2.to_s; end end
[["-", 0, 493, 0, 89, 8, 170, 0, 662, 31, 22], ["+", 0, 493, 0, 89, 8, 170, 0, 662, 31, 22], ["-", 0, 89, 8, 170, 0, 662, 12, 742, 0, 612], ["+", 0, 89, 8, 170, 0, 662, 12, 742, 0, 612]]
4
92
i = 0 user = {} while num = gets do a = num.split(" ")[0].to_i b = num.split(" ")[1].to_i if a == 0 break end if a < b then user[i] = a.to_s + " " + b.to_s elsif a > b then user[i] = b.to_s + " " + a.to_s else user[i] = num end i += 1 end user.each do |key,value| puts "#{value}" end
i = 0 user = {} while num = gets do a = num.split(" ")[0].to_i b = num.split(" ")[1].to_i if a == 0 && b == 0 break end if a < b then user[i] = a.to_s + " " + b.to_s elsif a > b then user[i] = b.to_s + " " + a.to_s else user[i] = num end i += 1 end user.each do |key,value| puts "#{va...
[["+", 0, 89, 8, 170, 0, 121, 15, 738, 17, 98], ["+", 8, 170, 0, 121, 15, 738, 12, 738, 31, 22], ["+", 8, 170, 0, 121, 15, 738, 12, 738, 17, 60], ["+", 8, 170, 0, 121, 15, 738, 12, 738, 12, 612]]
4
118
a,b = (gets.chomp.split.map &:to_i).sort while a != 0 || b != 0 do print a," ",b,"\n" a,b = gets.chomp.split.map &:to_i end
a,b = gets.chomp.split.map(&:to_i).sort while a != 0 || b != 0 do print a," ",b,"\n" a,b = gets.chomp.split.map(&:to_i).sort end
[["-", 0, 493, 0, 662, 12, 652, 486, 739, 0, 24], ["+", 0, 662, 12, 652, 486, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 486, 652, 3, 4, 0, 25], ["+", 0, 89, 8, 170, 0, 662, 12, 652, 17, 131], ["+", 0, 89, 8, 170, 0, 662, 12, 652, 735, 22]]
4
52
loop{ a,b=gets.split.map &:to_i if a==0&&B==0 break elsif a<b puts "#{a} #{b}" else puts "#{b} #{a}" end }
loop{ a,b=gets.split.map &:to_i if a==0&&b==0 break elsif a<b puts "#{a} #{b}" else puts "#{b} #{a}" end }
[["-", 8, 734, 0, 121, 15, 738, 12, 738, 31, 743], ["+", 8, 734, 0, 121, 15, 738, 12, 738, 31, 22]]
4
49
i = 1 while ((i <= 3000) && ((x,y = gets.split(" ").map(&:to_i)).select{|j| j != 0}.length == 2)) do puts ((x-y)<0) ? [x,y].join(" ") : [y,x].join(" ") i += 1 end
i = 1 while ((i <= 3000) && ((x,y = gets.split(" ").map(&:to_i)).select{|j| j != 0}.length > 0)) do puts ((x-y)<0) ? [x,y].join(" ") : [y,x].join(" ") i += 1 end
[["-", 15, 739, 0, 738, 12, 739, 0, 738, 17, 60], ["-", 15, 739, 0, 738, 12, 739, 0, 738, 12, 612], ["+", 15, 739, 0, 738, 12, 739, 0, 738, 17, 47], ["+", 15, 739, 0, 738, 12, 739, 0, 738, 12, 612]]
4
89
input = [] loop do input.push(gets.split(' ').map(&:to_i)) if input[-1][0] == 0 && input[-1][1] == 0 input.pop break end end input.length.times do |i| x = input[i][0] y = input[i][1] if x > y puts '%d %d' % [y, x] else print '%d %d' % [x, y] end end
input = [] loop do input.push(gets.split(' ').map(&:to_i)) if input[-1][0] == 0 && input[-1][1] == 0 input.pop break end end input.length.times do |i| x = input[i][0] y = input[i][1] if x > y puts '%d %d' % [y, x] else puts '%d %d' % [x, y] end end
[["-", 8, 736, 0, 121, 75, 95, 0, 652, 735, 22], ["+", 8, 736, 0, 121, 75, 95, 0, 652, 735, 22]]
4
107
x, y = gets.chomp.split(' ').map(&:to_i) while x != 0 && y != 0 if x < y x=x.to_s y=y.to_s puts (x+' '+y) else x = x.to_s y = y.to_s puts(y+' '+x) end x, y = gets.chomp.split(' ').map(&:to_i) end
x, y = gets.chomp.split(' ').map(&:to_i) while x != 0 || y != 0 if x < y x=x.to_s y=y.to_s puts (x+' '+y) else x=x.to_s y=y.to_s puts (y+' '+x) end x, y = gets.chomp.split(' ').map(&:to_i) end
[["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 98], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 106]]
4
95
while true a,b=gets.split.map &:to_i if a=0 && b=0 break end puts [a,b].sort*" " end
while true a,b=gets.split.map &:to_i if a==0 && b==0 break end puts ([a,b].sort)*" " end
[["-", 0, 89, 8, 170, 0, 121, 15, 662, 0, 32], ["+", 8, 170, 0, 121, 15, 738, 31, 738, 17, 60], ["-", 0, 121, 15, 662, 12, 738, 12, 662, 0, 32], ["+", 8, 170, 0, 121, 15, 738, 12, 738, 17, 60], ["+", 0, 652, 3, 4, 0, 738, 31, 739, 0, 24], ["+", 0, 652, 3, 4, 0, 738, 31, 739, 0, 25]]
4
36
loop do line = gets.chomp!.split.map(&:to_i).sort a = line[0] b = line[1] if a != 0 && b != 0 then puts "#{a} #{b}" else exit end end
loop do line = gets.chomp!.split.map(&:to_i).sort a = line[0] b = line[1] if a != 0 || b != 0 then puts "#{a} #{b}" else exit end end
[["-", 196, 737, 8, 736, 0, 121, 15, 738, 17, 98], ["+", 196, 737, 8, 736, 0, 121, 15, 738, 17, 106]]
4
52
import sys def main(): while True: x, y = [int(i) for i in sys.stdin.readline().split(' ')] if x == 0 & y == 0: break elif x <= y: print(x, y) else: print(y, x) return if __name__ == '__main__': main()
import sys def main(): while True: x, y = [int(i) for i in sys.stdin.readline().split(' ')] if x == 0 and y == 0: break elif x <= y: print(x, y) else: print(y, x) if __name__ == '__main__': main()
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["-", 0, 656, 0, 14, 8, 196, 0, 37, 0, 38]]
5
77
x,y = map(int,input().split()) while x!=0 and y!=0: if x>y: x,y = y,x print('{0} {1}'.format(x,y)) x,y = map(int,input().split())
x,y = map(int,input().split()) while not(x==0 and y==0): if x>y: x,y = y,x print('{0} {1}'.format(x,y)) x,y = map(int,input().split())
[["+", 36, 36, 0, 656, 0, 52, 15, 681, 0, 372], ["+", 0, 656, 0, 52, 15, 681, 28, 23, 0, 24], ["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 79], ["+", 15, 681, 28, 23, 0, 679, 31, 666, 667, 60], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 79], ["+", 15, 681, 28, 23, 0, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 52, 15, 681...
5
66
a=[] while True: n=input() if int(n)==0:break a.append(n) for s in a: x,y=map(int,s.split()) if x>y:print(f'{y} {x}') else:print(s)
a=[] while True: n=input() if n=='0 0':break a.append(n) for s in a: x,y=map(int,s.split()) if x>y:print(f'{y} {x}') else:print(s)
[["-", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
69
a=[] while 1: n=input() if n=='0 0':break x,y=map(int,n.split()) if x>y:print(y+' '+x) else:print(n)
a=[] while 1: n=input() if n=='0 0':break x,y=map(int,n.split()) if x>y:print(y,x) else:print(n)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 21]]
5
55
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: x=sorted(map(int,s.split())) print(*s)
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: x=sorted(map(int,s.split())) print(*x)
[["-", 0, 1, 0, 652, 3, 4, 0, 661, 0, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 661, 0, 22]]
5
51
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: print(*sorted(map(int,a.split())))
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: print(*sorted(map(int,s.split())))
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22]]
5
48
a=[] import sys for s in sys.stdin: if s=='0 0\n':break a.append(s) for t in a: x,y=map(int,t.split()) print(f'{y} {x}') if x>y else print(t)
a=[] import sys for s in sys.stdin: if s=='0 0\n':break a.append(s) for t in a: x,y=map(int,t.split()) print(f'{y} {x}') if x>y else print(t.strip())
[["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 41, 0, 652, 3, 4, 0, 25]]
5
68
a=[] import sys for s in sys.stdin: s=s.strip() if s=='0 0':break a.append(s) for t in a: print(*sorted(map(int,t)))
a=[] import sys for s in sys.stdin: s=s.strip() if s=='0 0':break a.append(s) for t in a: print(*sorted(map(int,t.split())))
[["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
52
while True: x,y = map(int,input().split) if (x,y) == (0,0): break else: if x < y: print(x,y) else: print(y,x)
while True: x,y = map(int,input().split()) if (x,y) == (0,0): break else: if x < y: print(x,y) else: print(y,x)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
52
package main import ( "strconv" "bufio" "os" "strings" "fmt" ) /* <url:http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C> */ func init() { } func main() { scanner := bufio.NewScanner(os.Stdin) for { scanner.Scan() stringInput := scanner.Text() stringSplited := strings.Split(stringInp...
package main import ( "strconv" "bufio" "os" "strings" "fmt" ) /* <url:http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C> */ func init() { } func main() { scanner := bufio.NewScanner(os.Stdin) for { scanner.Scan() stringInput := scanner.Text() stringSplited := strings.Split(stringInp...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 436, 31, 432, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 165], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
7
390
package main import "fmt" func main() { var x, y int fmt.Scanf("%d %d", &x, &y) for x != 0 && y != 0 { if x < y { fmt.Println(x, y) } else { fmt.Println(y, x) } fmt.Scanf("%d %d", &x, &y) } }
package main import "fmt" func main(){ var x, y int fmt.Scanf("%d %d", &x, &y) for x != 0 || y != 0{ if x < y{ fmt.Println(x, y) }else{ fmt.Println(y, x) } fmt.Scanf("%d %d", &x, &y) } }
[["-", 0, 435, 8, 196, 0, 7, 0, 16, 17, 98], ["+", 0, 435, 8, 196, 0, 7, 0, 16, 17, 106]]
7
90
W,H,x,y,r = [int(i) for i in input().split()] if x + r <= W and y - r >= 0 and x - r >= 0 and + r <= H: print("Yes") else: print("No")
W,H,x,y,r = [int(i) for i in input().split()] if x + r <= W and y - r >= 0 and x - r >= 0 and y + r <= H: print("Yes") else: print("No")
[["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]]
5
64
w,h,x,y,r = map(int, input().split()) if r <= x <= w-r and r <= y <= h: print("Yes") else: print("No")
w,h,x,y,r = map(int, input().split()) if r <= x <= w-r and r <= y <= h-r: print("Yes") else: print("No")
[["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 33], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
51
n = input().split() W = int(n[0]) H = int(n[1]) x = int(n[2]) y = int(n[3]) r = int(n[4]) top = y + r bottom = y - r right = x + r left = x - r if top < H and bottom > 0 and right < W and left > 0: print("Yes") else: print("No")
n = input().split() W = int(n[0]) H = int(n[1]) x = int(n[2]) y = int(n[3]) r = int(n[4]) top = y + r bottom = y - r right = x + r left = x - r if top <= H and bottom >= 0 and right <= W and left >= 0: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
105
# coding: UTF-8 # ????????¢?????????????????????????????????????????????????????°???????????????????????????????????? # ????????¢?????????????????????????????¨??????????????????????????§?¨? (W,H) ???????????????????????? # ????????????????????????????????§?¨? (x,y) ??¨?????? r ??§????????????????????? W, H, x, y, r = ...
# coding: UTF-8 # ????????¢?????????????????????????????????????????????????????°???????????????????????????????????? # ????????¢?????????????????????????????¨??????????????????????????§?¨? (W,H) ???????????????????????? # ????????????????????????????????§?¨? (x,y) ??¨?????? r ??§????????????????????? W, H, x, y, r = ...
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
64
inl=list(map(int, input().split())) if inl[0]>=inl[2]+inl[4] and inl[2]+inl[4]>=0 and inl[1]>=inl[3]+inl[4] and inl[3]+inl[4]>=0: print("Yes") else: print("No")
inl=list(map(int, input().split())) if inl[0]>=inl[2]+inl[4] and inl[2]-inl[4]>=0 and inl[1]>=inl[3]+inl[4] and inl[3]-inl[4]>=0: print("Yes") else: print("No")
[["-", 31, 679, 31, 679, 12, 666, 0, 657, 17, 72], ["+", 31, 679, 31, 679, 12, 666, 0, 657, 17, 33], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 33]]
5
86
# W,H,x,y,r input_data = input().split(' ') W, H, x, y, r = [int(i) for i in input_data] if (x-r) >= 0 or (y-r) >= 0 and W >= (x+r) and H >= (y+r): print("Yes") else: print("No")
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_D # W,H,x,y,r input_data = input().split(' ') W, H, x, y, r = [int(i) for i in input_data] if (x-r) >= 0 and (y-r) >= 0 and W >= (x+r) and H >= (y+r): print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 57, 15, 679, 31, 679, 31, 679, 17, 355]]
5
80
whxyr = input().split() [w, h, x, y, r] = [int(x) for x in whxyr] if 0 < x - r and x + r < w and 0 < y - r and y + r < h: print("Yes") else: print("No")
whxyr = input().split() [w, h, x, y, r] = [int(x) for x in whxyr] if 0 <= x - r and x + r <= w and 0 <= y - r and y + r <= h: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
70
#coding: UTF-8 def Circle(W,H,x,y,r): if x < W - r and x > r and y < H-r and y > r: return "Yes" else: return "No" if __name__=="__main__": a = input().split(" ") ans = Circle(int(a[0]),int(a[1]),int(a[2]),int(a[3]),int(a[4])) print(ans)
#coding: UTF-8 def Circle(W,H,x,y,r): if x <= W - r and x >= r and y <= H-r and y >= r: return "Yes" else: return "No" if __name__=="__main__": a = input().split(" ") ans = Circle(int(a[0]),int(a[1]),int(a[2]),int(a[3]),int(a[4])) print(ans)
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 8, 19...
5
113
list = list(map(int, input().split())) x0 = list[2] - list[4] y0 = list[3] - list[4] x1 = list[2] + list[4] y1 = list[3] + list[4] if x0 > 0 and y0 > 0 and x1 < list[0] and y1 < list[1]: print("Yes") else : print("No")
list = list(map(int, input().split())) x0 = list[2] - list[4] y0 = list[3] - list[4] x1 = list[2] + list[4] y1 = list[3] + list[4] if x0 >= 0 and y0 >= 0 and x1 <= list[0] and y1 <= list[1]: print("Yes") else : print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
98
l = input().split() l = list(map(int, l)) if l[2]-l[4] >=0 and l[3]-l[4] >=0 or l[2]+l[4] <=l[0] and l[3]+l[4] <=l[1]: print("Yes") else: print("No")
l = input().split() l = list(map(int, l)) if l[2]-l[4] >=0 and l[3]-l[4] >=0 and l[2]+l[4] <=l[0] and l[3]+l[4] <=l[1]: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355]]
5
89
W, H, x, y, r = [int(x) for x in input().split()] print('Yes' if x - r < 0 or y - r < 0 or x + r > W or y + r > H else 'No')
W, H, x, y, r = [int(x) for x in input().split()] print('No' if x - r < 0 or y - r < 0 or x + r > W or y + r > H else 'Yes')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
60
m = list(map(int,input().split())) W = m[0] H = m[1] x = m[2] y = m[3] r = m[4] if 0 <= x-r and x+r <= W: if 0 <= y-r and y+r <= H: print("Yes") print("No")
m = list(map(int,input().split())) W = m[0] H = m[1] x = m[2] y = m[3] r = m[4] if 0 <= x-r and x+r <= W and 0 <= y-r and y+r <= H: print("Yes") else: print("No")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102], ["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]]
5
85
# coding: utf-8 W,H,x,y,r=map(int,input().split()) if 0<x-r and 0<y-r and x+r<W and y+r<H: print("Yes") else: print("No")
# coding: utf-8 W,H,x,y,r=map(int,input().split()) if 0<=x-r and 0<=y-r and x+r<=W and y+r<=H: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
62
x = input() y = x.split(" ") y = [int(z) for z in y] w = y[0] h = y[1] x = y[2] r = y[4] y = y[3] if (x < w-r and x > r) and (y < h-r and y > r): print("Yes") else: print("No")
x = input() y = x.split(" ") y = [int(z) for z in y] w = y[0] h = y[1] x = y[2] r = y[4] y = y[3] if (x <= w-r and x >= r) and (y <= h-r and y >= r): print("Yes") else: print("No")
[["-", 15, 679, 31, 23, 0, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 23, 0, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 23, 0, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 23, 0, 679, 12, 666, 667, 20], ["-", 15, 679, 12, 23, 0, 679, 31, 666, 667, 18], ["+", 15, 679, 12, 23, 0, 679, 31, 666, 667, 19], ["-", 15, 679, 12, ...
5
96
import sys [Width, Height, x, y, r] = [int(x) for x in sys.stdin.readline().stlip()] lower_x = r lower_y = r upper_x = Width - r upper_y = Height -r if lower_x <= x <= upper_x and lower_y <= y <= upper_y: print("Yes") else: print("No")
import sys [Width, Height, x, y, r] = [int(x) for x in sys.stdin.readline().split()] lower_x = r lower_y = r upper_x = Width - r upper_y = Height -r if lower_x <= x <= upper_x and lower_y <= y <= upper_y: print("Yes") else: print("No")
[["-", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22]]
5
77
if __name__ == '__main__': key_in = input() data = key_in.split(' ') # ???????????? W, H, x, y, r ?????? W = int(data[0]) H = int(data[1]) x = int(data[2]) y = int(data[3]) r = int(data[4]) result = False if r < x < W-r and r < y < H-r: result = True if result is T...
if __name__ == '__main__': key_in = input() data = key_in.split(' ') # ???????????? W, H, x, y, r ?????? W = int(data[0]) H = int(data[1]) x = int(data[2]) y = int(data[3]) r = int(data[4]) result = False if r <= x <= W-r and r <= y <= H-r: result = True if result ...
[["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 64, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]]
5
110
W, H, x, y, r = map(int, input().split()) if (x-r > 0 and y-r > 0 and x+r < W and y+r < H): print("Yes") else: print("No")
W, H, x, y, r = map(int, input().split()) if (x-r >= 0 and y-r >= 0 and x+r <= W and y+r <= H): print("Yes") else: print("No")
[["-", 0, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["+", 0, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["-", 0, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 15, 23, 0, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 23, 0, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15...
5
63
import sys input_list = input().split(" ") input_list = list(map(int, input_list)) w = input_list[0] h = input_list[1] x = input_list[2] y = input_list[3] r = input_list[4] if 0 < x - r and x + r < w: if 0 < y - r and y + r < h: print("Yes") sys.exit() print("No")
import sys input_list = input().split(" ") input_list = list(map(int, input_list)) w = input_list[0] h = input_list[1] x = input_list[2] y = input_list[3] r = input_list[4] if 0 <= x - r and x + r <= w: if 0 <= y - r and y + r <= h: print("Yes") sys.exit() print("No")
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 64, 196, 0, 57, 1...
5
98
ciar = input().split() W = int(ciar[0]) H = int(ciar[1]) x = int(ciar[2]) y = int(ciar[3]) r = int(ciar[4]) if (x + r) <= W and (x - r) >= 0 : if (y + r) <= H and (y - r) >= 0 : print("Yes") print("No") else : print("No")
ciar = input().split() W = int(ciar[0]) H = int(ciar[1]) x = int(ciar[2]) y = int(ciar[3]) r = int(ciar[4]) if (x + r) <= W and (x - r) >= 0 : if (y + r) <= H and (y - r) >= 0 : print("Yes") else : print("No") else : print("No")
[["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 102]]
5
108
[w,h,x,y,r] = map(int, input().split()) print("Yes" if r < x and x < w - r and r < y and y < h - r else "No")
[w,h,x,y,r] = map(int, input().split()) print("Yes" if r <= x and x <= w - r and r <= y and y <= h - r else "No")
[["-", 0, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 0, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 0, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 41, 0, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 41, 0, 679, 31, 679, 12, 666, 667, 19], ["-", 3, 4, 0, 41...
5
54
W,H,x,y,r = list(map(int, input().split())) if (0 < x-r) & (x+r < W) & (0 < y-r) & (y+r < H): print("Yes") else: print("No")
W,H,x,y,r = list(map(int, input().split())) if (0 <= x-r) & (x+r <= W) & (0 <= y-r) & (y+r <= H): print("Yes") else: print("No")
[["-", 31, 657, 31, 657, 31, 23, 0, 666, 667, 18], ["+", 31, 657, 31, 657, 31, 23, 0, 666, 667, 19], ["-", 31, 657, 31, 657, 12, 23, 0, 666, 667, 18], ["+", 31, 657, 31, 657, 12, 23, 0, 666, 667, 19], ["-", 15, 657, 31, 657, 12, 23, 0, 666, 667, 18], ["+", 15, 657, 31, 657, 12, 23, 0, 666, 667, 19], ["-", 0, 57, 15, 65...
5
72
W,H,x,y,r = list(map(int,input().split(" "))) if x + r <= W and y + r <= H and x - r > 0 and y - r > 0: print("Yes") else: print("No")
W,H,x,y,r = list(map(int,input().split(" "))) if x + r <= W and y + r <= H and x - r >= 0 and y - r >= 0: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
67
W,H,x,y,r = map(int,input().split()) if x-r>0 and y-r>0: if x+r<W and y+r<H: print('Yes') else : print('No') else : print('No')
W,H,x,y,r = map(int,input().split()) if x-r>=0 and y-r>=0: if x+r<=W and y+r<=H: print('Yes') else : print('No') else : print('No')
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20], ["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 64, 196, 0, 57, 1...
5
70
W, H, x, y, r = [int(i) for i in input().split()] ans = "Yes" if x - r < 0 or W <= x + r: ans = "No" if y - r < 0 or H <= y + r: ans = "No" print(ans)
W, H, x, y, r = [int(i) for i in input().split()] ans = "Yes" if x - r < 0 or W < x + r: ans = "No" if y - r < 0 or H < y + r: ans = "No" print(ans)
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18]]
5
71
W,H,x,y,r=[int(x) for x in input().split()] if r<x<(W-r) and r<y<(H-r): print('Yes') else: print('No')
W,H,x,y,r=[int(x) for x in input().split()] if r<=x<=(W-r) and r<=y<=(H-r): print('Yes') else: print('No')
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
61
W, H, x, y, r = map(int, input().split()) if 0<=x-r and x+r<=W: if 0<y-r and y+r<H: print('Yes') else: print('No') else: print('No')
W, H, x, y, r = map(int, input().split()) if 0<=x-r and x+r<=W: if 0<=y-r and y+r<=H: print('Yes') else: print('No') else: print('No')
[["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 64, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]]
5
70
W,H,x,y,r = map(int,input().split(' ')) if x -r < 0 or x + r > W or y +r > H: print('No') else: print('Yes')
W,H,x,y,r = map(int,input().split(' ')) if x - r < 0 or y - r < 0 or x + r > W or y + r > H: print('No') else: print('Yes')
[["+", 31, 679, 31, 679, 12, 666, 0, 657, 31, 22], ["+", 31, 679, 31, 679, 12, 666, 0, 657, 17, 33], ["+", 31, 679, 31, 679, 12, 666, 0, 657, 12, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 354]]
5
58
w, h, x, y, r = list(map(int, input().split())) if x + r < w and x - r > 0 and y + r < h and y - r > 0: print("Yes") else: print("No")
w, h, x, y, r = list(map(int, input().split())) if x + r <= w and x - r >= 0 and y + r <= h and y - r >= 0: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
64
W, H, x, y, r = list(map(int, input().split())) flag = 'No' if x-r < 0 or x+r > W: flag = 'Yes' if y-r < 0 or y+r > H: flag = 'Yes' print(flag)
W, H, x, y, r = list(map(int, input().split())) flag = 'Yes' if x-r < 0 or x+r > W: flag = 'No' if y-r < 0 or y+r > H: flag = 'No' print(flag)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
70
def in_rectangle(w, h, x, y, r): # ????????????????????? left = x - r right = x + r floor = y - r ceil = y + r if 0 < left and right < w and 0 < floor and ceil < h: return True return False w, h, x, y, r = map(int, input().split()) if in_rectangle(w, h, x, y, r): print("Yes") ...
def in_rectangle(w, h, x, y, r): # ????????????????????? left = x - r right = x + r floor = y - r ceil = y + r if 0 <= left and right <= w and 0 <= floor and ceil <= h: return True return False w, h, x, y, r = map(int, input().split()) if in_rectangle(w, h, x, y, r): print("Ye...
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 8, 19...
5
106
W,H,x,y,r=map(int,input().split()) if not x+r>W or r>x or r>y or y+r>H: print("Yes") else : print("No")
W,H,x,y,r=map(int,input().split()) if not (x+r>W or r>x or r>y or y+r>H):print("Yes") else:print("No")
[["+", 0, 656, 0, 57, 15, 681, 28, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 681, 28, 23, 0, 25]]
5
58
W, H, x, y, r= map(int,input().split()) if W-r >= x and H-r >= y: print("Yes") else: print("No")
W, H, x, y, r= map(int,input().split()) if W-r >= x >= r and H-r >= y >= r: print("Yes") else: print("No")
[["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22]]
5
49
w, h, x, y, r = input().split() w = int(w) h = int(h) x = int(x) y = int(y) r = int(r) if w-r >= x and x >= r and h-r > y and y > r: print("Yes") else: print("No")
w, h, x, y, r = input().split() w = int(w) h = int(h) x = int(x) y = int(y) r = int(r) if w-r >= x and x >= r and h-r >= y and y >= r: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
82
def CinR(l): if l[2] + l[4] >= 0 and l[2] + l[4] <= l[0]: if l[3] + l[4] >= 0 and l[3] + l[4] <= l[1]: print("Yes") else: print("No") else: print("No") if __name__ == '__main__': N = input().split(" ") l = [] for i in N: l.append(int(i)) ...
def CinR(l): if l[2] - l[4] >= 0 and l[2] + l[4] <= l[0]: if l[3] - l[4] >= 0 and l[3] + l[4] <= l[1]: print("Yes") else: print("No") else: print("No") if __name__ == '__main__': N = input().split(" ") l = [] for i in N: l.append(int(i)) ...
[["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 33]]
5
125
def main(arg): arg = str(arg) w, h, x, y, r = [int(x)for x in arg.split(" ")] if (y+r) <= w and (x+r) <= h and r <= x and r <= y: return "Yes" return "No" if __name__ == '__main__': print(main(input()))
def main(arg): arg = str(arg) w, h, x, y, r = [int(x)for x in arg.split(" ")] if (y+r) <= h and (x+r) <= w and r <= x and r <= y: return "Yes" return "No" if __name__ == '__main__': print(main(input()))
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 0, 22], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22]]
5
88
x=list(map(int,input().split())) if x[2]-x[3]<0 or x[2]+x[4]>x[0] or x[3]-x[4]<0 or x[3]+x[4]: print("No") else:print("Yes")
x=list(map(int,input().split())) if x[2]-x[4]<0 or x[2]+x[4]>x[0] or x[3]-x[4]<0 or x[3]+x[4]>x[1]: print("No") else:print("Yes")
[["-", 31, 679, 31, 666, 0, 657, 12, 206, 206, 612], ["+", 31, 679, 31, 666, 0, 657, 12, 206, 206, 612], ["+", 15, 679, 12, 666, 0, 657, 12, 206, 0, 73], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 0, 70], ["+", 0, 57, 15, 679, ...
5
81
W,H,x,y,r = list(map(int,input().split())) if (0 <= x-r and x+r <= W) and ( 0 <= y-r and y+r <= M): print('Yes') else: print('No')
W,H,x,y,r = map(int,input().split()) if (0 <= x-r and x+r <= W) and (0<= y-r and y+r <= H): print('Yes') else: print('No')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 15, 679, 12, 23, 0, 679, 12, 666, 0, 22], ["+", 15, 679, 12, 23, 0, 679, 12, 666, 0, 22]]
5
68
W,H,x,y,r = map(int,input().split()) if (0 <= x-r and x+r <= W) and (0 <= y-r and y+r <=h): print('Yes') else: print('No')
w,h,x,y,r = map(int,input().split()) if (0 <= x-r and x+r <= w) and (0 <= y-r and y+r <= h): print('Yes') else: print('No')
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 15, 679, 31, 23, 0, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 23, 0, 679, 12, 666, 0, 22]]
5
65
W,H,x,y,r = map(int, input().split()) if r <= x and x <= W and r <= y and y <= H: print('Yes') else: print('No')
W,H,x,y,r = map(int, input().split()) if r <= x and x <= W - r and r <= y and y <= H - r: print('Yes') else: print('No')
[["+", 31, 679, 31, 679, 12, 666, 0, 657, 17, 33], ["+", 31, 679, 31, 679, 12, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 33], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
53
W, H, x, y, r = input().split() W = int(W) H = int(H) x = int(x) y = int(y) r = int(r) if x - r > 0\ and y - r > 0\ and x + r < W\ and y + r < H: print("Yes") else: print("No")
W, H, x, y, r = input().split() W = int(W) H = int(H) x = int(x) y = int(y) r = int(r) if x - r >= 0\ and y - r >= 0\ and x + r <= W\ and y + r <= H: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
89
W,H,x,y,z = map(int, input().split()) if (x-r >= 0 and x + r <= W) and (y-r >= 0 and y + r <= H): print("Yes") else: print("No")
W,H,x,y,r = map(int, input().split()) if (x-r >= 0 and x + r <= W) and (y - r >= 0 and y + r <= H): print("Yes") else: print("No")
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
65
W,H,x,y,r=map(int,input().split()) if W>=(x+r) and r<=x: if H>=(y+r): print('Yes') else: print('No') else: print('No')
W,H,x,y,r=map(int,input().split()) if W>=(x+r) and r<=x: if H>=(y+r) and r<=y: print('Yes') else: print('No') else: print('No')
[["+", 0, 57, 64, 196, 0, 57, 15, 679, 17, 355], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]]
5
66
W,H,x,y,r= map(int, input().split()) if W>=x+r & r<=x & r<=y & H>=y+r: print ("Yes") else: print ("No")
W,H,x,y,r= map(int, input().split()) if W>=x+r and r<=x and r<=y and H>=y+r: print ("Yes") else: print ("No")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 0, 57, 15, 679, 31, 679, 31, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
57
x = input().split() W = int(x[0]) H = int(x[1]) x = int(x[2]) y = int(x[3]) r = int(x[4]) if W >= (x + r) and H >= (y + r) and (x - r) >= 0 and (y - r) >= 0: print("Yes") else: print("No")
xmas = input().split() W = int(xmas[0]) H = int(xmas[1]) x = int(xmas[2]) y = int(xmas[3]) r = int(xmas[4]) if W >= (x + r) and H >= (y + r) and (x - r) >= 0 and (y - r) >= 0: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22]]
5
101
W, H, x, y, r = [int(i) for i in input().split()] if (r <= x <= (W - r)) and (r <= y <= (H - r)): print('Yes') else: print('NO')
W,H,x,y,r = [int(i) for i in input().split()] if (r <= x <= (W - r)) and (r <= y <= (H - r)): print('Yes') else: print('No')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
65
w,h,x,y,r =[int(i) for i in input().split()] if((x+r <= w) and (y+r <= h) and (0 <= x+r) and (0 <= y+r)): print('Yes') else: print('No')
w,h,x,y,r =[int(i) for i in input().split()] if((x+r <= w) and (y+r <= h) and (0 <= x-r) and (0 <= y-r)): print('Yes') else: print('No')
[["-", 31, 679, 12, 23, 0, 666, 0, 657, 17, 72], ["+", 31, 679, 12, 23, 0, 666, 0, 657, 17, 33], ["-", 0, 679, 12, 23, 0, 666, 0, 657, 17, 72], ["+", 0, 679, 12, 23, 0, 666, 0, 657, 17, 33]]
5
75
w, h, x, y, r = list(map(int, input().split())) print(("Yes" if x in range(r, w - r) and y in range(r, h - r) else "No"))
w, h, x, y, r = list(map(int, input().split())) print(("Yes" if x in range(r, w - r + 1) and y in range(r, h - r + 1) else "No"))
[["+", 31, 666, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 666, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 666, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 12, 666, 0, 652, 3, 4, 0, 657, 12, 612]]
5
59
x = input().split(" ") w = int(x[0]) h = int(x[1]) x = int(x[2]) y = int(x[3]) r = int (x[4]) if x - r < 0: print("No") elif w < x + r: print("No") elif y - r < 0: print("No") elif h < y + r: print("No") else: print("Yes")
line = input().split(" ") w = int(line[0]) h = int(line[1]) x = int(line[2]) y = int(line[3]) r = int(line[4]) if x - r < 0: print("No") elif w < x + r: print("No") elif y - r < 0: print("No") elif h < y + r: print("No") else: print("Yes")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22]]
5
117
tmp = input() tmp = tmp.split(" ") W,H,x,y,r = list(map(int,tmp)) if x + r < W and y + r < H and x - r > 0 and y - r > 0 : print("Yes") else : print("No")
tmp = input() tmp = tmp.split(" ") W,H,x,y,r = list(map(int,tmp)) if x + r <= W and y + r <= H and x - r >= 0 and y - r >= 0 : print("Yes") else : print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 65...
5
73
w,h,x,y,r = list(map(int,input().split(" "))) if((0<x-r)and(0<y-r)and(x+r<w)and(y+r<h)): print("Yes") else: print("No")
w,h,x,y,r = list(map(int,input().split(" "))) if((0<=x-r)and(0<=y-r)and(x+r<=w)and(y+r<=h)): print("Yes") else: print("No")
[["-", 31, 679, 31, 679, 31, 23, 0, 666, 667, 18], ["+", 31, 679, 31, 679, 31, 23, 0, 666, 667, 19], ["-", 31, 679, 31, 679, 12, 23, 0, 666, 667, 18], ["+", 31, 679, 31, 679, 12, 23, 0, 666, 667, 19], ["-", 0, 679, 31, 679, 12, 23, 0, 666, 667, 18], ["+", 0, 679, 31, 679, 12, 23, 0, 666, 667, 19], ["-", 15, 23, 0, 679,...
5
77
W, H, x, y, r = list(map(int, input().split())) if x + r <= W and y + r <= H and 0 < x - r and 0 < y - r: print("Yes") else: print("No")
W, H, x, y, r = list(map(int, input().split())) if x + r <= W and y + r <= H and 0 <= x - r and 0 <= y - r: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
64
W,H,x,y,r = list(map(int,input().split())) if W+r <= x <= W-r and H+r <= y <= H-r: print("Yes") else: print("No")
W,H,x,y,r = list(map(int,input().split())) if r <= x <= W-r and r <= y <= H-r: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 31, 666, 0, 657, 31, 22], ["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72]]
5
60
W, H, x, y, r = map(int, input().split()) if (x + r) < W and (x - r) >= 0 and (y + r) < H and (y - r) >= 0 : print("Yes") else : print("No")
W, H, x, y, r = map(int, input().split()) if (x + r) <= W and (x - r) >= 0 and (y + r) <= H and (y - r) >= 0 : print("Yes") else : print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19]]
5
69
w, h, x, y, r = map(int, input().split()) if x + r <= w and x - r <= 0 and y + r >= h and y - r <= 0: print("Yes") else: print("No")
w, h, x, y, r = map(int, input().split()) if x + r <= w and x - r >= 0 and y + r <= h and y - r >= 0: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
61
W,H,x,y,r=map(int,input().split()) if y-r<0 or y+r>H: print("No") if x-r<0 or x+r>W: print("No") elif y-r>=0 and y+r<=H: print("Yes") elif x-r>=0 and x+r<=W: print("Yes")
W,H,x,y,r=map(int,input().split()) if y-r<0 or y+r>H: print("No") elif x-r<0 or x+r>W: print("No") elif y-r>=0 and y+r<=H: print("Yes") elif x-r>=0 and x+r<=W: print("Yes")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
98
W,H,x,y,r=input().split() W=int(W);H=int(H);x=int(x);y=int(y);r=int(r) if 0<x-r and x+r<W and 0<y-r and y+r<H: print("Yes") else: print("No")
W,H,x,y,r=input().split() W=int(W);H=int(H);x=int(x);y=int(y);r=int(r) if 0<=x-r and x+r<=W and 0<=y-r and y+r<=H: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
90
def pred(h, w, x, y, r): if x - r < 0 or y - r < 0 or x + r > w or y + r > h: return False else: return True a = list(map(int, input().split())) print("Yes" if pred(*a) else "No")
def pred(w, h, x, y, r): if x - r < 0 or y - r < 0 or x + r > w or y + r > h: return False else: return True a = list(map(int, input().split())) print("Yes" if pred(*a) else "No")
[["-", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22], ["-", 36, 36, 0, 656, 0, 14, 54, 54, 0, 21], ["+", 36, 36, 0, 656, 0, 14, 54, 54, 0, 21], ["+", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22]]
5
78
All=input().split() W=int(All[0]) H=int(All[1]) x=int(All[2]) y=int(All[3]) r=int(All[4]) if x+r<W and x-r>0 and y+r<H and y-r>0: print('Yes') else: print('No')
All=input().split() W=int(All[0]) H=int(All[1]) x=int(All[2]) y=int(All[3]) r=int(All[4]) if x+r<=W and x-r>=0 and y+r<=H and y-r>=0: print('Yes') else: print('No')
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 19], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 65...
5
93
W,H,x,y,r=map(int,input().split()) if x+r>W | y+r>H | x-r<0 | y-r<0: print("No") else: print("Yes")
W,H,x,y,r=map(int,input().split()) if x+r>W or y+r>H or x-r<0 or y-r<0: print("No") else: print("Yes")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 139], ["+", 0, 57, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354]]
5
61
# (c) midandfeed w, h, x, y, r = [int(x) for x in input().split()] print("Yes" if ( (((x+r) <= w)and((x-r)>=0)) and (((y+r) <= h)and((x-r)>=0)) ) else "No")
# (c) midandfeed w, h, x, y, r = [int(x) for x in input().split()] print("Yes" if ( (((x+r) <= w)and((x-r)>=0)) and (((y+r) <= h)and((y-r)>=0)) ) else "No")
[["-", 12, 23, 0, 666, 0, 23, 0, 657, 31, 22], ["+", 12, 23, 0, 666, 0, 23, 0, 657, 31, 22]]
5
83
keys = ('W', 'H', 'x', 'y', 'r') attr = {k:v for k, v in zip(keys, map(int, input().split()))} border = {'from':(attr['r'], attr['r']), 'to':(attr['W'] - attr['r'], attr['H'] - attr['r'])} if border['from'][0] < attr['x'] < border['to'][0] and border['from'][1] < attr['y'] < border['to'][1]: print('Yes') e...
keys = ('W', 'H', 'x', 'y', 'r') attr = {k:v for k, v in zip(keys, map(int, input().split()))} border = {'from':(attr['r'], attr['r']), 'to':(attr['W'] - attr['r'], attr['H'] - attr['r'])} if border['from'][0] <= attr['x'] <= border['to'][0] and border['from'][1] <= attr['y'] <= border['to'][1]: print('Yes...
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
178
W, H, x, y, r = map(int, input(), split()) if ((x-r) >= 0) and ((x+r) <= W) : if((y-r) >= 0) and ((y+r) <= H) : print ("Yes") else : print ("No") else : print ("No")
W, H, x, y, r = map(int, input().split()) if ((x-r) >= 0) and ((x+r) <= W) : if((y-r) >= 0) and ((y+r) <= H) : print ("Yes") else : print ("No") else : print ("No")
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
86
input_str = input().split(' ') W = int(input_str[0]) H = int(input_str[1]) x = int(input_str[2]) y = int(input_str[3]) r = int(input_str[4]) print('Yes' if x-r > 0 and x+r < W and y-r > 0 and y+r < H else 'No')
input_str = input().split(' ') W = int(input_str[0]) H = int(input_str[1]) x = int(input_str[2]) y = int(input_str[3]) r = int(input_str[4]) print('Yes' if x-r >= 0 and x+r <= W and y-r >= 0 and y+r <= H else 'No')
[["-", 0, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["+", 0, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["-", 0, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 41, 0, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 41, 0, 679, 31, 679, 12, 666, 667, 20], ["-", 3, 4, 0, 41...
5
91
W,H,x,y,r=[int(i) for i in input().split()] if x-r>=0 and x-r>=0 and x+r<=W and y+r<=H: print("Yes") else: print("No")
W,H,x,y,r=[int(i) for i in input().split()] if x-r>=0 and y-r>=0 and x+r<=W and y+r<=H: print("Yes") else: print("No")
[["-", 31, 679, 31, 679, 12, 666, 0, 657, 31, 22], ["+", 31, 679, 31, 679, 12, 666, 0, 657, 31, 22]]
5
65
a=list(map(int,input().split())) if (a[2]+a[4])<=a[0] and (a[2]-a[4])>=a[0] and (a[3]+a[4])<=a[1] and (a[3]-a[4])>=0: print("Yes") else: print("No")
a=list(map(int,input().split())) if (a[2]+a[4])<=a[0] and (a[2]-a[4])>=0 and (a[3]+a[4])<=a[1] and (a[3]-a[4])>=0: print("Yes") else: print("No")
[["-", 31, 679, 31, 679, 12, 666, 0, 206, 51, 22], ["-", 31, 679, 31, 679, 12, 666, 0, 206, 0, 70], ["-", 31, 679, 31, 679, 12, 666, 0, 206, 0, 73]]
5
97
a=input().split() a=[int(x) for x in a] W=a[0] H=a[1] x=a[2] y=a[3] r=a[4] if x - r > 0 and x + r < W and y - r > 0 and y + r < H: print('Yes') else: print('No')
a=input().split() a=[int(x) for x in a] W=a[0] H=a[1] x=a[2] y=a[3] r=a[4] if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H: print('Yes') else: print('No')
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 65...
5
90
W,H,x,y,r=map(int,input().split()) print("Yes" if r <= x <= W-r and r <= y < H-r else "No")
W,H,x,y,r=map(int,input().split()) print("Yes" if r <= x <= W-r and r <= y <= H-r else "No")
[["-", 3, 4, 0, 41, 0, 679, 12, 666, 667, 18], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 667, 19]]
5
48
# AOJ Circle in a Rctangle def main() : W, H, x, y, r = [int(i) for i in input().split()] if ((x-r)>0) and ((x+r)<W) and ((y-r)>0) and ((y+r)<H) : print("Yes") else : print("No") if __name__ == '__main__' : main()
def main() : W, H, x, y, r = [int(i) for i in input().split()] if ((x-r)>=0) and ((x+r)<=W) and ((y-r)>=0) and ((y+r)<=H) : print("Yes") else : print("No") if __name__ == '__main__' : main()
[["-", 31, 679, 31, 679, 31, 23, 0, 666, 667, 47], ["+", 31, 679, 31, 679, 31, 23, 0, 666, 667, 20], ["-", 31, 679, 31, 679, 12, 23, 0, 666, 667, 18], ["+", 31, 679, 31, 679, 12, 23, 0, 666, 667, 19], ["-", 15, 679, 31, 679, 12, 23, 0, 666, 667, 47], ["+", 15, 679, 31, 679, 12, 23, 0, 666, 667, 20], ["-", 0, 57, 15, 67...
5
97
W,H,x,y,r=map(int,input().split()) print("Yes"if r<=x<=W-r & r<=y<=H-r else"No")
W,H,x,y,r=map(int,input().split()) print("Yes"if r<=x<=W-r and r<=y<=H-r else"No")
[["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 67], ["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355]]
5
48
# coding:utf-8 array = list(map(int, input().split())) W = array[0] H = array[1] x = array[2] y = array[3] r = array[4] if x + r <= W and y + r <= H or x - r <= 0 and y + r <= 0: print("Yes") else: print("No")
# coding:utf-8 array = list(map(int, input().split())) W = array[0] H = array[1] x = array[2] y = array[3] r = array[4] if x + r <= W and y + r <= H and x - r >= 0 and y - r >= 0: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["-", 0, 57, 15, 679, 12, 679, 31, 666, 667, 19], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 15, 679, 12, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 33], ["-", 0, 57, 15, 679, 12...
5
87
if __name__ == '__main__': l = input().split() for i in range(l): l[i] = int(l[i]) W, H, x, y, r = l[0], l[1], l[2], l[3], l[4] if x >= r and y >= r: if x <= W - r and y <= H - r: print("Yes") else: print("No") else: print("No")
if __name__ == '__main__': l = input().split() for i in range(len(l)): l[i] = int(l[i]) W, H, x, y, r = l[0], l[1], l[2], l[3], l[4] if x >= r and y >= r: if x <= W - r and y <= H - r: print("Yes") else: print("No") else: print("No")
[["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
114
W,H,x,y,r = map(int, input().split()) ## -100<=x,y<=100 and 0<W,H,r<100 if W-x >= r and H-y >= r: if r < x or r < y: print('Yes') else: print('No') else: print('No')
W,H,x,y,r = map(int, input().split()) ## -100<=x,y<=100 and 0<W,H,r<100 if W-x >= r and H-y >= r: if r <= x and r <= y: print('Yes') else: print('No') else: print('No')
[["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 57, 64, 196, 0, 57, 15, 679, 17, 354], ["+", 0, 57, 64, 196, 0, 57, 15, 679, 17, 355], ["-", 64, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]]
5
67
x = input() x = x.split(" ") w = int(x[0]) h = int(x[1]) x1 = int(x[2]) y = int(x[3]) r = int(x[4]) if x1 + r > w or x1 - r < 0 or y + r > h or y - r < 0: print("NO") else: print("YES")
x = input() x = x.split(" ") w = int(x[0]) h = int(x[1]) x1 = int(x[2]) y = int(x[3]) r = int(x[4]) if x1 + r > w or x1 - r < 0 or y + r > h or y - r < 0: print("No") else: print("Yes")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
99
#Branch on Condition - Circle in a Rectangle W,H,x,y,r=map(int,input().split()) if x+r>=W or y+r>=H or x-r<0 or y-r<0: print("No") else: print("Yes")
#Branch on Condition - Circle in a Rectangle W,H,x,y,r=map(int,input().split()) if x+r>W or y+r>H or x-r<0 or y-r<0: print("No") else: print("Yes")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 20], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 667, 47], ["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 20], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 47]]
5
62
def cinr(i): tmp = (i.split(" ")) W = int(tmp[0]) H = int(tmp[1]) x = int(tmp[2]) y = int(tmp[3]) r = int(tmp[4]) if x >= 0 + r and x <= W - r and y >= 0 + r and y <= H - r: print("YES") else: print("NO") return 0 if __name__ == "__main__": ret = cinr(input())
def cinr(i): tmp = (i.split(" ")) W = int(tmp[0]) H = int(tmp[1]) x = int(tmp[2]) y = int(tmp[3]) r = int(tmp[4]) if x >= 0 + r and x <= W - r and y >= 0 + r and y <= H - r: print("Yes") else: print("No") return 0 if __name__ == "__main__": ret = cinr(input())
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
119
l = list(map(int, input().split())) W = l[0] H = l[1] x = l[2] y = l[3] r = l[4] left_x = x - r right_x = x + r top_y = y + r bottom_y = y - r if left_x >= W and right_x <= W and top_y <= H and bottom_y >= H: print("Yes") else: print("No")
l = list(map(int, input().split())) W = l[0] H = l[1] x = l[2] y = l[3] r = l[4] left_x = x - r right_x = x + r top_y = y + r bottom_y = y - r if left_x >= 0 and right_x <= W and top_y <= H and bottom_y >= 0: print("Yes") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 0, 612], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]]
5
98