Public submissions
|Source code of every submission to this problem in this contest|will be visible for everyone since {$pdata.sc_from}.|
Zgłaszanie | Wszystkie zgłoszenia | Najlepsze | Lista |
PP115B2 - Wielkie H |
Wykorzystując znaki * (gwiazdka) wyświetl wzór w kształcie litery H.
Input
Dana jest jedna liczba naturalna 0< x <50.
Output
Wzór w kształcie litery H składający się z 2x+2 wierszy i x+2 kolumn tak, jak w przykładzie poniżej. Tło wyświetl wykorzystując znaki . (kropka).
Example
Input: 2 Output: *..* *..* **** **** *..* *..*
Example 2
Input: 6 Output: *......* *......* *......* *......* *......* *......* ******** ******** *......* *......* *......* *......* *......* *......*
Dodane przez: | kuszi |
Data dodania: | 2011-11-16 |
Limit czasu wykonania programu: | 1s |
Limit długości kodu źródłowego | 50000B |
Limit pamięci: | 1536MB |
Cluster: | Cube (Intel G860) |
Języki programowania: | All except: ASM64 SCALA SCM qobi |
Pochodzenie: | folklor |
Public source code since: | 2012-06-16 15:43:52 |