Submission #7647883


Source Code Expand

Copy
<?php
fscanf(STDIN, '%d %d %d %d', $h, $w, $a, $b);
for ($i = 0; $i < $b; $i++) echo str_repeat('1', $a) . str_repeat('0', $w - $a) . PHP_EOL;
for ($i = $b; $i < $h; $i++) echo str_repeat('0', $a) . str_repeat('1', $w - $a) . PHP_EOL;

Submission Info

Submission Time
Task A - 01 Matrix
User hideyuk1
Language PHP7 (7.0.15)
Score 300
Code Size 237 Byte
Status
Exec Time 12 ms
Memory 5624 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample-01.txt, sample-02.txt
All 300 / 300 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
Case Name Status Exec Time Memory
01-01.txt 12 ms 4856 KB
01-02.txt 9 ms 4604 KB
01-03.txt 9 ms 4604 KB
01-04.txt 11 ms 4604 KB
01-05.txt 9 ms 4604 KB
01-06.txt 11 ms 5496 KB
01-07.txt 11 ms 4604 KB
01-08.txt 11 ms 5240 KB
01-09.txt 12 ms 5624 KB
01-10.txt 11 ms 5624 KB
01-11.txt 12 ms 5624 KB
01-12.txt 11 ms 5624 KB
sample-01.txt 9 ms 4604 KB
sample-02.txt 9 ms 4604 KB