結果

問題 No.565 回転拡大
ユーザー NoNo
提出日時 2018-01-21 15:10:23
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 1,588 bytes
コンパイル時間 4,194 ms
コンパイル使用メモリ 102,388 KB
実行使用メモリ 30,644 KB
最終ジャッジ日時 2023-08-26 19:36:16
合計ジャッジ時間 9,165 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
28,556 KB
testcase_01 AC 74 ms
30,404 KB
testcase_02 AC 73 ms
30,560 KB
testcase_03 AC 70 ms
28,508 KB
testcase_04 AC 71 ms
28,548 KB
testcase_05 AC 69 ms
28,412 KB
testcase_06 AC 74 ms
30,556 KB
testcase_07 AC 73 ms
30,384 KB
testcase_08 AC 75 ms
28,480 KB
testcase_09 AC 69 ms
28,352 KB
testcase_10 AC 74 ms
30,452 KB
testcase_11 AC 71 ms
28,712 KB
testcase_12 AC 74 ms
28,424 KB
testcase_13 AC 70 ms
30,444 KB
testcase_14 AC 68 ms
28,624 KB
testcase_15 AC 71 ms
28,484 KB
testcase_16 AC 71 ms
26,712 KB
testcase_17 AC 71 ms
30,384 KB
testcase_18 AC 71 ms
28,476 KB
testcase_19 AC 81 ms
28,604 KB
testcase_20 AC 74 ms
28,640 KB
testcase_21 AC 74 ms
30,444 KB
testcase_22 AC 73 ms
28,464 KB
testcase_23 AC 69 ms
30,476 KB
testcase_24 AC 74 ms
28,480 KB
testcase_25 AC 76 ms
28,204 KB
testcase_26 AC 70 ms
30,644 KB
testcase_27 AC 73 ms
30,388 KB
testcase_28 AC 74 ms
30,528 KB
testcase_29 AC 73 ms
30,476 KB
testcase_30 AC 70 ms
28,412 KB
testcase_31 AC 72 ms
30,468 KB
testcase_32 AC 73 ms
28,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
            }
        }
    }
}
0