#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void shuffle(int deck[][13]);
void print_trump(int deck[][13],int*trump_mark,int*trump_num);
int main(void){
int deck[4][13]={0};
int trump_num[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int trump_mark[4]={100,200,300,400};
int i,j,n=1;
for(i=0;i<4;i++){
for(j=0;j<13;j++){
deck[i][j]=n;
n++;
}
}
shuffle(deck);
print_trump(deck,trump_mark,trump_num);
return 0;
}
void shuffle(int deck[][13]){
int a,b,c,d,e,i;
for(i=0;i<100;i++){
e=deck[a][b];
deck[a][b]=deck[c][d];
deck[c][d]=e;
}
}
void print_trump(int deck[][13],int*trump_mark,int*trump_num){
int i,j,n=1;
do{
for(i=0;i<4;i++){
for(j=0;j<13;j++){
if(deck[i][j]==n){
}
}
}
n++;
}while(n<53);
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CiNpbmNsdWRlPHRpbWUuaD4KCgp2b2lkIHNodWZmbGUoaW50IGRlY2tbXVsxM10pOwp2b2lkIHByaW50X3RydW1wKGludCBkZWNrW11bMTNdLGludCp0cnVtcF9tYXJrLGludCp0cnVtcF9udW0pOwoKaW50IG1haW4odm9pZCl7CmludCBkZWNrWzRdWzEzXT17MH07CmludCB0cnVtcF9udW1bMTNdPXsxLDIsMyw0LDUsNiw3LDgsOSwxMCwxMSwxMiwxM307CmludCB0cnVtcF9tYXJrWzRdPXsxMDAsMjAwLDMwMCw0MDB9OwoKaW50IGksaixuPTE7Cgpmb3IoaT0wO2k8NDtpKyspewpmb3Ioaj0wO2o8MTM7aisrKXsKZGVja1tpXVtqXT1uOwpuKys7Cn0KfQpzaHVmZmxlKGRlY2spOwpwcmludF90cnVtcChkZWNrLHRydW1wX21hcmssdHJ1bXBfbnVtKTsKcmV0dXJuIDA7Cn0KCnZvaWQgc2h1ZmZsZShpbnQgZGVja1tdWzEzXSl7CmludCBhLGIsYyxkLGUsaTsKc3JhbmQodGltZShOVUxMKSk7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