結果
問題 |
No.565 回転拡大
|
ユーザー |
![]() |
提出日時 | 2020-01-04 23:51:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 557 ms / 2,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 44,460 KB |
最終ジャッジ日時 | 2024-11-22 21:49:04 |
合計ジャッジ時間 | 19,471 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
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))