Comment detail

LL Golf Hole 8 - 横向きのピラミッドを作る (Nested Flatten)

標準入力から。

1
2
3
4
5
6
7
import std.stdio, std.conv, std.string;

void main() {
    int n = to!(uint)(chomp(readln));
    foreach(i; 1..n*2)
        writeln("*".repeat(i<n?i:2*n-i));
}

Index

Feed

Other

Link

Pathtraq

loading...