結果
| 問題 |
No.565 回転拡大
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-10 21:51:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 816 bytes |
| コンパイル時間 | 820 ms |
| コンパイル使用メモリ | 84,264 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-24 02:25:15 |
| 合計ジャッジ時間 | 1,866 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
//#include<bits/stdc++.h>
using namespace std;
int main() {
int r, k;
cin >> r >> k;
int h, w;
cin >> h >> w;
char p[6][11][11] = {};
int n = 0;
for (int i = 0; i < h; i++) {
for(int j=0;j<w;j++)cin >> p[0][i][j];
}
while (r) {
r -= 90;
n++;
for (int i = 0; i < w; i++)for (int j = 0; j < h; j++)p[n][i][j] = p[n - 1][h-1-j][i];
swap(h, w);
}
for (int i = 0; i < h*k; i++) {
for (int j = 0; j < w*k; j++)cout << p[n][i/k][j/k];
cout << endl;
}
return 0;
}