Add tags

Add tags to the following comment
改行をどうするかちょっと悩んだけど、まぁ何とか。
151bytes。実質148bytes
1
2
3
4
5
#include <iostream>
int n;
void g(int i){while(i--)std::cout<<"*\n"[i?0:1];}
void f(int i){g(i);if(i!=n+1)f(i+1),g(i);}
main(){std::cin>>n;f(2);}

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...