Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <cmath>
- using namespace std;
- int N=0,K=0,dim;
- char mat[11][11];
- char res[17001][17001];
- int main(){
- char read;
- read=getchar_unlocked();
- do{
- N=(N<<3)+(N<<1)+(read-'0');
- read=getchar_unlocked();
- }while(read>='0'&&read<='9');
- read=getchar_unlocked();
- do{
- K=(K<<3)+(K<<1)+(read-'0');
- read=getchar_unlocked();
- }while(read>='0'&&read<='9');
- dim=pow(N,K);
- //cout<<K<<endl;
- for(int i=0;i<N;i++){
- for(int j=0;j<N;j++)
- mat[i][j]=getchar_unlocked();
- getchar_unlocked();
- }
- for(int i=0;i<dim;i++){
- for(int j=0;j<dim;j++)
- putchar_unlocked('.');
- if(i!=dim-1)
- putchar_unlocked('\n');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement