Submission #7636104


Source Code Expand

Copy
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

int H, W, A, B;

int C[1005][10005];

int main(void) {

	cin >> H >> W >> A >> B;

	for (int i = 1; i <= H - B; i++) {
		for (int j = 1; j <= A; j++) {
			C[i][j] = 1;
		}
	}

	for (int i = H - B + 1; i <= H; i++) {
		for (int j = A + 1; j <= W; j++) {
			C[i][j] = 1;
		}
	}

	for (int i = 1; i <= H; i++) {
		for (int j = 1; j <= W; j++) {
			cout << C[i][j];
		}cout << endl;
	}


	return 0;
}

Submission Info

Submission Time
Task A - 01 Matrix
User LEE_0102
Language C++14 (GCC 5.4.1)
Score 300
Code Size 533 Byte
Status AC
Exec Time 57 ms
Memory 38400 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 14
Set Name Test Cases
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
Case Name Status Exec Time Memory
01-01.txt AC 1 ms 256 KB
01-02.txt AC 1 ms 256 KB
01-03.txt AC 1 ms 256 KB
01-04.txt AC 6 ms 16640 KB
01-05.txt AC 2 ms 256 KB
01-06.txt AC 55 ms 38272 KB
01-07.txt AC 6 ms 14592 KB
01-08.txt AC 37 ms 37888 KB
01-09.txt AC 57 ms 38400 KB
01-10.txt AC 50 ms 1280 KB
01-11.txt AC 57 ms 38400 KB
01-12.txt AC 54 ms 21760 KB
sample-01.txt AC 1 ms 256 KB
sample-02.txt AC 1 ms 256 KB