提出 #7644986
ソースコード 拡げる
using System;
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();
}
}
class Program
{
public static void Main()
{
var tmp = ReadIntArray();
int h = tmp[0], w = tmp[1], a = tmp[2], b = tmp[3];
for (int i = 0; i < b; i++)
{
Write(new String('0', a));
Write(new String('1', w-a));
WriteLine("");
}
for (int i = 0; i < h - b; i++)
{
Write(new String('1', a));
Write(new String('0', w-a));
WriteLine("");
}
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - 01 Matrix |
| ユーザ | unnohideyuki |
| 言語 | C# (Mono 4.6.2.0) |
| 得点 | 300 |
| コード長 | 719 Byte |
| 結果 | AC |
| 実行時間 | 32 ms |
| メモリ | 16340 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 300 / 300 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 | 22 ms | 11220 KiB |
| 01-02.txt | AC | 23 ms | 11348 KiB |
| 01-03.txt | AC | 22 ms | 11348 KiB |
| 01-04.txt | AC | 27 ms | 11220 KiB |
| 01-05.txt | AC | 23 ms | 13268 KiB |
| 01-06.txt | AC | 32 ms | 12244 KiB |
| 01-07.txt | AC | 27 ms | 11220 KiB |
| 01-08.txt | AC | 30 ms | 13908 KiB |
| 01-09.txt | AC | 32 ms | 14292 KiB |
| 01-10.txt | AC | 30 ms | 16340 KiB |
| 01-11.txt | AC | 32 ms | 16340 KiB |
| 01-12.txt | AC | 30 ms | 16340 KiB |
| sample-01.txt | AC | 22 ms | 9172 KiB |
| sample-02.txt | AC | 22 ms | 9172 KiB |