結果

問題 No.565 回転拡大
ユーザー ldsybldsyb
提出日時 2017-09-08 22:41:43
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 576 bytes
コンパイル時間 922 ms
コンパイル使用メモリ 69,792 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-08-07 03:01:28
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 2 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
4,384 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,384 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 1 ms
4,380 KB
testcase_24 WA -
testcase_25 AC 1 ms
4,376 KB
testcase_26 WA -
testcase_27 AC 2 ms
4,380 KB
testcase_28 WA -
testcase_29 AC 1 ms
4,380 KB
testcase_30 AC 1 ms
4,376 KB
testcase_31 AC 1 ms
4,384 KB
testcase_32 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;

vector<string> puni(vector<string> &s){
	vector<string> r(s[0].size());
	for(int j = 0; j < s[0].size(); j++){
		for(int i = 0; i < s.size(); i++){
			r[j] += s[i][j];
		}
	}
	return r;
}

int main(){
	int r, k, h, w;
	cin >> r >> k >> h >> w;
	vector<string> s(h);
	for(string &t:s) cin >> t;
	for(int i = 0; i < r / 90; i++){
		s = puni(s);
	}
	for(int i = 0; i < s.size(); i++){
		for(int j = 0; j < k; j++){
			for(int l = 0; l < s[i].size(); l++) cout << string(k, s[i][l]);
			cout << endl;
		}
	}
	return 0;
}
0