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
<?php fscanf(STDIN,"%d %d %d %d %d",$W,$H,$x,$y,$r); if (0 > $x-$r || $W < $x+$r || 0 > $y-$r || $H < $y+$r){ echo 'No\n'; } else{ echo 'Yes\n'; } ?>
<?php fscanf(STDIN,"%d %d %d %d %d",$W,$H,$x,$y,$r); if (0 > $x-$r || $W < $x+$r || 0 > $y-$r || $H < $y+$r){ echo 'No'; } else{ echo 'Yes'; } ?>
[["-", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["-", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610]]
6
77
<?php $input = trim(fgets(STDIN)); $a = explode(' ',$input); $W = $a[0]; $H = $a[1]; $x = $a[2]; $y = $a[3]; $r = $a[4]; if((0 <= ($x+$r) && ($x+$r) <= $W) && (0 <= ($y+$r) && ($y+$r) <= $H)){ echo "Yes"; }else{ echo "No"; } exit ?>
<?php $input = trim(fgets(STDIN)); $a = explode(' ',$input); $W = $a[0]; $H = $a[1]; $x = $a[2]; $y = $a[3]; $r = $a[4]; if((0 <= ($x-$r) && ($x+$r) <= $W) && (0 <= ($y-$r) && ($y+$r) <= $H)){ echo "Yes"; }else{ echo "No"; } ?>
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["-", 36, 36, 36, 36, 0, 493, 0, 1, 0, 141]]
6
135
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int W = s.nextInt(); int H = s.nextInt(); int x = s.nextInt(); int y = s.nextInt(); int r = s.nextInt(); int flag = 0; if (x - r > 0 && x + r < W) { if (y...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int W = s.nextInt(); int H = s.nextInt(); int x = s.nextInt(); int y = s.nextInt(); int r = s.nextInt(); int flag = 0; if (x - r >= 0 && x + r <= W) { if ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19]]
3
148
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); String result = "Yes"; if (x - ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); String result = "Yes"; if (x - ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20], ["+"...
3
140
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); if (x >= r && x <= w - r || y >= r ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); if (x >= r && x <= w - r && y >= r ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 98]]
3
129
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x > r || y > r || x + r > W || y + r > H) { System....
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x < r || y < r || x + r > W || y + r > H) { System....
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18]]
3
128
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x - r > 0) && (x + r < W) && (y - r > 0) && (y + r < H))...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x - r >= 0) && (x + r <= W) && (y - r >= 0) && (y + r <=...
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 18], ...
3
140
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); if (W < x + r && x - r < 0) System.out.prin...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); if (W < x + r || x - r < 0) System.out.prin...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 106]]
3
142
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W, H, x, y, r; W = sc.nextInt(); H = sc.nextInt(); x = sc.nextInt(); y = sc.nextInt(); r = sc.nextInt(); if ((x + r) < W && (x - r) > 0 && (y + r) < H && (y - r) > 0) ...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W, H, x, y, r; W = sc.nextInt(); H = sc.nextInt(); x = sc.nextInt(); y = sc.nextInt(); r = sc.nextInt(); if ((x + r) <= W && (x - r) >= 0 && (y + r) <= H && (y - r) >= 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, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47]...
3
142
import java.util.Scanner; public class Main { private void calc() { Scanner scanner = new Scanner(System.in); int W = scanner.nextInt(); int H = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); int r = scanner.nextInt(); if (r < x && x < W - r) { if (r < y &...
import java.util.Scanner; public class Main { private void calc() { Scanner scanner = new Scanner(System.in); int W = scanner.nextInt(); int H = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); int r = scanner.nextInt(); if (r <= x && x <= W - r) { if (r <= ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19]]
3
164
import java.io.*; import java.lang.*; import java.util.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main // class Ideone { public static void main(String[] args) throws java.lang.Exception { // your code goes here BufferedReader stdReader = new BufferedReader(...
import java.io.*; import java.lang.*; import java.util.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main // class Ideone { public static void main(String[] args) throws java.lang.Exception { // your code goes here BufferedReader stdReader = new BufferedReader(...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
217
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (((r <= x) && (x <= W - r)) && ((r <= y) && (y <= H - r)...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); // int W = 5; // int H = 4; // int x = 2; //...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
141
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] listStr = reader.readLine().split(" "); ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] listStr = reader.readLine().split(" "); ...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47]...
3
187
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner a = new Scanner(System.in); int W = a.nextInt(); int H = a.nextInt(); int x = a.nextInt(); int y = a.nextInt(); int r = a.nextInt(); if ((x + r) > W || (x + r) < 0 || (y + r) > H || (y + r) < 0) ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner a = new Scanner(System.in); int W = a.nextInt(); int H = a.nextInt(); int x = a.nextInt(); int y = a.nextInt(); int r = a.nextInt(); if ((x + r) > W || (x - r) < 0 || (y + r) > H || (y - r) < 0) ...
[["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33]]
3
141
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String strArray[] = str.spl...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String strArray[] = str.spl...
[["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20]]
3
215
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); scan.close(); if (x + r <= W && x - r <= ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); scan.close(); if (x + r <= W && x - r >= ...
[["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20]]
3
134
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int W, H, x, y, r; String s = buf.readLine(); String[] strlAry = s.split(" "); for (int i = 0; i < strlAry.length; i++) { ...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int W, H, x, y, r; String s = buf.readLine(); String[] strlAry = s.split(" "); for (int i = 0; i < strlAry.length; i++) { ...
[["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 31, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ...
3
220
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int kaisu = 5; int[] num = new int[kaisu]; for (int i = 0; i < kaisu; i++) { num[i] = scan.nextInt(); } int wp = num[2] + num[4]; int wm = num[2] - num[4]; i...
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int kaisu = 5; int[] num = new int[kaisu]; for (int i = 0; i < kaisu; i++) { num[i] = scan.nextInt(); } int wp = num[2] + num[4]; int wm = num[2] - num[4]; i...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47], ["-", 75, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["+", 75, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["-", 75, 57, 15, 15, 0, 16, 12, 16, 17, 20], [...
3
196
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int h = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x > r && y > r && (h - y) > r && (w - x) > r) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int h = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x >= r && y >= r && (h - y) >= r && (w - x) >= r) { ...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47]...
3
133
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x + r <= W) && (y + r <= H) && (x - r > 0) && (y - r > ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x + r <= W) && (y + r <= H) && (x - r >= 0) && (y - r >...
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 47], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], [...
3
137
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x - r > 0 && x + r < W && y - r > 0 && y + r < H) ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <=...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
129
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] array = br.readLine().split(" "); int W = Integer.parseInt(array[0]); int H = Inte...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] array = br.readLine().split(" "); int W = Integer.parseInt(array[0]); int H = Inte...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
179
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x - r <= 0 || y - r <= 0 || x + r >= W || y + r >=...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x - r < 0 || y - r < 0 || x + r > W || y + r > H) ...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["-", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20]...
3
133
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { print(); } private static void print() throws IOException { Scanner scn = new Scanner(System.in); int recX = scn.nextInt(); int recY = scn.nextInt(); int cirX = scn...
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { print(); } private static void print() throws IOException { Scanner scn = new Scanner(System.in); int recX = scn.nextInt(); int recY = scn.nextInt(); int cirX = scn...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["-", 75, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["-", 75, 57, 75, 57, 15, 15, 0, 16, 17, 18], [...
3
239
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String[] line = sc.nextLine().split(" "); int W = Integer.parseInt(line[0]); int H = Integer.parseInt(line[1]); int x = Integer.parseInt(...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String[] line = sc.nextLine().split(" "); int W = Integer.parseInt(line[0]); int H = Integer.parseInt(line[1]); int x = Integer.parseInt(...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
205
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = sca...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = sca...
[["-", 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, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 47], ...
3
146
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = sca...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
134
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? String str[], ans; int W, H, x, y, r; BufferedReader br = new BufferedReader(new InputStreamReader(Sys...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? String str[], ans; int W, H, x, y, r; BufferedReader br = new BufferedReader(new InputStreamReader(Sys...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
190
import java.io.*; import java.util.Arrays; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] strarr = str.split(" "); int w = Integer.parseInt(strarr[0]); int h = I...
import java.io.*; import java.util.Arrays; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] strarr = str.split(" "); int w = Integer.parseInt(strarr[0]); int h = I...
[["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 19], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 19]]
3
208
import java.util.Scanner; public class Main { static public void main(String args[]) { Scanner sc = new Scanner(System.in); sc.useDelimiter("\\s"); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x + r < W && x - r > 0...
import java.util.Scanner; class Main { static public void main(String args[]) { Scanner sc = new Scanner(System.in); sc.useDelimiter("\\s"); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if (x + r <= W && x - r >= 0 && y...
[["-", 36, 36, 0, 493, 0, 235, 0, 494, 0, 259], ["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 1...
3
143
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int W = scanner.nextInt(); int H = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); int r = scanner.nextInt(); if (x + r < W && x > r &...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int W = scanner.nextInt(); int H = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); int r = scanner.nextInt(); if (x + r <= W && x >= r...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47]...
3
129
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); if ((x >= r) && (x <= (h - r)) && (y >= r)...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int h = stdIn.nextInt(); int x = stdIn.nextInt(); int y = stdIn.nextInt(); int r = stdIn.nextInt(); if ((x >= r) && (x <= (w - r)) && (y >= r)...
[["-", 12, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 31, 22]]
3
140
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] line = str.split(" "); int a = Integer.parseInt(line[0]); int b = Integer.parseInt(line[1]); ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] line = str.split(" "); int a = Integer.parseInt(line[0]); int b = Integer.parseInt(line[1]); ...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
181
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String inputed = new String(in.readLine()); String value[] = inputed.split("[\\s]+"); // int intInputed = Integer.parseInt(input...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String inputed = new String(in.readLine()); String value[] = inputed.split("[\\s]+"); // int intInputed = Integer.parseInt(input...
[["-", 15, 15, 0, 16, 31, 23, 0, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 23, 0, 16, 17, 20], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 19]]
3
240
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int w = in.nextInt(); int h = in.nextInt(); int x = in.nextInt(); int y = in.nextInt(); int r = in.nextInt(); if (x > r && x < w - r &&...
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int w = in.nextInt(); int h = in.nextInt(); int x = in.nextInt(); int y = in.nextInt(); int r = in.nextInt(); if (x >= r && x <= w - r ...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
136
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] s = str.split(" "); ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] s = str.split(" "); ...
[["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22]]
3
212
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { int num; int[] a = new int[3]; try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); StringTokenizer st = new StringTokenizer(line, " "); ...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { int num; int[] a = new int[3]; try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); StringTokenizer st = new StringTokenizer(line, " "); ...
[["-", 15, 15, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 31, 22]]
3
223
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); if (0 < x - r && x + r < W && 0 < y - r &&...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int H = scan.nextInt(); int x = scan.nextInt(); int y = scan.nextInt(); int r = scan.nextInt(); if (0 <= x - r && x + r <= W && 0 <= y - r...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
133
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int w = Integer.parseInt(scanner.next()); int h = Integer.parseInt(scanner.next()); int x = Integer.parseInt(scanner.next()); int y = Integer.parseInt(scanner.next());...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int w = Integer.parseInt(scanner.next()); int h = Integer.parseInt(scanner.next()); int x = Integer.parseInt(scanner.next()); int y = Integer.parseInt(scanner.next());...
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 51, 510, 15, 16, 12, 23, 0, 16, 17, 1...
3
157
import java.util.*; class Main { Scanner sc = new Scanner(System.in); void main() { int w = sc.nextInt(); int h = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); String ans = "Yes"; if (x - r < 0 || y + r > w || y - r < 0 || y + r > h) ans = "No"; ...
import java.util.*; class Main { Scanner sc = new Scanner(System.in); void main() { int w = sc.nextInt(); int h = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); String ans = "Yes"; if (x - r < 0 || x + r > w || y - r < 0 || y + r > h) ans = "No"; ...
[["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22]]
3
142
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x + r) < 0 || W < (x + r) || (y + r) < 0 || H < (y + r)) {...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int W = sc.nextInt(); int H = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); if ((x - r) < 0 || W < (x + r) || (y - r) < 0 || H < (y + r)) {...
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33]]
3
139
import java.io.*; import java.util.Scanner; public class Main { public static void main(String args[]) throws IOException { int W = 0; int H = 0; int x = 0; int y = 0; int r = 0; Scanner in = new Scanner(System.in); String buf1 = in.next(); String buf2 = in.next(); String buf3 =...
import java.io.*; import java.util.Scanner; public class Main { public static void main(String args[]) throws IOException { int W = 0; int H = 0; int x = 0; int y = 0; int r = 0; Scanner in = new Scanner(System.in); String buf1 = in.next(); String buf2 = in.next(); String buf3 =...
[["-", 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, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]...
3
208
#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"); } 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) && (y - r >= 0) && (y + r <= H)) { 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
100
#include <stdio.h> int main(void) { int W, H, x, y, r, a, b, c, d; scanf("%d %d %d &d &d", &W, &H, &x, &y, &r); a = x + r; b = x - r; c = x - r; d = y - r; if ((W >= a) && (b >= 0)) { if ((H >= c) && (d >= 0)) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("...
#include <stdio.h> int main(void) { int W, H, x, y, r, a, b, c, d; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); a = x + r; b = x - r; c = y + r; d = y - r; if ((W >= a) && (b >= 0)) { if ((H >= c) && (d >= 0)) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72]]
0
139
#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) { if (y - r < 0 || y + r > H) { printf("No\n"); } } if (x - r >= 0 && x + r <= W) { if (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 || y - r < 0 || y + r > H) { printf("No\n"); } if (x - r >= 0 && x + r <= W) { if (y - r >= 0 && y + r <= H) { printf("Yes\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, 106], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]]
0
125
#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("No\n"); } else { printf("Yes\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("No\n"); } else { printf("Yes\n"); } }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 106]]
0
89
#include <stdio.h> int main() { int w, h, x, y, r; int flg = 0; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0) flg = 1; if (x + r > w) flg = 1; if (y - r < 0) flg = 1; if (y + r > h) flg = 1; if (flg == 1) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main() { int w, h, x, y, r; int flg = 0; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x - r < 0) flg = 1; if (x + r > w) flg = 1; if (y - r < 0) flg = 1; if (y + r > h) flg = 1; if (flg == 0) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]]
0
120
#include <stdio.h> int main(void) { int a, b, x, y, z; scanf("%d %d %d %d %d", &a, &b, &x, &y, &z); if (a < x + z) { printf("No\n"); } else if (0 > x - z) { printf("No\n"); } else if (a < y + z) { printf("No\n"); } else if (0 > y - z) { printf("No\n"); } else printf("Yes\n"); ...
#include <stdio.h> int main(void) { int a, b, x, y, z; scanf("%d %d %d %d %d", &a, &b, &x, &y, &z); if (a < x + z) { printf("No\n"); } else if (0 > x - z) { printf("No\n"); } else if (b < y + z) { printf("No\n"); } else if (0 > y - z) { printf("No\n"); } else printf("Yes\n"); ...
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22]]
0
129
#include <stdio.h> int main(void) { // Your code here! 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"); } }
#include <stdio.h> int main(void) { // Your code here! 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"); } }
[["-", 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, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]...
0
90
#include <stdio.h> int main(void) { int W, H, x, y, r; // W,H=長方形の右上の頂点座標 x,y=円の中心座標 r=円の半径 scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); //各情報の取得 if ((x + y < W && y + r < H) && (x - r >= 0 && y - r >= 0)) //長方形の左辺と下辺がはみ出してない printf("Yes\n"); //円が長方形の中に入っている else printf("No\n"); //...
#include <stdio.h> int main(void) { int W, H, x, y, r; // 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"); ...
[["-", 31, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 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
97
#include <stdio.h> int main() { int w, h, x, y, r, n = 0; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (x - r >= 0 && x + r <= w) n += 1; if (y - r >= 0 && y + r <= h) n += 1; if (n == 2) printf("No\n"); else printf("Yes\n"); return 0; }
#include <stdio.h> int main() { int w, h, x, y, r, n = 0; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if (x - r >= 0 && x + r <= w) n += 1; if (y - r >= 0 && y + r <= h) n += 1; if (n == 2) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 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, 6]]
0
107
#include <stdio.h> int main() { 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("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 (r <= x && x <= W - r && r <= y && y <= H - r) { printf("Yes\n"); } else { printf("No\n"); } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
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) { printf("No\n"); } else if (W <= x + r) { printf("No\n"); } else if (y <= r) { printf("No\n"); } else if (H <= y + r) { printf("No\n"); } else { printf("Yes\n"); } retur...
#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) { printf("No\n"); } else if (W < x + r) { printf("No\n"); } else if (y < r) { printf("No\n"); } else if (H < y + r) { printf("No\n"); } else { printf("Yes\n"); } return 0;...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18]]
0
127
#include <stdio.h> int main() { int W = 0, H = 0, x = 0, y = 0, r = 0; scanf("%d %d %d %d %d\n", 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"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> int main() { int W = 0, H = 0, x = 0, y = 0, r = 0; scanf("%d %d %d %d %d\n", &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"); } else { printf("Yes\n"); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
118
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d\n", &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; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d\n", &W, &H, &x, &y, &r); if (x - r < 0 || x + r > W || y - r < 0 || y + r > H) puts("No"); else puts("Yes"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 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, 6]]
0
86
#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)) && ((H > (y + 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\n", &W, &H, &x, &y, &r); if (((W >= (x + r)) && (x >= r)) && ((H >= (y + r)) && (y >= r))) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 20], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 47], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 17, 47], ["+"...
0
105
#include <stdio.h> int main(int argc, char **argv) { 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("Nes\n"); return 0; }
#include <stdio.h> int main(int argc, char **argv) { 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, 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 argc, char **argv) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if ((x >= r) && ((x + r) <= w) && (x >= r) && ((y + r) <= h)) { printf("Yes\n"); } else printf("No\n"); return 0; }
#include <stdio.h> int main(int argc, char **argv) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if ((x >= r) && (x + r <= w) && (y >= r) && (y + r <= h)) { printf("Yes\n"); } else printf("No\n"); return 0; }
[["-", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25]]
0
104
#include <stdio.h> int main() { int rect_w, rect_h, x, y, r; scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r); if (x > r && x + r < rect_w && y > r && y + r < rect_h) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int rect_w, rect_h, x, y, r; scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r); if (x >= r && x + r <= rect_w && y >= r && y + r <= rect_h) { 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
87
#include <stdio.h> int main() { int rect_w, rect_h, x, y, r; scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r); if (x > r && x + r < rect_w && y > r && y + r < rect_h) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { int rect_w, rect_h, x, y, r; scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r); if (x >= r && x + r <= rect_w && y >= r && y + r <= rect_h) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 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
87
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); printf(x + r > H || x - r < 0 || y + r > W || y - r < 0 ? "No\n" : "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); printf(x + r > W || x - r < 0 || y + r > H || y - r < 0 ? "No\n" : "Yes\n"); return 0; }
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 41, 15, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, 22]]
0
81
#include <stdio.h> int main(void) { int W, H, x, y, r, a; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0) a = 0; else if (y - r < 0) a = 0; else if (x + r > W) a = 0; else if (y + r > W) a = 0; else a = 1; if (a == 1) printf("Yes\n"); else printf("No\n"); retu...
#include <stdio.h> int main(void) { int W, H, x, y, r, a; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0) a = 0; else if (y - r < 0) a = 0; else if (x + r > W) a = 0; else if (y + r > H) a = 0; else a = 1; if (a == 1) printf("Yes\n"); else printf("No\n"); retu...
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22]]
0
126
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", w, h, x, y, r); if (0 <= x - r && 0 <= y - r && x + r <= w && y + r <= 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 (0 <= x - r && 0 <= y - r && x + r <= w && y + r <= h) printf("Yes\n"); else printf("No\n"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
83
#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)) { puts("Yes"); } else { puts("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 (((x + r) <= W && (y + r) <= H) && ((x - r) >= 0 && (y - r) >= 0)) { puts("Yes"); } else { puts("No"); } 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, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 47], ["+"...
0
102
#include "stdio.h" int main(void) { int x, y, r; int W, H; scanf(" %d %d %d %d %d", &W, &H, &x, &y, &r); if (W < x + r || H < y + r || x - r < 0 || y - r < 0) { puts("NO"); } else { puts("YES"); } return 0; }
#include "stdio.h" int main(void) { int x, y, r; int W, H; scanf(" %d %d %d %d %d", &W, &H, &x, &y, &r); if (W < x + r || H < y + r || x - r < 0 || y - r < 0) { puts("No"); } else { puts("Yes"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
93
#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 > 0 && x + r < w) { a++; } if (y - r > 0 && y + r < h) { 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 >= 0 && x + r <= w) { a++; } if (y - r >= 0 && y + r <= h) { a++; } if (a == 2) { printf("Yes\n"); } else { 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
114
#include <stdio.h> int main() { int W, H, x, y, r, a, b, c, d; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); a = x - r; b = x + r; c = y - r; d = y + r; if (a > 0 && b < W && c > 0 && d < H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r, a, b, c, d; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); a = x - r; b = x + r; c = y - r; d = y + r; if (a >= 0 && b <= W && c >= 0 && d <= H) { 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
115
#include <stdio.h> int main(void) { 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 ((x - r > 0) & (x + r < W) & (y - r > 0) & (y + r < H)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { 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 ((x - r >= 0) & (x + r <= W) & (y - r >= 0) & (y + r <= H)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ...
0
114
#include <stdio.h> int main() { int W, H, X, Y, R; scanf("%d%d%d%d%d", &W, &H, &X, &Y, &R); puts(X - R <= 0 || X + R >= W || Y - R <= 0 || Y + R >= H ? "No" : "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); puts(X - R < 0 || X + R > W || Y - R < 0 || Y + R > H ? "No" : "Yes"); return 0; }
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["-", 0, 41, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 18], ["-", 3, 4, 0, 41, 15, 16, 12, 16, 17, ...
0
79
#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) printf("No\n"); else if ((y - r) < 0 || (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 || (x + r) > W) printf("No\n"); else if ((y - r) < 0 || (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, 16, 12, 16, 31, 23, 0, 11, 17, 32], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72]]
0
140
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int a[5]; //???????????´??° W???H???x???y???r //????????????????????§?????????????????????????????? scanf("%d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4]); if (a[0] > (a[2] + a[4]) && 0 < (a[2] - a[4])) if (a[1] > (a[3] + a[4...
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int a[5]; //???????????´??° W???H???x???y???r //????????????????????§?????????????????????????????? scanf("%d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4]); if (a[0] >= (a[2] + a[4]) && 0 <= (a[2] - a[4])) if (a[1] >= (a[3] + ...
[["-", 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], ["-", 64, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 64, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 64, 57, 15, 23, 0, 16, 12, 16, 17, 18], [...
0
158
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (-100 <= x <= 100 && -100 <= y <= 100 && 0 < W <= 100 && 0 < H <= 100 && 0 < r <= 100) { if (x - r < 0 || W < x + r || y - r < 0 || H < y + r) { printf("No\n"); } else { printf("Yse\n"); ...
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (-100 <= x <= 100 && -100 <= y <= 100 && 0 < W <= 100 && 0 < H <= 100 && 0 < r <= 100) { if (x - r < 0 || W < x + r || y - r < 0 || H < y + r) { printf("No\n"); } else { printf("Yes\n"); ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
125
#include <stdio.h> int main(void) { int W, H, x, y, r; int ue, sita, migi, hidari; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); ue = y + r; sita = y - r; migi = x + r; hidari = x - r; if ((ue >= H) || (sita <= 0) || (migi >= W) || (hidari <= 0)) { printf("No\n"); } else { printf("Yes\n"); ...
#include <stdio.h> int main(void) { int W, H, x, y, r; int ue, sita, migi, hidari; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); ue = y + r; sita = y - r; migi = x + r; hidari = x - r; if ((ue > H) || (sita < 0) || (migi > W) || (hidari < 0)) { printf("No\n"); } else { printf("Yes\n"); } ...
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 19], ...
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 && y - r > 0 && x + r < w && y + r < h) 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 >= 0 && y - r >= 0 && x + r <= w && y + r <= h) 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
87
#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) { printf("No\n"); } else if (y - r < 0 || y + r > h) { 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 (x - r < 0 || x + r > w) { printf("No\n"); } else if (y - r < 0 || y + r > h) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]]
0
104
#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) { puts("NO"); } else if (x + r > w) { puts("NO"); } else if (y - r < 0) { puts("NO"); } else if (y + r > h) { puts("NO"); } else { puts("YES"); } 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) { puts("No"); } else if (x + r > w) { puts("No"); } else if (y - r < 0) { puts("No"); } else if (y + r > h) { puts("No"); } else { puts("Yes"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
126
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %ed %d", &W, &H, &x, &y, &r); if (((W - r) >= x) && (r <= x) && ((H - r) >= y) && (r <= 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 (((W - r) >= x) && (r <= x) && ((H - r) >= y) && (r <= y)) { 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
99
#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 && x + r <= W && y >= r && y + r < H) 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 && x + r <= W && y >= r && y + r <= H) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
83
#include <stdio.h> 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 > 0 && y - r > 0) { printf("Yes\n"); } else printf("No\n"); return 0; }
#include <stdio.h> 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 >= 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
89
#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 (y > r && x > r && x + r < W && y + r < H) { 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 (y >= r && x >= r && x + r <= W && y + r <= H) { 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
114
#include <stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d %d", &W, &H, &x, &y, &r); if (r <= x && r <= y && x <= W && y <= 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 %d", &W, &H, &x, &y, &r); if (r <= x && r <= y && x + r <= W && y + r <= H) printf("Yes\n"); else printf("No\n"); return 0; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22]]
0
80
#include <stdio.h> int main() { int a = 0, 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"); a = 1; } } if (a == 0) printf("No\n"); return 0; }
#include <stdio.h> int main() { int a = 0, 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"); a = 1; } } if (a == 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
106
#include <stdio.h> int main(void) { int x, y, r, w, h; 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("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(void) { int x, y, r, w, h; 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("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, 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...
0
118
#include <stdio.h> int main(void) { int W, H; int 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) puts("No"); else if (0 < y - r || y + r < H) puts("No"); else puts("Yes"); return 0; }
#include <stdio.h> int main(void) { int W, H; int 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) puts("No"); else if (0 > y - r || y + r > H) puts("No"); else puts("Yes"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]]
0
125
#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) if (r < x) if (y + r <= h) if (r < y) { printf("Yes\n"); return 0; } 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 <= w) if (r <= x) if (y + r <= h) if (r <= y) { printf("Yes\n"); return 0; } printf("No\n"); return 0; }
[["-", 0, 57, 64, 57, 15, 23, 0, 16, 17, 18], ["+", 0, 57, 64, 57, 15, 23, 0, 16, 17, 19], ["-", 64, 57, 64, 57, 15, 23, 0, 16, 17, 18], ["+", 64, 57, 64, 57, 15, 23, 0, 16, 17, 19]]
0
102
#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 && 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(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x >= r && 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, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]]
0
103
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (((r <= y) && (y <= (W - r))) && ((r <= x) && (x <= (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 (((r <= y) && (y <= (H - r))) && ((r <= x) && (x <= (W - r)))) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 12, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 31, 22]]
0
103
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); int top = y + r; int bottom = y - r; int right = x + r; int left = x - r; if (top <= w && bottom >= 0 && right <= h && left >= 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", &w, &h, &x, &y, &r); int top = y + r; int bottom = y - r; int right = x + r; int left = x - r; if (top <= h && bottom >= 0 && right <= w && left >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 12, 22]]
0
112
#include <stdio.h> int main() { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (y - r < 0 || x - r < 0 || x + r < w || y + r < h) printf("No"); else 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 (y - r < 0 || x - r < 0 || x + r > w || y + r > h) printf("No\n"); else printf("Yes\n"); return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
85
#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 { 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 printf("Yes\n"); return 0; }
[["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
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 (0 < (x - r) && W > (x + r)) { if (0 < (y - r) && H > (y + r)) printf("Yes\n"); else printf("No\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 (0 <= (x - r) && W >= (x + r)) { if (0 <= (y - 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, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]]
0
109
// // main.c // Practice // // Created by hoshino on 2015/10/19. // Copyright ?? 2015??´ hoshino. All rights reserved. // #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...
// // main.c // Practice // // Created by hoshino on 2015/10/19. // Copyright ?? 2015??´ hoshino. All rights reserved. // #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...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 106]]
0
113
a,b = list(map(int ,input().split())) if a < b: print("a < b") else: if a > b: print("a > b") else: if a == b: print("a = b")
a,b = list(map(int ,input().split())) if a < b: print("a < b") else: if a > b: print("a > b") else: 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
inp=input() a = int(inp[0]) b = int(inp[1]) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
inp=input().split() a = int(inp[0]) b = int(inp[1]) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
[["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
53
[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
51
inps = input().split() if len(inp) >= 2: a = int(inps[0]) b = int(inps[1]) if a > b: print("a > b") elif a < b: print("a < b") else: print("a == b") else: print("Input illegal.")
inps = input().split() if len(inps) >= 2: a = int(inps[0]) b = int(inps[1]) if a > b: print("a > b") elif a < b: print("a < b") else: print("a == b") else: print("Input illegal.")
[["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22]]
5
73
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
# coding: utf-8 # Here your code ! def test(): line=input().rstrip() list=line.split(" ") try: a=int(list[0]) b=int(list[1]) except: print("input error") return -1 if(a>b): print("a>b") elif(a<b): print("a<b") elif(a==b): print("...
# coding: utf-8 # Here your code ! def test(): line=input().rstrip() list=line.split(" ") try: a=int(list[0]) b=int(list[1]) except: print("input error") return -1 if(a>b): print("a > b") elif(a<b): print("a < b") elif(a==b): pri...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
99
num = input().split(" ") a = int(num[0]) b = int(num[1]) if a > b: print("a > b") elif a < b: print("a > b") else: print("a == b")
num = input().split(" ") a = int(num[0]) b = int(num[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
a,b=map(int,input().split()) if a>b: print("a>b") if a<b: print("a<b") if a==b: print("a==b")
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
49