#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 n=1;
for(int i=0;i<4;i++){
for(int 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;
for(int 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 n=1;
while(n<53){
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
if(deck[i][j]==n){
printf("%d:%d-%d\n",n
,trump_mark
[i
],trump_num
[j
]); }
}
}
n++;
}
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CiNpbmNsdWRlPHRpbWUuaD4KCnZvaWQgc2h1ZmZsZShpbnQgZGVja1tdWzEzXSk7CnZvaWQgcHJpbnRfdHJ1bXAoaW50IGRlY2tbXVsxM10saW50KnRydW1wX21hcmssaW50KnRydW1wX251bSk7CgppbnQgbWFpbih2b2lkKXsKaW50IGRlY2tbNF1bMTNdPXswfTsKaW50IHRydW1wX251bVsxM109ezEsMiwzLDQsNSw2LDcsOCw5LDEwLDExLDEyLDEzfTsKaW50IHRydW1wX21hcmtbNF09ezEwMCwyMDAsMzAwLDQwMH07CgppbnQgbj0xOwoKZm9yKGludCBpPTA7aTw0O2krKyl7CmZvcihpbnQgaj0wO2o8MTM7aisrKXsKZGVja1tpXVtqXT1uOwpuKys7Cn0KfQpzaHVmZmxlKGRlY2spOwpwcmludF90cnVtcChkZWNrLHRydW1wX21hcmssdHJ1bXBfbnVtKTsKcmV0dXJuIDA7Cn0KCnZvaWQgc2h1ZmZsZShpbnQgZGVja1tdWzEzXSl7CmludCBhLGIs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