結果
問題 |
No.565 回転拡大
|
ユーザー |
![]() |
提出日時 | 2018-01-21 15:10:23 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 1,588 bytes |
コンパイル時間 | 1,627 ms |
コンパイル使用メモリ | 113,424 KB |
実行使用メモリ | 24,576 KB |
最終ジャッジ日時 | 2024-12-25 21:08:45 |
合計ジャッジ時間 | 5,083 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Drawing; namespace y { class Program { static void Main(string[] args) { string[] ss = Console.ReadLine().Split(); int r = int.Parse(ss[0]) / 90; int k = int.Parse(ss[1]); ss = Console.ReadLine().Split(); int h = int.Parse(ss[0]); int w = int.Parse(ss[1]); var b = new Bitmap(w, h); for (int i = 0; i < h; i++) { string s = Console.ReadLine(); for (int j = 0; j < w; j++) { if (s[j] == '#') b.SetPixel(j, i, Color.Black); else b.SetPixel(j, i, Color.White); } } for (int i = 0; i < r; i++) { b.RotateFlip(RotateFlipType.Rotate90FlipNone); } for (int i = 0; i < b.Height * k; i++) { for (int j = 0; j < b.Width; j++) { if (b.GetPixel(j, i / k).Name == "ff000000") { for (int n = 0; n < k; n++) { Console.Write("#"); } } else { for (int n = 0; n < k; n++) { Console.Write("."); } } } Console.Write(Environment.NewLine); } } } }