Cod sursa(job #2534546)
Utilizator | Data | 30 ianuarie 2020 18:37:11 | |
---|---|---|---|
Problema | Numere 2 | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <fstream>
using namespace std;
int main()
{
ifstream fin("numere2.in");
ofstream fout("numere2.out");
int n,x,f,i,j,s;
fin>>n;
for(i=1;i<=n;i++)
{
fin>>x;
s=x-x/2;
for(j=s;j<s+x;j++)
fout<<j<<' ';
fout<<endl;
}
return 0;
}