結果

問題 No.564 背の順
ユーザー ebicochinealebicochineal
提出日時 2017-09-08 23:04:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 621 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,900 KB
実行使用メモリ 8,032 KB
最終ジャッジ日時 2023-08-07 02:37:50
合計ジャッジ時間 1,004 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env python3

R, K = map(int, input().split())
H, W = map(int, input().split())
A = [input() for x in range(H)]
w = []
for i in A:
    t = ''
    for j in i:
        t += j * K
    w += [t]
wh = []
for i in w:
    wh += [i] * K
if R % 360 == 0:
    for i in wh:
        print(i)
elif R == 180:
    for i in wh:
        print(i[::-1])
elif R == 90:
    for i in range(W*K):
        t = ''
        for j in range(H*K):
            t += wh[j][i]
        print(t)
elif R == 270:
    for i in list(range(W*K))[::-1]:
        t = ''
        for j in list(range(H*K))[::-1]:
            t += wh[j][i]
        print(t)
0