結果
| 問題 |
No.565 回転拡大
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-16 12:45:45 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 786 bytes |
| コンパイル時間 | 2,026 ms |
| コンパイル使用メモリ | 199,508 KB |
| 最終ジャッジ日時 | 2025-01-09 07:21:36 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include<bits/stdc++.h>
using lint=long long;
int main(){
std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
lint r,k;std::cin>>r>>k;
lint h,w;std::cin>>h>>w;
std::vector<std::vector<char>>a(h,std::vector<char>(w));
for(lint i=0;i<h;i++)for(lint j=0;j<w;j++){
std::cin>>a.at(i).at(j);
}
r/=90;
while(r--){
std::vector<std::vector<char>>b(w,std::vector<char>(h));
for(lint i=0;i<h;i++)for(lint j=0;j<w;j++){
b.at(j).at(h-1-i)=a.at(i).at(j);
}
b.swap(a);
h^=w^=h^=w;
}
for(lint i=0;i<h*k;i++){
for(lint j=0;j<w*k;j++){
std::cout<<a.at(i/k).at(j/k);
}
std::cout<<'\n';
}
}
ngtkana