fork(1) download
  1. // найти одинаковые числа из 3-х и вывести
  2. public class SameNumbers
  3. {
  4. public static void main(String[] args) throws Exception
  5. {
  6. int a = Integer.parseInt(bR.readLine());
  7. int b = Integer.parseInt(bR.readLine());
  8. int c = Integer.parseInt(bR.readLine());
  9.  
  10. if (a == b || a == c || b == c)
  11. {
  12. if (a == b && c == b)
  13. {
  14. System.out.println(a + " " + b + " " + c);
  15. } else
  16. {
  17. if (a == b)
  18. {
  19. System.out.println(a + " " + b);
  20. } else
  21. {
  22. if (b == c)
  23. {
  24. System.out.println(b + " " + c);
  25. } else
  26. {
  27. if (a == c)
  28. {
  29. System.out.println(a + " " + c);
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: class SameNumbers is public, should be declared in a file named SameNumbers.java
public class SameNumbers
       ^
Main.java:6: error: cannot find symbol
        BufferedReader bR = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class SameNumbers
Main.java:6: error: cannot find symbol
        BufferedReader bR = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class SameNumbers
Main.java:6: error: cannot find symbol
        BufferedReader bR = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class SameNumbers
4 errors
stdout
Standard output is empty