Advertisement
Guest User

aretnoa

a guest
Nov 23rd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ChildsPlay {
  3.  
  4. public static void main(String[] args) {
  5. Scanner scn = new Scanner (System.in);
  6. int num = scn.nextInt();
  7. String []data = new String[num];
  8. for ( int i = 0; i < num; i++){
  9. data[i] = scn.nextLine();
  10. }
  11. int shapes = scn.nextInt();
  12. for (int k = 0 ; k < shapes; k++){
  13. for (int i = 0; i < num; i++){
  14. String test = scn.nextLine();
  15. if (!test.equals(data[i])){
  16. System.out.println(test);
  17. }
  18.  
  19. }
  20.  
  21.  
  22. }
  23.  
  24.  
  25.  
  26.  
  27. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement