fork(2) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in=new Scanner(System.in);
  10. double x,y;
  11. x=in.nextDouble();
  12. y=in.nextDouble();
  13. boolean inside = ((y <= 2*x +2 ) && (y <= -2*x +2) && ( y >= -1));
  14. System.out.println (inside?"inside":"outside");
  15. }
  16. }
Success #stdin #stdout 0.14s 321344KB
stdin
0 0 
stdout
inside