結果

問題 No.565 回転拡大
ユーザー kohei2019kohei2019
提出日時 2022-02-11 12:43:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 653 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 76,744 KB
最終ジャッジ日時 2023-09-09 13:49:18
合計ジャッジ時間 5,596 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
76,532 KB
testcase_01 AC 83 ms
76,588 KB
testcase_02 AC 82 ms
76,636 KB
testcase_03 AC 72 ms
71,180 KB
testcase_04 AC 79 ms
76,540 KB
testcase_05 AC 72 ms
71,212 KB
testcase_06 AC 83 ms
76,600 KB
testcase_07 AC 82 ms
76,520 KB
testcase_08 AC 80 ms
76,552 KB
testcase_09 AC 71 ms
71,376 KB
testcase_10 AC 71 ms
71,372 KB
testcase_11 AC 71 ms
71,060 KB
testcase_12 AC 82 ms
76,516 KB
testcase_13 AC 71 ms
71,240 KB
testcase_14 AC 71 ms
71,312 KB
testcase_15 AC 74 ms
75,368 KB
testcase_16 AC 71 ms
71,196 KB
testcase_17 AC 72 ms
71,216 KB
testcase_18 AC 73 ms
71,388 KB
testcase_19 AC 84 ms
76,580 KB
testcase_20 AC 71 ms
71,304 KB
testcase_21 AC 72 ms
71,084 KB
testcase_22 AC 81 ms
76,628 KB
testcase_23 AC 71 ms
71,480 KB
testcase_24 AC 82 ms
76,744 KB
testcase_25 AC 83 ms
76,320 KB
testcase_26 AC 71 ms
71,312 KB
testcase_27 AC 80 ms
76,544 KB
testcase_28 AC 82 ms
76,472 KB
testcase_29 AC 73 ms
71,312 KB
testcase_30 AC 71 ms
71,372 KB
testcase_31 AC 70 ms
71,272 KB
testcase_32 AC 70 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


R,K = map(int,input().split())
H,W = map(int,input().split())
lsc = [list(input()) for i in range(H)]

ans = [[-1]*(W*K) for i in range(H*K)]

def rotate(ls):
    lsd = [[0]*len(ls) for i in range(len(ls[0]))]
    for i in range(len(ls[0])):
        for j in range(len(ls)):
            lsd[i][j] = ls[len(ls)-1-j][i]
    return lsd

for i in range(R//90):
    lsc = rotate(lsc)

ans = [[-1]*(len(lsc[0])*K) for i in range((len(lsc)*K))]

for i in range(len(lsc)):
    for j in range(len(lsc[0])):
        for k in range(K*i,K*i+K):
            for l in range(K*j,K*j+K):
                ans[k][l] = lsc[i][j]

for a in ans:
    print(*a,sep='')

    
0