結果

問題 No.565 回転拡大
ユーザー Mr.FukuMr.Fuku
提出日時 2018-08-10 09:10:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,035 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,896 KB
実行使用メモリ 10,232 KB
最終ジャッジ日時 2023-10-24 13:07:25
合計ジャッジ時間 2,096 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 27 ms
10,224 KB
testcase_02 AC 27 ms
10,220 KB
testcase_03 AC 28 ms
10,220 KB
testcase_04 RE -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 AC 27 ms
10,224 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 28 ms
10,224 KB
testcase_13 WA -
testcase_14 AC 29 ms
10,220 KB
testcase_15 AC 28 ms
10,224 KB
testcase_16 AC 29 ms
10,220 KB
testcase_17 AC 28 ms
10,220 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 27 ms
10,220 KB
testcase_22 WA -
testcase_23 AC 27 ms
10,220 KB
testcase_24 AC 27 ms
10,224 KB
testcase_25 AC 27 ms
10,224 KB
testcase_26 AC 27 ms
10,220 KB
testcase_27 AC 27 ms
10,220 KB
testcase_28 WA -
testcase_29 AC 27 ms
10,220 KB
testcase_30 AC 27 ms
10,220 KB
testcase_31 AC 28 ms
10,220 KB
testcase_32 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

R,K = map(int,input().split())
H,W = map(int,input().split())
maps = [list(input()) for j in range(H)]
cpmap = []

def editmap():
    global cpmap
    if R==90 or R==270:
        h,w = W,H
    else:
        h,w = H,W
    
    cpmap = [["."*K for i in range(w)]for j in range(h)]
    
    if R==0:
        for hi in range(h):
            for wi in range(w):
                if maps[hi][wi]=="#":
                    cpmap[hi][wi]="#"*K
    elif R==90:
        for hi in range(h):
            for wi in range(w):
                if maps[wi][hi]=="#":
                    cpmap[hi][wi]="#"*K
    elif R==180:
        for hi in range(h):
            for wi in range(w):
                if maps[H-hi-1][W-wi-1]=="#":
                    cpmap[hi][wi]="#"*K
    else:
        for hi in range(h):
            for wi in range(w):
                if maps[wi][H-hi-1]=="#":
                    cpmap[hi][wi]="#"*K

def prtmap(mp):
    for i in range(len(mp)):
        for j in range(K):
            print("".join(mp[i]))

editmap()
prtmap(cpmap)
0