結果

問題 No.565 回転拡大
ユーザー maspymaspy
提出日時 2020-01-04 23:50:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,652 KB
最終ジャッジ日時 2024-05-02 08:58:54
合計ジャッジ時間 21,473 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 531 ms
44,328 KB
testcase_02 AC 533 ms
44,076 KB
testcase_03 AC 529 ms
44,204 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 528 ms
43,948 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 519 ms
43,952 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 531 ms
44,204 KB
testcase_16 AC 524 ms
44,076 KB
testcase_17 AC 524 ms
44,464 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 524 ms
44,076 KB
testcase_24 AC 533 ms
44,212 KB
testcase_25 AC 528 ms
44,076 KB
testcase_26 AC 531 ms
44,088 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 526 ms
44,340 KB
testcase_30 WA -
testcase_31 AC 524 ms
43,824 KB
testcase_32 AC 531 ms
43,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

R,K = map(int,readline().split())
H,W = map(int,readline().split())
C = np.frombuffer(read(),'S1').reshape(H,-1)[:,:W].astype('U1')

D = np.repeat(C,K,axis=0).repeat(K,axis=1)

for _ in range(R//90):
    D = D.T[::-1]

print('\n'.join(''.join(row) for row in D))
0