結果

問題 No.565 回転拡大
ユーザー polylogKpolylogK
提出日時 2017-09-08 23:00:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 859 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 74,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-24 21:29:59
合計ジャッジ時間 1,658 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <string>
#include <string.h>
using namespace std;

const int MAX_N=100;
int r,k,h,v;

int main(){
	cin >> r >> k >> h >> v;
	string s[h];
	string w[h*k];
	
	for(int i=0;i<h;i++){
		cin >> s[i];
		for(int j=0;j<s[i].length();j++) for(int l=0;l<k;l++) w[i*k].push_back(s[i][j]);
		for(int j=i*k;j<(i+1)*k;j++) w[j]=w[i*k];
	}
	
	if(r==0){
		for(int i=0;i<h*k;i++) cout << w[i] << endl;
	}else if(r==90){
		for(int i=0;i<v*k;i++){
			for(int j=h*k-1;j>=0;j--){
				cout << w[j][i];
			}
			cout << endl;
		}
	}else if(r==180){
		for(int i=h*k-1;i>=0;i--){
			for(int j=v*k-1;j>=0;j--){
				cout << w[i][j];
			}
			cout << endl;
		}
	}else if(r==270){
		for(int i=v*k-1;i>=0;i--){
			for(int j=h*k-1;j>=0;j--){
				cout << w[j][i];
			}
			cout << endl;
		}
	}
	
	return 0;
}
0