// 10'30"
#include <bits/stdc++.h>
using namespace std;
bool arr[10][10];
int main()
{
for(int i = 1; i <= 6; ++ i)
{
int tmp;
cin >> tmp;
arr[i][tmp] = true;
}
int n;
cin >> n;
for(int k = 1; k < n; ++ k)
for(int i = 1; i <= 6; ++ i)
for(int j = 6; j >= 1; -- j)
if(arr[i][j] == false)
{
arr[i][j] = true;
break;
}
for(int i = 1; i <= 6; ++ i)
for(int j = 6; j >= 1; -- j)
if(arr[i][j] == false)
{
cout << j << ((i != 6) ?" ":"");
break;
}
cout << endl;
return 0;
}
标签:tmp,10,arr,15,int,085,--,L1,false
From: https://www.cnblogs.com/Frodnx/p/18369437