Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by abcd ( 14 years ago )
#include <iostream>
using namespace std;
int main(void)
{
int n, m;
cin » n » m;
int a[30], b[901], i;
for (i = 0; i < m; ++i)
{
cin » a[i];
b[a[i]] = 1;
cout « n;
}
int k, j;
k = 1;
while (b[k] = 1)
++k;
for (i = 0; i < m; ++i)
{
cout « a[i] « " ";
for (j = 1; j < n; ++j)
{
cout « k « " ";
++k;
while (b[k] = 1)
++k;
}
cout « endl;
}
}
Revise this Paste
Parent: 57307