結果
| 問題 |
No.565 回転拡大
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-20 00:09:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 66,968 KB |
| 最終ジャッジ日時 | 2024-11-23 14:08:16 |
| 合計ジャッジ時間 | 3,500 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 30 |
ソースコード
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="")