提出 #8145382


ソースコード 拡げる

using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;

class MyUtil
{
    public static int[] ReadIntArray()
    {
	return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
    }
    public static void AutoFlushOff()
    {
	var sw =
	    new StreamWriter(Console.OpenStandardOutput()){AutoFlush = false};
	Console.SetOut(sw);
    }

    public static void Flush()
    {
	Console.Out.Flush();
    }
}

class Program
{
    public static void Main()
    {
	var tmp = ReadIntArray();
	int h = tmp[0], w = tmp[1], a = tmp[2], b = tmp[3];

	AutoFlushOff();

	    for (int i = 0; i < b; i++)
	    {
		for (int j = 0; j < a; j++)
		    Write(0);
		for (int j = 0; j < w-a; j++)
		    Write(1);
		WriteLine("");
	    }
	    for (int i = 0; i < h - b; i++)
	    {
		for (int j = 0; j < a; j++)
		    Write(1);
		for (int j = 0; j < w-a; j++)
		    Write(0);
		WriteLine("");
	    }

	    Flush();
    }
}

提出情報

提出日時
問題 A - 01 Matrix
ユーザ unnohideyuki
言語 C# (Mono 4.6.2.0)
得点 300
コード長 1076 Byte
結果 AC
実行時間 214 ms
メモリ 18380 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 300 / 300
結果
AC × 2
AC × 14
セット名 テストケース
Sample sample-01.txt, sample-02.txt
All 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, sample-01.txt, sample-02.txt
ケース名 結果 実行時間 メモリ
01-01.txt AC 23 ms 9172 KiB
01-02.txt AC 23 ms 13268 KiB
01-03.txt AC 24 ms 13268 KiB
01-04.txt AC 23 ms 9300 KiB
01-05.txt AC 24 ms 9300 KiB
01-06.txt AC 185 ms 14156 KiB
01-07.txt AC 23 ms 11220 KiB
01-08.txt AC 96 ms 11860 KiB
01-09.txt AC 214 ms 18380 KiB
01-10.txt AC 142 ms 14164 KiB
01-11.txt AC 176 ms 14288 KiB
01-12.txt AC 192 ms 18380 KiB
sample-01.txt AC 23 ms 11220 KiB
sample-02.txt AC 23 ms 13268 KiB