結果

問題 No.565 回転拡大
ユーザー masakt
提出日時 2017-09-08 23:38:08
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-11-07 12:15:51
合計ジャッジ時間 4,833 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 7 WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - m
Syntax OK

ソースコード

diff #

r,a=gets.split.map &:to_i
n,m=gets.split.map &:to_i
s=[]
n.times{t=gets.chomp.chars.map{|c|c*a};a.times{s<<t}}
s=r<181?s.reverse: s
r%90<1?s.transpose: s
s=r>181?s.reverse: s.map(&:reverse)
s.map{|i|i.map{|j|$><<j}
puts}
0