int main() { int i; np[0]=1; np[1]=0; for(i=1;i<1000000;i++) { if(0 == np[i]) { turn(i); } } while(gets(ch)!=NULL) { if('0' == ch[0]) { printf("Yes\n"); } else { if(1 == np[shu()]) { printf("Yes\n"); } else { printf("No\n"); } } } return 0; }
int main() { const char *su[ 4 ] = { "Hs", "Ds", "Cs", "Ss" }; const char *fa[ 13 ] = { "A", "D", "T", "Fo", "Fi", "Si", "Se", "E", "N", "Tn", "J", "Q", "K" }; int d[ 4 ][ 13 ] = { 0 }; int D[5][2]; srand( time( 0 ) ); shu( d ); dl( d, fa, su, D); //getchar(); //getchar(); return 0; }