// найти одинаковые числа из 3-х и вывести
public class SameNumbers
{
{
int a
= Integer .
parseInt ( bR.
readLine ( ) ) ; int b
= Integer .
parseInt ( bR.
readLine ( ) ) ; int c
= Integer .
parseInt ( bR.
readLine ( ) ) ;
if ( a == b || a == c || b == c)
{
if ( a == b && c == b)
{
System .
out .
println ( a
+ " " + b
+ " " + c
) ; } else
{
if ( a == b)
{
System .
out .
println ( a
+ " " + b
) ; } else
{
if ( b == c)
{
System .
out .
println ( b
+ " " + c
) ; } else
{
if ( a == c)
{
System .
out .
println ( a
+ " " + c
) ; }
}
}
}
}
}
}
Ly8g0L3QsNC50YLQuCDQvtC00LjQvdCw0LrQvtCy0YvQtSDRh9C40YHQu9CwINC40LcgMy3RhSDQuCDQstGL0LLQtdGB0YLQuApwdWJsaWMgY2xhc3MgU2FtZU51bWJlcnMKewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgdGhyb3dzIEV4Y2VwdGlvbgogICAgewogICAgICAgIEJ1ZmZlcmVkUmVhZGVyIGJSID0gbmV3IEJ1ZmZlcmVkUmVhZGVyKG5ldyBJbnB1dFN0cmVhbVJlYWRlcihTeXN0ZW0uaW4pKTsKICAgICAgICBpbnQgYSA9IEludGVnZXIucGFyc2VJbnQoYlIucmVhZExpbmUoKSk7CiAgICAgICAgaW50IGIgPSBJbnRlZ2VyLnBhcnNlSW50KGJSLnJlYWRMaW5lKCkpOwogICAgICAgIGludCBjID0gSW50ZWdlci5wYXJzZUludChiUi5yZWFkTGluZSgpKTsKCiAgICAgICAgaWYgKGEgPT0gYiB8fCBhID09IGMgfHwgYiA9PSBjKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKGEgPT0gYiAmJiBjID09IGIpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihhICsgIiAiICsgYiArICIgIiArIGMpOwogICAgICAgICAgICB9IGVsc2UKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgaWYgKGEgPT0gYikKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oYSArICIgIiArIGIpOwogICAgICAgICAgICAgICAgfSBlbHNlCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgaWYgKGIgPT0gYykKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihiICsgIiAiICsgYyk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlCiAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAoYSA9PSBjKQogICAgICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oYSArICIgIiArIGMpOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQp9
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