#include <iostream>
using namespace std;

int main()
{
int a[9]={2,8,1,7,5,6,9,3,0};
int b[10];
int i;
for (i=0;i<10;i++)
{
b[i]=-1;
}

for (i=0;i<9;i++)
{
b[a[i]]=a[i];
}

for (i=0;i<10;i++)
{
if (b[i]==-1)
{
cout<<i<<endl;
break;
}
}

system("pause");
return 0;
}

相关文章:

  • 2021-05-26
  • 2021-06-26
  • 2022-12-23
  • 2022-01-05
  • 2021-07-26
  • 2022-12-23
  • 2021-11-20
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-06-18
  • 2021-08-29
  • 2021-10-15
  • 2021-07-15
相关资源
相似解决方案