結果

問題 No.565 回転拡大
ユーザー hedwig100hedwig100
提出日時 2020-05-20 10:39:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 477 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,464 KB
最終ジャッジ日時 2024-04-09 22:53:08
合計ジャッジ時間 17,086 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 462 ms
43,936 KB
testcase_01 AC 451 ms
44,316 KB
testcase_02 AC 463 ms
43,948 KB
testcase_03 AC 477 ms
43,936 KB
testcase_04 AC 456 ms
44,324 KB
testcase_05 AC 467 ms
44,248 KB
testcase_06 AC 466 ms
43,936 KB
testcase_07 AC 463 ms
44,328 KB
testcase_08 AC 446 ms
44,328 KB
testcase_09 AC 451 ms
43,944 KB
testcase_10 AC 463 ms
43,988 KB
testcase_11 AC 453 ms
44,312 KB
testcase_12 AC 462 ms
44,064 KB
testcase_13 AC 457 ms
43,936 KB
testcase_14 AC 461 ms
43,936 KB
testcase_15 AC 454 ms
44,200 KB
testcase_16 AC 471 ms
43,948 KB
testcase_17 AC 466 ms
44,192 KB
testcase_18 AC 453 ms
43,940 KB
testcase_19 AC 465 ms
44,464 KB
testcase_20 AC 457 ms
43,932 KB
testcase_21 AC 461 ms
43,948 KB
testcase_22 AC 462 ms
44,196 KB
testcase_23 AC 462 ms
43,936 KB
testcase_24 AC 450 ms
44,196 KB
testcase_25 AC 455 ms
44,320 KB
testcase_26 AC 461 ms
44,188 KB
testcase_27 AC 461 ms
44,364 KB
testcase_28 AC 467 ms
43,944 KB
testcase_29 AC 464 ms
44,316 KB
testcase_30 AC 469 ms
43,936 KB
testcase_31 AC 463 ms
44,452 KB
testcase_32 AC 458 ms
43,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
R,K = map(int,input().split())
H,W = map(int,input().split())
grid = np.array([list(input()) for _ in range(H)])
grid = np.repeat(grid,K,axis = 1)
grid = np.repeat(grid,K,axis = 0)
for _ in range(R//90):
    grid = grid[::-1].T
print('\n'.join(''.join(a) for a in grid))
0