結果

問題 No.565 回転拡大
ユーザー maspymaspy
提出日時 2020-01-04 23:51:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 510 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,464 KB
最終ジャッジ日時 2024-05-02 09:00:45
合計ジャッジ時間 19,558 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 510 ms
44,456 KB
testcase_01 AC 502 ms
44,200 KB
testcase_02 AC 499 ms
44,212 KB
testcase_03 AC 492 ms
44,080 KB
testcase_04 AC 507 ms
44,204 KB
testcase_05 AC 494 ms
43,952 KB
testcase_06 AC 504 ms
44,076 KB
testcase_07 AC 499 ms
44,464 KB
testcase_08 AC 501 ms
44,076 KB
testcase_09 AC 495 ms
44,204 KB
testcase_10 AC 496 ms
43,948 KB
testcase_11 AC 499 ms
44,200 KB
testcase_12 AC 504 ms
44,076 KB
testcase_13 AC 496 ms
44,084 KB
testcase_14 AC 505 ms
43,948 KB
testcase_15 AC 500 ms
44,076 KB
testcase_16 AC 501 ms
44,208 KB
testcase_17 AC 500 ms
44,204 KB
testcase_18 AC 498 ms
43,952 KB
testcase_19 AC 506 ms
44,204 KB
testcase_20 AC 500 ms
43,952 KB
testcase_21 AC 492 ms
44,208 KB
testcase_22 AC 497 ms
44,460 KB
testcase_23 AC 493 ms
43,956 KB
testcase_24 AC 497 ms
44,076 KB
testcase_25 AC 503 ms
43,944 KB
testcase_26 AC 503 ms
43,948 KB
testcase_27 AC 492 ms
44,212 KB
testcase_28 AC 495 ms
43,948 KB
testcase_29 AC 490 ms
44,052 KB
testcase_30 AC 491 ms
43,828 KB
testcase_31 AC 507 ms
43,952 KB
testcase_32 AC 502 ms
44,208 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[::-1].T

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