結果

問題 No.565 回転拡大
ユーザー face4face4
提出日時 2018-05-17 14:05:55
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 937 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 66,352 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-10 22:31:00
合計ジャッジ時間 3,282 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

//スマホコーディング
#include<iostream>
using namespace std;

int main(){
	int r, k, h, w;
	char A[10][10];
	cin >> r >> k >> h >> w;
	for(int i = 0; i < h; i++)
		for(int j = 0; j < w; j++)
			cin >> A[i][j];

    if(r == 0){
		for(int i = 0; i < k*h; i++){
			for(int j = 0; i < k*w; j++){
			      cout << A[i/k][j/k];
            }
            cout<<endl;
        }
    }else if(r == 90){
        for(int i = 0; i < k*w; i++){
			for(int j = k*h-1; j >= 0; j--){
			      cout << A[j/k][i/k];
            }
            cout<<endl;
        }
    }else if(r == 180){
        for(int i = k*h-1; i >=0; i--){
			for(int j = k*w-1; j >= 0; j--){
			      cout << A[i/k][j/k];
            }
            cout<<endl;
        }
    }else if(r == 270){
        for(int i = k*w-1; i >= 0; i--){
			for(int j = k*h-1; j >= 0; j--){
			      cout << A[j/k][i/k];
            }
            cout<<endl;
        }
    }
    
    return 0;
}
0