#include <stdio.h>
int main(void){
    char a,c;
    int n,b,i,j,k;
    int cards[4][13];
    for(i=0;i<4;i++){
        for(j=0;j<13;j++) cards[i][j]=0;
    }
     
    scanf("%d",&n);
    for(k=1;k<=n;k++){
        scanf("%c",&c);
        scanf("%c %d",&a,&b);
        if(a=='S') i=0;
        if(a=='H') i=1;
        if(a=='C') i=2;
        if(a=='D') i=3;
         
        cards[i][b-1]=1;
    }
     
    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(cards[i][j]==0){
               if(i==0) printf("S %d\n",j+1);
               if(i==1) printf("H %d\n",j+1);
               if(i==2) printf("C %d\n",j+1);
               if(i==3) printf("D %d\n",j+1);
                
            }
        }
    }
    return 0;
}

Compile Error Logs:

ステータス
Judge: 4/4	C	CPU: 00:00 sec	Memory: 2044 KB	Length: 727 B	2018-05-15 21:13
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:00	2044	160	67	testcase_00
Case #2	: Accepted	00:00	2032	18	208	testcase_01
Case #3	: Accepted	00:00	2032	227	0	testcase_02
Case #4	: Accepted	00:00	2032	211	16	testcase_03

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )

