map{print\"*\"x$_.\"\\n\"}(1..5);

승리의 펄



#include <iostream>
#include <string>

using namespace std;

template <int N> struct cc{static string g(){return \"*\" + cc<N-1>::g();}};
template <> struct cc<1>{static string g(){return \"*\";}};
template <int N> struct st{static string g(){return cc<N>::g() + \"\\n\" + st<N-1>::g();}};
template <> struct st<1>{static string g(){return cc<1>::g() + \"\\n\";}};

int main()
{
        cout << st<100>::g() <<endl;
        return 0;
}

더 좋은 방법이 있을것같은데
c++은 몇년동안 거의 안썼더니
생각이 안남