Advertisement
knyazer

Untitled

Nov 26th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner in = new Scanner(System.in);
  9.         int result = in.nextInt();
  10.         for (int i = 1; i < 3; i++)
  11.             result ^= in.nextInt();
  12.  
  13.         System.out.println(result == 0 ? "Not exist" : "Exist");
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement