#include <iostream>
using namespace std;
int main() {
int n, **arr;
cin>>n;
arr = new int*[n];
for(int i = 0;i<n;i++)
arr[i] = new int[2];
for(int i = 0;i<n;i++){
cin>>arr[i][0]>>arr[i][1];
}
for(int i = 0;i<n;i++){
cout<<i+1<<' '<<arr[i][1]<<' '<<arr[i][0]<<endl;
}
for( int i = 0;i<n;i++){
cout<<"blocks fileno"<<i+1<<":";
for( int j = 0; j<arr[i][0];j++){
cout<<' '<<arr[i][1]+j;
}
cout<<endl;
}
return 0;
}
Comments
Post a Comment