Language: Java


import java.util.*;

class Main {
    public static void main(String args[]){
		
		//カード絵柄ごとに配列を用意し、それぞれ１から１３までを格納しておく
		 ArrayList cardS = new ArrayList();
		 for(int i = 0; i < 13; i++){
			cardS.add(i+1);
 		}
		　ArrayList cardH = new ArrayList();
		 for(int i = 0; i < 13; i++){
			  cardH.add(i+1);
		}
		 　ArrayList cardC = new ArrayList();
		for(int i = 0; i < 13; i++){
			  cardC.add(i+1);
		 }
		  ArrayList cardD = new ArrayList();
		for(int i = 0; i < 13; i++){
			 　cardD.add(i+1);
		}
		
		　Scanner sc = new Scanner(System.in);
		
		　//カードの枚数nを受け取る
		  String s1 = sc.next();
                int n = Integer.parseInt(s1);
        
        //入力されたカードの絵柄と数字を受け取り配列内の値とそれぞれ比べて、一致したものは配列から削除する
        for(int i = 0; i < n; i++){
        	String E = sc.next();
        	String snum = sc.next();
        	int num = Integer.parseInt(snum);
        　//スペードのとき
        	　if(E.equals("S")){
        		　int jc = cardS.size();
        		　for(int j = 0 ; j < jc; j++){
        			if(num == (int)(cardS.get(j))){
        				　cardS.remove(j);
        				　jc--;
        				　j--;
        			 }
        　		  }
        	  }
        　//ハートのとき
        	　else if(E.equals("H")){
        		int jc = cardH.size();
        		　for(int j = 0 ; j < jc; j++){
        			　if(num == (int)(cardH.get(j))){
        				cardH.remove(j);
        				jc--;
        				j--;
        			　}
        		　}
        	　}
         　//クラブのとき
        	　else if(E.equals("C")){
        		int jc = cardC.size();
        		for(int j = 0 ; j < jc; j++){
        			if(num == (int)(cardC.get(j))){
        				cardC.remove(j);
        				jc--;
        				j--;
        			}
        		 }
        	  }
          //ダイヤのとき
        	else if(E.equals("D")){
        		int jc = cardD.size();
        		for(int j = 0 ; j < jc; j++){
        			if(num == (int)(cardD.get(j))){
        				cardD.remove(j);
        				jc--;
        				j--;
        			}
        		}
        	}
        }
        
        //足りないカードをスペード、ハート、クラブ、ダイヤ、さらに数の小さいものから順に表示していく
        for(int i = 0; i < cardS.size(); i++){
        	System.out.println("S " + cardS.get(i));
        }
        for(int i = 0; i < cardH.size(); i++){
        	System.out.println("H " + cardH.get(i));
        }
        for(int i = 0; i < cardC.size(); i++){
        	System.out.println("C " + cardC.get(i));
        }
        for(int i = 0; i < cardD.size(); i++){
        	System.out.println("D " + cardD.get(i));
        }
        
	}

}

Compiler output:
Main.java:12: error: illegal character: '\u3000'
		?ArrayList cardH = new ArrayList();
		^
Main.java:16: error: illegal character: '\u3000'
		 ?ArrayList cardC = new ArrayList();
		 ^
Main.java:22: error: illegal character: '\u3000'
			 ?cardD.add(i+1);
			 ^
Main.java:25: error: illegal character: '\u3000'
		?Scanner sc = new Scanner(System.in);
		^
Main.java:27: error: illegal character: '\u3000'
		?//??????n?????
		^
Main.java:36: error: illegal character: '\u3000'
        ?//???????
        ^
Main.java:37: error: illegal character: '\u3000'
        	?if(E.equals("S")){
        	^
Main.java:38: error: illegal character: '\u3000'
        		?int jc = cardS.size();
        		^
Main.java:39: error: illegal character: '\u3000'
        		?for(int j = 0 ; j < jc; j++){
        		^
Main.java:41: error: illegal character: '\u3000'
        				?cardS.remove(j);
        				^
Main.java:42: error: illegal character: '\u3000'
        				?jc--;
        				^
Main.java:43: error: illegal character: '\u3000'
        				?j--;
        				^
Main.java:45: error: illegal character: '\u3000'
        ?		  }
        ^
Main.java:47: error: illegal character: '\u3000'
        ?//??????
        ^
Main.java:48: error: illegal character: '\u3000'
        	?else if(E.equals("H")){
        	^
Main.java:50: error: illegal character: '\u3000'
        		?for(int j = 0 ; j < jc; j++){
        		^
Main.java:51: error: illegal character: '\u3000'
        			?if(num == (int)(cardH.get(j))){
        			^
Main.java:55: error: illegal character: '\u3000'
        			?}
        			^
Main.java:56: error: illegal character: '\u3000'
        		?}
        		^
Main.java:57: error: illegal character: '\u3000'
        	?}
        	^
Main.java:58: error: illegal character: '\u3000'
         ?//??????
         ^
Main.java:48: error: 'else' without 'if'
        	?else if(E.equals("H")){
        	 ^
Main.java:59: error: illegal character: '\u3000'
        	?else if(E.equals("C")){
        	^
Main.java:59: error: 'else' without 'if'
        	?else if(E.equals("C")){
        	 ^
24 errors