git reimport

This commit is contained in:
2019-03-15 13:47:54 +04:00
commit 3b461f73de
489 changed files with 1631603 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package chelper;
import io.InputReader;
import io.OutputWriter;
import solutions.ChelperSolution;
public class TaskA extends ChelperSolution {
@Override
public void solve(int testNumber, InputReader in, OutputWriter out) {
super.solve(testNumber, in, out);
}
@Override
public void solve(int testNumber) {
String hand = in.nextString();
boolean ok = false;
for (int i = 0; i < 5; i++) {
String s = in.nextString();
ok |= s.charAt(0) == hand.charAt(0);
ok |= s.charAt(1) == hand.charAt(1);
}
out.println(ok ? "YES" : "NO");
}
}