結果
| 問題 |
No.565 回転拡大
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-17 14:05:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 937 bytes |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 66,588 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 13:28:33 |
| 合計ジャッジ時間 | 2,911 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 19 WA * 5 RE * 6 |
ソースコード
//スマホコーディング
#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;
}