結果

問題 No.565 回転拡大
ユーザー lloyzlloyz
提出日時 2022-09-01 00:27:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 788 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 52,992 KB
最終ジャッジ日時 2024-04-26 06:05:33
合計ジャッジ時間 2,519 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,992 KB
testcase_01 AC 37 ms
52,736 KB
testcase_02 WA -
testcase_03 AC 38 ms
52,736 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 37 ms
52,096 KB
testcase_08 AC 38 ms
52,864 KB
testcase_09 WA -
testcase_10 AC 37 ms
52,480 KB
testcase_11 AC 37 ms
52,096 KB
testcase_12 AC 37 ms
52,608 KB
testcase_13 AC 36 ms
51,968 KB
testcase_14 AC 36 ms
52,352 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 36 ms
52,736 KB
testcase_19 AC 36 ms
52,352 KB
testcase_20 AC 36 ms
52,224 KB
testcase_21 WA -
testcase_22 AC 38 ms
52,224 KB
testcase_23 AC 37 ms
52,480 KB
testcase_24 WA -
testcase_25 AC 41 ms
52,096 KB
testcase_26 WA -
testcase_27 AC 38 ms
52,608 KB
testcase_28 AC 40 ms
52,864 KB
testcase_29 AC 38 ms
52,224 KB
testcase_30 AC 38 ms
52,224 KB
testcase_31 AC 37 ms
52,352 KB
testcase_32 AC 37 ms
52,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r, k = map(int, input().split())
h, w = map(int, input().split())
C = [list(input()) for _ in range(h)]

if r == 0:
    T = C
elif r == 90:
    T = [['' for _ in range(h)] for _ in range(w)]
    for i in range(w):
        for j in range(h):
            T[i][j] = C[h - j - 1][i]
elif r == 180:
    T = [['' for _ in range(w)] for _ in range(h)]
    for i in range(h):
        for j in range(w):
            T[i][j] = C[i][w - j - 1]
elif r == 270:
    T = [['' for _ in range(h)] for _ in range(w)]
    for i in range(w):
        for j in range(h):
            T[i][j] = C[j][i]
h_, w_ = len(T), len(T[0])
ANS = []
for i in range(h_):
    for j in range(w_):
        T[i][j] = T[i][j] * k
    for _ in range(k):
        ANS.append(T[i])
for i in range(h_ * k):
    print(''.join(ANS[i]))
0