結果

問題 No.565 回転拡大
ユーザー 👑 rin204rin204
提出日時 2022-01-20 00:10:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 29,708 KB
最終ジャッジ日時 2023-08-15 08:15:01
合計ジャッジ時間 8,246 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
29,620 KB
testcase_01 AC 134 ms
29,656 KB
testcase_02 AC 134 ms
29,536 KB
testcase_03 AC 132 ms
29,464 KB
testcase_04 AC 133 ms
29,500 KB
testcase_05 AC 133 ms
29,472 KB
testcase_06 AC 135 ms
29,516 KB
testcase_07 AC 133 ms
29,600 KB
testcase_08 AC 134 ms
29,552 KB
testcase_09 AC 132 ms
29,524 KB
testcase_10 AC 133 ms
29,572 KB
testcase_11 AC 131 ms
29,516 KB
testcase_12 AC 134 ms
29,464 KB
testcase_13 AC 132 ms
29,620 KB
testcase_14 AC 133 ms
29,460 KB
testcase_15 AC 133 ms
29,708 KB
testcase_16 AC 134 ms
29,588 KB
testcase_17 AC 132 ms
29,520 KB
testcase_18 AC 132 ms
29,516 KB
testcase_19 AC 142 ms
29,628 KB
testcase_20 AC 133 ms
29,632 KB
testcase_21 AC 134 ms
29,624 KB
testcase_22 AC 135 ms
29,568 KB
testcase_23 AC 132 ms
29,520 KB
testcase_24 AC 134 ms
29,560 KB
testcase_25 AC 135 ms
29,612 KB
testcase_26 AC 135 ms
29,500 KB
testcase_27 AC 134 ms
29,460 KB
testcase_28 AC 136 ms
29,500 KB
testcase_29 AC 134 ms
29,528 KB
testcase_30 AC 132 ms
29,460 KB
testcase_31 AC 133 ms
29,588 KB
testcase_32 AC 135 ms
29,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

r, k = map(int, input().split())
h, w = map(int, input().split())
C = np.array([list(input()) for _ in range(h)])
r //= 90
C = np.rot90(C, 4 - r)
if r % 2 == 1:
    h, w = w, h
for i in range(h * k):
    tmp = []
    for j in range(w * k):
        tmp.append(C[i // k][j // k])
    print(*tmp, sep="")
0