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
x = input().split() i = map(int,x) a = i[0] b = i[1] if a < b: print('a < b') elif a == b: print('a == b') else: print('a > b')
x = input().split() i = list(map(int,x)) a = i[0] b = i[1] if a > b: print('a > b') elif a == b: print('a == b') else: print('a < b')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
59
x=input().split() y=list(map(int,x)) a=y[0] b=y[1] if a < b: print('a<b') elif a > b: print('a>b') else: print('a == b')
x=input().split() y=list(map(int,x)) a=y[0] b=y[1] if a < b: print('a < b') elif a > b: print('a > b') else: print('a == b')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
62
a,b = input().split() a = int(a) b = int(b) if a == b: print('a== b') elif a < b: print('a < b') else : print('a > b')
a,b = input().split() a = int(a) b = int(b) if a == b: print('a == b') elif a < b: print('a < b') else : print('a > b')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
53
s=input().rstrip().split(' ') a=s[0] b=s[1] if a>b: print("a > b") elif a<b: print("a < b") else: print("a == b")
s=input().rstrip().split(' ') a=int(s[0]) b=int(s[1]) if a>b: print("a > b") elif a<b: print("a < b") else: print("a == b")
[["+", 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]]
5
58
l = input().split() a, b = list(map(int, l)) if a > b: c = '>' elif a < b: c = '<' else: c = '==' print(a, c, b)
l = input().split() a, b = list(map(int, l)) if a > b: c = '>' elif a < b: c = '<' else: c = '==' print('a', c, 'b')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
57
a, b = map(int, raw_input().split()) if a > b: print ("a > b") elif a == b: print ("a == b") else : print ("a < b")
a, b = map(int, input().split()) if a > b: print ("a > b") elif a == b: print ("a == b") else : print ("a < b")
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
46
a, b = map(int, input().split()) if a << b: print('a < b') elif a >> b: print('a > b') elif a == b: print('a == b')
a, b = map(int, input().split()) if a < b: print('a < b') elif a > b: print('a > b') elif a == b: print('a == b')
[["-", 36, 36, 0, 656, 0, 57, 15, 657, 17, 151], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["-", 0, 656, 0, 57, 75, 665, 15, 657, 17, 152], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47]]
5
49
[a,b] = input().split() a = int(a) b= int(b) if(a == b): print('a = b') elif(a > b): print("a > b") else: print("a < b")
[a,b] = input().split() a = int(a) b= int(b) if(a == b): print('a == b') elif(a > b): print("a > b") else: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
59
a, b = list(map(int, input().split())) if a < b: result = "a < b" elif a == b: result = "A == b" else: result = "a > b" print(result)
a, b = list(map(int, input().split())) if a < b: result = "a < b" elif a == b: result = "a == b" else: result = "a > b" print(result)
[["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
50
num_list=input().split() a=int(num_list[0]) b=int(num_list[1]) if a<b: print('a<b') elif a>b: print('a>b') else : print('a==b')
num_list=input().split() a=int(num_list[0]) b=int(num_list[1]) if a<b: print('a < b') elif a>b: print('a > b') else : print('a == b')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
57
x = list(input().split(" ")) a = int(x[0]) b = int(x[1]) if a<b: print("a<b") elif a>b: print("a>b") else: print("a==b")
x = list(input().split(" ")) a = int(x[0]) b = int(x[1]) if a<b: print("a < b") elif a>b: print("a > b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
63
a, b = map(int, input().split()) print("a > b" if a > b else "a < b" if a < b else "a = b")
a, b = map(int, input().split()) print("a > b" if a > b else "a < b" if a < b else "a == b")
[["-", 3, 4, 0, 41, 0, 41, 0, 557, 0, 6], ["+", 3, 4, 0, 41, 0, 41, 0, 557, 0, 6]]
5
38
z = input() a,b = z.split() a1 = int(a) b1 = int(b) if a1 < b1: print("a<b") elif a1 > b1: print("a>b") else: print("a==b")
z = input() a,b = z.split() a1 = int(a) b1 = int(b) if a1 < b1: print("a < b") elif a1 > b1: print("a > b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
56
x = input().split() y = list(map(int, x)) a = y[0] b = y[1] if a > b: print("a > b") elif a == b: print("a = b") elif a < b: print("a < b")
x = input().split() y = list(map(int, x)) a = y[0] b = y[1] if a > b: print("a > b") elif a == b: print("a == b") elif a < b: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
65
a, b = map(int, input().split) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
a, b = map(int, input().split()) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
44
deglist = input().split(" ") a = int(deglist[0]) b = int(deglist[1]) if a == b: print("a==b") elif a > b: print("a > b") else: print("a < b")
deglist = input().split(" ") a = int(deglist[0]) b = int(deglist[1]) if a == b: print("a == b") elif a > b: print("a > b") else: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
60
ab = [int(i) for i in input().split()] a = ab[0] b = ab[1] if a < b: print("a < b") elif a > b: print("a > b") else: print("a = b")
ab = [int(i) for i in input().split()] a = ab[0] b = ab[1] if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
60
# -*-coding:utf-8 import fileinput import math def main(): for line in fileinput.input(): a, b = list(map(int, line.strip().split())) if (a < b): print('a < b') elif (a == b): print('a == b') else: print('%d > %d') if __name__ == '__main__': ...
# -*-coding:utf-8 import fileinput import math def main(): for line in fileinput.input(): a, b = list(map(int, line.strip().split())) if (a < b): print('a < b') elif (a == b): print('a == b') else: print('a > b') if __name__ == '__main__': ...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
84
def main(): a, b = map(int, input().split()) if a > b: symbol = ">" elif a < b: symbol = "<" else: symbol = "=" print("a " + symbol + " b") if __name__ == "__main__": main()
def main(): a, b = map(int, input().split()) if a > b: symbol = ">" elif a < b: symbol = "<" else: symbol = "==" print("a " + symbol + " b") if __name__ == "__main__": main()
[["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
70
a,b=map(int,input().split()) print(a,'<' if a<b else '>' if a>b else '==',b)
a,b=map(int,input().split()) print('a','<'if a<b else'>'if a>b else'==','b')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
42
a,b=map(int,input().split()) if(a>b): print("a>b") elif(a<b): print("a<b") elif(a==b): print("a==b")
a,b=map(int,input().split()) if(a>b): print("a > b") elif(a<b): print("a < b") elif(a==b): print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
55
instr = input() # instr = "6 5" instrSpl = instr.split() a = int(instrSpl[0]) b = int(instrSpl[1]) if a > b: print("a > b") elif a == b: print("a = b") else: print("a < b")
instr = input() # instr = "6 5" instrSpl = instr.split() a = int(instrSpl[0]) b = int(instrSpl[1]) if a > b: print("a > b") elif a == b: print("a == b") else: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
61
a = input().split() print('a') if(int(a[0]) < int(a[1])): print("<", end=' ') elif(int(a[0]) == int(a[1])): print("==", end=' ') else: print(">", end=' ') print('b')
a = input().split() print('a', end=' ') if(int(a[0]) < int(a[1])): print("<", end=' ') elif(int(a[0]) == int(a[1])): print("==", end=' ') else: print(">", end=' ') print('b')
[["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
97
from builtins import str input_lines = input() data = input_lines.split() if str(data[0]) == str(data[1]): print("a == b") elif str(data[0]) > str(data[1]): print("a > b") else : print("a < b")
from builtins import str, int input_lines = input() data = input_lines.split() if int(data[0]) == int(data[1]): print("a == b") elif int(data[0]) > int(data[1]): print("a > b") else : print("a < b")
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 21], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22]]
5
70
str_input = input() list_input = str_input.split(" ") a = int(list_input[0]) b = int(list_input[1]) if a > b: print("a>b") elif a < b: print("a<b") else: print("a==b")
str_input = input() list_input = str_input.split(" ") a = int(list_input[0]) b = int(list_input[1]) if a > b: print("a > b") elif a < b: print("a < b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
63
a,b=input().split() a=int(a) b=int(b) if a>b : print("a>b") elif a<b : print("a<b") else : print("a==b")
a,b=input().split() a=int(a) b=int(b) if a>b : print("a > b") elif a<b : print("a < b") else : print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
53
a,b=map(int,input().split()) x="a==b" if a==b else 1 if x==1: x="a>b" if a>b else "a<b" print(x)
a,b=map(int,input().split()) x="a == b" if a==b else 1 if x==1: x="a > b" if a>b else "a < b" print(x)
[["-", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6]]
5
49
l = list(map(int, input().split())) if l[0] == l[1]: print("a == b") elif l[0] > l[1]: print("a > b") print("a < b")
l = list(map(int, input().split())) if l[0] == l[1]: print("a == b") elif l[0] > l[1]: print("a > b") else: print("a < b")
[["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]]
5
57
x = input().split() a = x[0] b = x[1] if a == b: print('a == b') elif a > b: print('a > b') elif a < b: print('a < b')
x = input().split() a = int(x[0]) b = int(x[1]) if a == b: print('a == b') elif a > b: print('a > b') elif a < b: print('a < b')
[["+", 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]]
5
54
a,b=input().split() a=int(a) b=int(b) if a<b: print("a<b") if a>b: print("a>b") if a==b: print("a==b")
a,b=input().split() a=int(a) b=int(b) if a<b: print("a < b") if a>b: print("a > b") if a==b: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
56
n = input().split() n = list(map(int, n)) if (n[0] > n[1]): print("a>b") elif(n[0] == n[1]): print("a==b") else: print("a<b")
n = input().split() n = list(map(int, n)) if (n[0] > n[1]): print("a > b") elif(n[0] == n[1]): print("a == b") else: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
66
a, b = [int(i) for i in input().split()] sign = '' if a > b: sign = '>' elif a < b: sign = '<' else: sign = '=' print('a', sign, 'b')
a, b = [int(i) for i in input().split()] sign = '' if a > b: sign = '>' elif a < b: sign = '<' else: sign = '==' print('a', sign, 'b')
[["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
63
tmp=input().split() a=tmp[0] b=tmp[1] if a>b: print('a > b') elif a<b: print('a < b') elif a==b: print('a == b')
tmp=input().split() a=int(tmp[0]) b=int(tmp[1]) if a>b: print('a > b') elif a<b: print('a < b') elif a==b: print('a == b')
[["+", 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]]
5
54
# smalllarge.py a, b = map(int, input().split()) if (a<b): print ("a < b") if (a>b): print ("a > b") if (a==b): print ("a equals to b")
# smalllarge.py a, b = map(int, input().split()) if (a<b): print ("a < b") if (a>b): print ("a > b") if (a==b): print ("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
56
a=[int(i) for i in input().split()] if a[0]>a[1]: print("a > b") elif a[0]==a[1]: print("a = b") else: print("a < b")
a=[int(i) for i in input().split()] if a[0]>a[1]: print("a > b") elif a[0]==a[1]: print("a == b") else: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
60
data = input().split() a = data[0] b = data[1] if a < b: print("a < b") elif a > b: print("a > b") elif a == b: print("a == b") else: pass
data = input().split() a = int(data[0]) b = int(data[1]) if a < b: print("a < b") elif a > b: print("a > b") elif a == b: print("a == b") else: pass
[["+", 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]]
5
57
a, b = map(int, input().split()) if a < b: print("a < b") elif a > b: print("a > b") else: print("a = b")
a, b = map(int, input().split()) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
46
a,b = map(int,input().split()) if a==b: print("a==b") elif a>b: print("a>b") elif a<b: print("a<b")
a,b = map(int,input().split()) if a==b: print("a == b") elif a>b: print("a > b") elif a<b: print("a < b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
49
N = input().split() a = N[0] b = N[1] if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
N = input().split() a = int(N[0]) b = int(N[1]) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["+", 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]]
5
51
ab_s = input() ab_a = ab_s.split(" ") ab = [int(x) for x in ab_a] if ab[0] > ab[1]: print("a > b") elif ab[0] < ab[1]: print("a < b") else: print("a = b")
ab_s = input() ab_a = ab_s.split(" ") ab = [int(x) for x in ab_a] if ab[0] > ab[1]: print("a > b") elif ab[0] < ab[1]: print("a < b") else: print("a == b")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
69
a,b = list(map(int,input().split())) if a < b: print("a < b") elif a > b: print("a > b") print("a == b")
a,b = list(map(int,input().split())) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]]
5
47
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r < x && x < W - r) && (r < y && y < H - r)) printf("Yes"); else printf("No"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r <= x && x <= W - r) && (r <= y && y <= H - r)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+"...
0
86
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0 || y - r < 0) { printf("No\n"); } else if (w < y + r || h < x + r) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0 || y - r < 0) { printf("No\n"); } else if (w < x + r || h < y + r) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 23, 0, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 23, 0, 16, 12, 16, 12, 16, 31, 22]]
0
105
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W > x + r) { if (0 < x + r) { if (H > y + r) { if (0 < y + r) { printf("Yes\n"); } else printf("No\n"); } else printf("No\n"); } else printf...
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r) { if (0 <= x - r) { if (H >= y + r) { if (0 <= y - r) { printf("Yes\n"); } else printf("No\n"); } else printf("No\n"); } else pr...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 64, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 33], ["-", 64, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 64, 9...
0
125
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r > 0 && x + r < W) { if (y - r > 0 && y + r < H) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { if (y - r >= 0 && y + r <= H) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]]
0
95
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (0 + r <= x && x <= W - r && 0 + r <= y && y <= W - y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (0 + r <= x && x <= W - r && 0 + r <= y && y <= H - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 23, 0, 16, 12, 16, 12, 16, 31, 22], ["-", 15, 23, 0, 16, 12, 16, 12, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 16, 12, 16, 12, 22]]
0
91
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (((x - r >= 0) && (x + r <= H)) && ((y - r >= 0) && (y + r <= W))) { printf("Yes\n"); } else { printf("No\n"); } }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x - r >= 0) && (x + r <= W) && (y - r >= 0) && (y + r <= H)) { printf("Yes\n"); } else { printf("No\n"); } }
[["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 16, 12, 23, 0, 16, 12, 23, 0, 25], ["+", 1...
0
101
#include <stdio.h> int main(void) { int W; int H; int x; int y; int r; int f = 0; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x < r) { f = 1; } if (y < r) { f = 1; } if (x > W - r) { f = 1; } if (y > H - r) { f = 1; } if (f == 1) { printf("No"); } if (f = !1) { ...
#include <stdio.h> int main(void) { int W; int H; int x; int y; int r; int f = 0; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x < r) { f = 1; } if (y < r) { f = 1; } if (x > W - r) { f = 1; } if (y > H - r) { f = 1; } if (f == 1) { printf("No\n"); } if (f == 0) ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["-", 0, 57, 15, 23, 0, 11, 12, 91, 17, 111], ["-", 0, 57, 15, 23, 0, 11, 12, 91, 28, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]]
0
134
main(w, h, x, y, r) { scanf("%d%d%d%d", &w, &h, &x, &y, &r); printf(0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h ? "Yes" : "No"); exit(0); }
main(w, h, x, y, r) { scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); puts(0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h ? "Yes" : "No"); exit(0); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 30, 0, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 30, 0, 9, 0, 1, 0, 2, 63, 22]]
0
77
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) puts("Yes"); puts("No"); return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) puts("Yes"); else puts("No"); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
0
84
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W < x + r) { printf("No\n"); } else if (0 > x - r) { printf("No\n"); } else if (H < y + r) { printf("No\n"); } else if (0 > y - r) { printf("No\n"); } else printf("Yse\n"); retu...
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W < x + r) { printf("No\n"); } else if (0 > x - r) { printf("No\n"); } else if (H < y + r) { printf("No\n"); } else if (0 > y - r) { printf("No\n"); } else printf("Yes\n"); retu...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
128
#include <stdio.h> int main() { int W, H, x, y, r, A, B; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); A = W - r; B = H - r; if (r < x) { if (x < A) { if (r < y) { if (y < B) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("No\n"); ...
#include <stdio.h> int main() { int W, H, x, y, r, A, B; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); A = W - r; B = H - r; if (r <= x) { if (x <= A) { if (r <= y) { if (y <= B) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("No\n...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 64, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
144
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (r <= x && x + r <= W && r <= y && y + x <= H) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (r <= x && x + r <= W && r <= y && y + r <= H) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22]]
0
84
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r < W && r < x && y + r < H && r < y) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r <= W && r <= x && y + r <= H && r <= y) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]...
0
84
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((0 < x - r) && (W > x + r) && (0 < y - r) && (H > y + r)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((0 <= x - r) && (W >= x + r) && (0 <= y - r) && (H >= y + r)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ...
0
99
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r < 0 || x + r > W) printf("No\n"); if (y - r < 0 || y + r > H) printf("No\n"); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) printf("Yes\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r < 0 || x + r > W) printf("No\n"); else if (y - r < 0 || y + r > H) printf("No\n"); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) printf("Yes\n"); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
0
123
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0) printf("No\n"); if (W < x + r) printf("No\n"); if (y - r < 0) printf("No\n"); if (H < y + r) printf("No\n"); else printf("Yes\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0) printf("No\n"); else if (W < x + r) printf("No\n"); else if (y - r < 0) printf("No\n"); else if (H < y + r) printf("No\n"); else printf("Yes\n"); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
0
118
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0 > x - r && x + r > W && y + r > H && 0 > y - r) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0 > x - r || x + r > W || y + r > H || 0 > y - r) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106]]
0
91
#include <stdio.h> int main(int argc, const char *argv[]) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0 || y - r < 0 || x + r > w || y + r > h) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(int argc, const char *argv[]) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0 || y - r < 0 || x + r > w || y + r > h) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
100
#include <stdio.h> int main() { int W, H, x, y, r; while (1) { scanf("%d %d %d %d %d", W, H, x, y, r); if (-100 <= x, y && x, y <= 100 && 0 < W, H, r && W, H, r <= 100) break; } if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) printf("Yes\n"); else printf("No\n"); return ...
#include <stdio.h> int main() { int W, H, x, y, r; while (1) { scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (-100 <= x, y && x, y <= 100 && 0 < W, H, r && W, H, r <= 100) break; } if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) printf("Yes\n"); else printf("No\n"); re...
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
120
#include <stdio.h> int main(int argc, const char *argv[]) { int W = 0, H = 0, x = 0, y = 0, r = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { if (y - r >= 0 && y + r <= H) { printf("Yes\n"); } } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(int argc, const char *argv[]) { int W = 0, H = 0, x = 0, y = 0, r = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 14, 8, 9, 0, 57, 15, 23, 0, 25], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 57, 0, 121], ["-", 0, 57, 64, 9, 0, 57, 15, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]]
0
114
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && 0 <= x - r && H > -y + r && 0 <= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && 0 <= x - r && H >= y + r && 0 <= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["-", 31, 16, 12, 16, 12, 16, 31, 91, 17, 33], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20]]
0
93
#include <stdio.h> int main(void) { int W, H; //????????¢????§??????§?¨????W,H??? int x, y; //?????????????????§?¨????x,y??? int r; //???????????? scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r < W && x - r > 0 && y + r < H && y - r > 0) printf("Yes\n"); else printf("No\n"); return ...
#include <stdio.h> int main(void) { int W, H; //????????¢????§??????§?¨????W,H??? int x, y; //?????????????????§?¨????x,y??? int r; //???????????? scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) printf("Yes\n"); else printf("No\n"); ret...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]...
0
93
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0 || y - r < 0 || x + r > W || y + r > H) { printf("NO\n"); } else if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { printf("Yes\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0 || y - r < 0 || x + r > W || y + r > H) { printf("No\n"); } else if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { printf("Yes\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
117
/* * a.c * * Created on: 2017/06/13 * Author: AWV060608 */ #include <stdio.h> int main(void) { // W???H???x???y???r int W, H, x, y, r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((0 <= x - r) && (x + r <= W)) { if ((0 < y - r) && (y + r <=...
/* * a.c * * Created on: 2017/06/13 * Author: AWV060608 */ #include <stdio.h> int main(void) { // W???H???x???y???r int W, H, x, y, r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((0 <= x - r) && (x + r <= W)) { if ((0 <= y - r) && (y + r <...
[["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 19]]
0
145
#include <stdio.h> int main(void) { int W, H, x, y, r, a = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x + r < W) && (0 < x - r)) { a++; } if ((y + r < H) && (0 < y - r)) { a++; } if (a == 2) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r, a = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x + r <= W) && (0 <= x - r)) { a++; } if ((y + r <= H) && (0 <= y - r)) { a++; } if (a == 2) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 19]]
0
122
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d\n", &W, &H, &x, &y, &r); if (W > x + r && x - r > 0 && H > y + r && y - r > 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d\n", &W, &H, &x, &y, &r); if (W >= x + r && x - r >= 0 && H >= y + r && y - r >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]...
0
93
#include <stdio.h> main() { int W, H, x, y, r; scanf("$d %d %d %d %d", W, H, x, y, r); if ((x + r <= W) && (y + r <= H) && (x - r >= 0) && (y - r >= 0)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x + r <= W) && (y + r <= H) && (x - r >= 0) && (y - r >= 0)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
94
#include <stdio.h> int main(void) { int W; int H; int x; int y; int r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x < (W - r)) && (x > r) && (y - (H - r)) && (y > r)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W; int H; int x; int y; int r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x <= (W - r)) && (x >= r) && (y <= (H - r)) && (y >= r)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ...
0
104
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d", &W, &H, &x, &y, &r); if (W < (x + r) || H < (y + r)) { printf("No\n"); } else if ((x - r) < 0 || (y - r) < 0) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W < (x + r) || H < (y + r)) { printf("No\n"); } else if ((x - r) < 0 || (y - r) < 0) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
112
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if (x + r <= W && y + r <= H && x - r > 0 && y - r > 0) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]]
0
116
#include <math.h> #include <stdio.h> int main(int argc, const char *argv[]) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if ((x + r <= w && x - r >= 0) || (y + r <= h && y - r >= 0)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <math.h> #include <stdio.h> int main(int argc, const char *argv[]) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x + r <= w && x - r >= 0 && y + r <= h && y - r >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 23, 0, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 25]]
0
106
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) { printf("Yes\n"); } else if (x + r >= W && y + r >= H && x - r < 0 && y - r < 0) { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) { printf("Yes\n"); } else if (x + r >= W || y + r >= H || x - r < 0 || y - r < 0) { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 106]]
0
118
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && 0 >= x - r && 0 >= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && 0 <= x - r && 0 <= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]]
0
92
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W > x + r && H > y + r && 0 >= x + r && 0 >= y + r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && 0 <= x - r && 0 <= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 16, 12, 16, 17, 72...
0
92
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H > y + r && r <= x && r <= y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && r <= x && r <= y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20]]
0
88
int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if ((y + r) > H || (x - r) < 0 || (y - r) < 0 || (x + r) > W) { printf("N"); } else { printf("Yes"); } return 0; }
int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if ((y + r) > H || (x - r) < 0 || (y - r) < 0 || (x + r) > W) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
95
int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x + r <= W && y + r <= W && y - r >= 0 && x - r >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x + r <= W && y + r <= H && y - r >= 0 && x - r >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22]]
0
89
/*(c) nupetan 2017*/ #include <stdio.h> int main() { struct { short int width, height; } rectangle; struct { short int x_coordinate, y_coordinate, radius; } circle; scanf("%hd %hd", &rectangle.width, &rectangle.height); scanf("%hd %hd %hd", &circle.x_coordinate, &circle.y_coordinate, &circle...
/*(c) nupetan 2017*/ #include <stdio.h> int main() { struct { short int width, height; } rectangle; struct { short int x_coordinate, y_coordinate, radius; } circle; scanf("%hd %hd", &rectangle.width, &rectangle.height); scanf("%hd %hd %hd", &circle.x_coordinate, &circle.y_coordinate, &circle...
[["-", 0, 16, 31, 16, 12, 16, 12, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 17, 33], ["-", 15, 23, 0, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 23, 0, 16, 12, 16, 12, 16, 17, 33]]
0
133
#include <stdio.h> int main() { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (w < x + r || 0 > x - r || h > y + r || 0 > y - r) { printf("No"); } if (w >= x + r && 0 <= x - r && h <= y + r && 0 <= y - r) { printf("Yes"); } return 0; }
#include <stdio.h> int main() { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (w < x + r || 0 > x - r || h < y + r || 0 > y - r) { printf("No\n"); } if (w >= x + r && 0 <= x - r && h >= y + r && 0 <= y - r) { printf("Yes\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20]]
0
114
#include <stdio.h> int isContain(int w, int h, int x, int y, int r); int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (isContain(w, h, x, y, r) == 1) { printf("Yes\n"); } else { printf("No\n"); } return 0; } int isContain(int w, int h, int x, int y, int r) { int m...
#include <stdio.h> int isContain(int w, int h, int x, int y, int r); int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (isContain(w, h, x, y, r) == 1) { printf("Yes\n"); } else { printf("No\n"); } return 0; } int isContain(int w, int h, int x, int y, int r) { int m...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]...
0
180
#include <stdio.h> int main() { int W = 0; int H = 0; int x = 0; int y = 0; int r = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (r <= x && r <= y && r < W - x && r < H - y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W = 0; int H = 0; int x = 0; int y = 0; int r = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (r <= x && r <= y && r <= W - x && r <= H - y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]]
0
101
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x - r <= 0) || (y - r <= 0)) { printf("No\n"); } else if ((x + r >= W) || (y + r >= H)) { printf("No\n"); } else { printf("Yes\n"); } }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x - r < 0) || (y - r < 0)) { printf("No\n"); } else if ((x + r > W) || (y + r > H)) { printf("No\n"); } else { printf("Yes\n"); } }
[["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 19], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 18], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 19], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 47], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 20], ["+"...
0
109
#include <stdio.h> int main(void) { int W, H, x, y, r, a = 0, b = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { a = 1; } if (y - r >= 0 && y + r <= H) { b = 1; } if (a == 1 && b == 1) { printf("Yes\n"); } else { printf("NO\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r, a = 0, b = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { a = 1; } if (y - r >= 0 && y + r <= H) { b = 1; } if (a == 1 && b == 1) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
124
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W > x + r && H > y + r && 0 < x - r && 0 < y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && 0 <= x - r && 0 <= y - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]...
0
91
#include <stdio.h> int main() { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x + r < w && x - r > 0 && y + r < h && y - r > 0) { printf("Yes\n"); } else { printf("No\n"); } }
#include <stdio.h> int main() { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x + r <= w && x - r >= 0 && y + r <= h && y - r >= 0) { printf("Yes\n"); } else { printf("No\n"); } }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]...
0
88
int main() { int w, h, x, y, r, f; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); f = 0; if (w < x + r) f = 1; if (h < y + r) f = 1; if (x > r) f = 1; if (y > r) f = 1; if (f == 0) printf("Yes\n"); else printf("No\n"); return 0; }
int main() { int w, h, x, y, r, f; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); f = 0; if (w < x + r) f = 1; if (h < y + r) f = 1; if (x < r) f = 1; if (y < r) f = 1; if (f == 0) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
115
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x >= r) { if (H >= x + r) { if (W >= y + r) { if (y >= r) { printf("Yes\n"); } else printf("No\n"); } else printf("No\n"); } else printf("N...
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x >= r) { if (W >= x + r) { if (H >= y + r) { if (y >= r) { printf("Yes\n"); } else printf("No\n"); } else printf("No\n"); } else printf("N...
[["-", 64, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 64, 9, 0, 57, 15, 23, 0, 16, 31, 22]]
0
125
#include <stdio.h> int main() { int r, x, y, W, H; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0 < x - r && 0 < y - r) { if (W > x + r && H > y + r) printf("Yes\n"); else printf("No\n"); } else printf("No\n"); return 0; }
#include <stdio.h> int main() { int r, x, y, W, H; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0 <= x - r && 0 <= y - r) { if (W >= x + r && H >= y + r) printf("Yes\n"); else printf("No\n"); } else printf("No\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+"...
0
100
#include <stdio.h> int main() { int width, height, x, y, r; scanf("%d", &width); scanf("%d", &height); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((x - r) > 0 && (x + r) < width) { if ((y - r) > 0 && (y + r) < height) printf("Yes\n"); else printf("No\n"); } else prin...
#include <stdio.h> int main() { int width, height, x, y, r; scanf("%d", &width); scanf("%d", &height); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((x - r) >= 0 && (x + r) <= width) { if ((y - r) >= 0 && (y + r) <= height) printf("Yes\n"); else printf("No\n"); } else ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]]
0
136
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (r <= x && (w - r) >= x) if (r <= y && (h - r) >= x) { printf("Yes\n"); return 0; } printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (r <= x && (w - r) >= x) if (r <= y && (h - r) >= y) { printf("Yes\n"); return 0; } printf("No\n"); return 0; }
[["-", 64, 57, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 64, 57, 15, 23, 0, 16, 12, 16, 12, 22]]
0
94
#include "stdio.h" //長方形の中に円があるか判定 // 2018/02/05 int main(void) { int w, h, x, y, r; scanf("%d %d %d", &w, &h, &x, &y, &r); if (((x - r) >= 0) && ((y - r) >= 0) && ((x + r) <= w) && ((y + r) <= h)) { puts("Yes"); } else { puts("No"); } }
#include "stdio.h" //長方形の中に円があるか判定 // 2018/02/05 int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (((x - r) >= 0) && ((y - r) >= 0) && ((x + r) <= w) && ((y + r) <= h)) { puts("Yes"); } else { puts("No"); } }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
107
#include <stdio.h> int main(void) { int W, H, x, y, r, flag; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && y - r >= 0 && x + r <= W && x + y <= H) { printf("Yes\n"); } else { printf("No\n"); } }
#include <stdio.h> int main(void) { int W, H, x, y, r, flag; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r >= 0 && y - r >= 0 && x + r <= W && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } }
[["-", 15, 23, 0, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22]]
0
91
#include <stdio.h> int main() { char line[100]; int W, H, x, y, r; fgets(line, sizeof(line), stdin); sscanf(line, "%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x + r < W) && (x - r > 0) && (y + r < H) && (y - r > 0)) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main() { char line[100]; int W, H, x, y, r; fgets(line, sizeof(line), stdin); sscanf(line, "%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x + r <= W) && (x - r >= 0) && (y + r <= H) && (y - r >= 0)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ...
0
115
#include <stdio.h> int main(void) { int W, H, x, y, r, f = 0; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r < 0 || W < x + r) f = 1; if (y - r < 0 || H < y + r) f = 1; puts(f ? "Yes" : "No"); }
#include <stdio.h> int main(void) { int W, H, x, y, r, f = 0; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r < 0 || W < x + r) f = 1; if (y - r < 0 || H < y + r) f = 1; puts(f ? "No" : "Yes"); }
[["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]]
0
95
#include <stdio.h> int main(void) { int a, b, c, d, e; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (a <= c + e && b <= d + e && c - e >= 0 && d - e >= 0) { puts("Yes"); } else { puts("No"); } return 0; }
#include <stdio.h> int main(void) { int a, b, c, d, e; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (a >= c + e && b >= d + e && c - e >= 0 && d - e >= 0) { puts("Yes"); } else { puts("No"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20]]
0
90
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x > r && x < W - r && y > r && y < H - r) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x >= r && x <= W - r && y >= r && y <= H - r) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]...
0
84
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d % %d\n", &w, &h, &x, &y, &r); 0 < w <= 100; 0 < h <= 100; 0 < r <= 100; if (0 <= (x - r) && (x + r) <= w && h >= (y + r) && 0 <= (y - r)) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d\n", &w, &h, &x, &y, &r); 0 < w <= 100; 0 < h <= 100; 0 < r <= 100; if (0 <= (x - r) && (x + r) <= w && h >= (y + r) && 0 <= (y - r)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
115
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x >= r) && (y >= r) && (x <= W - r) && (y < H - r)) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x >= r) && (y >= r) && (x <= W - r) && (y <= H - r)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 19]]
0
91
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && x > r && y > r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (W >= x + r && H >= y + r && x >= r && y >= r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]]
0
88