#include <string> #include <iostream> int main(){int t;std::cin>>t;std::string x="#",y=" ##";for(;t>1;t--){x+=" #";y+=" ##";}x+="\n";std::cout<<y+"\n "+x+x+x+x+" "+x+y;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).