結果
問題 | No.565 回転拡大 |
ユーザー |
|
提出日時 | 2017-09-08 22:35:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 574 bytes |
コンパイル時間 | 584 ms |
コンパイル使用メモリ | 65,536 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 06:21:47 |
合計ジャッジ時間 | 1,581 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;string s[20];int h,w,r,k;int H[20],W[20];main(){cin>>r>>k>>h>>w;for(int i=0;i<h;i++)cin>>s[i];if(r==0){for(int i=0;i<h*k;i++){for(int j=0;j<w*k;j++)cout<<s[i/k][j/k];cout<<endl;}}else if(r==90){for(int i=0;i<w*k;i++){for(int j=h*k;j--;)cout<<s[j/k][i/k];cout<<endl;}}else if(r==180){for(int i=h*k;i--;){for(int j=w*k;j--;)cout<<s[i/k][j/k];cout<<endl;}}else{for(int i=w*k;i--;){for(int j=0;j<h*k;j++)cout<<s[j/k][i/k];cout<<endl;}}}