(String[] args)
| 8 | class Codechef |
| 9 | { |
| 10 | public static void main (String[] args) throws java.lang.Exception |
| 11 | { |
| 12 | // your code goes here |
| 13 | Scanner sc = new Scanner(System.in); |
| 14 | int t=sc.nextInt(); |
| 15 | while(t-->0){ |
| 16 | int x = sc.nextInt(); |
| 17 | int y = sc.nextInt(); |
| 18 | int p = sc.nextInt(); |
| 19 | int q = sc.nextInt(); |
| 20 | if(x==p && y==q) |
| 21 | System.out.println(0); |
| 22 | else if((x+y)%2==(p+q)%2) |
| 23 | System.out.println(2); |
| 24 | else System.out.println(1); |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 |
nothing calls this directly
no outgoing calls
no test coverage detected