【アルゴリズム】サル選大王問題
436 ワード
#define MAX 100
#include
void main()
{
int a[MAX];
int i,j=0,k=0,n,m; //n:monkey m:number
printf("****The king of monkey****
");
printf("The number of the monkey:");
scanf("%d",&n);
printf("The number to read:");
scanf("%d",&m);
printf("The king is NO.");
for(i=0;i