Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ChildsPlay {
- public static void main(String[] args) {
- Scanner scn = new Scanner (System.in);
- int num = scn.nextInt();
- String []data = new String[num];
- for ( int i = 0; i < num; i++){
- data[i] = scn.nextLine();
- }
- int shapes = scn.nextInt();
- for (int k = 0 ; k < shapes; k++){
- for (int i = 0; i < num; i++){
- String test = scn.nextLine();
- if (!test.equals(data[i])){
- System.out.println(test);
- }
- }
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement