Submission #7641601


Source Code Expand

Copy
#include<bits/stdc++.h>
#define sz(v) ((int)(v).size())
using namespace std;
using lint = long long;
using pi = pair<int, int>;
const int MAXN = 2005;

int h, w, a, b;
char str[MAXN][MAXN];

int main(){
	cin >> h >> w >> a >> b;
	for(int i=0; i<h; i++){
		for(int j=0; j<w; j++){
			str[i][j] = '0';
		}
	}
	for(int i=0; i<a; i++){
		for(int j=0; j<b; j++){
			str[i][j] = '1';
		}
	}
	for(int i=a; i<h; i++){
		for(int j=b; j<w; j++){
			str[i][j] = '1';
		}
	}
	for(int i=0; i<h; i++) puts(str[i]);
}

Submission Info

Submission Time
Task A - 01 Matrix
User koosaga
Language C++14 (GCC 5.4.1)
Score 0
Code Size 532 Byte
Status WA
Exec Time 4 ms
Memory 3200 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 1
WA × 1
AC × 3
WA × 11
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 WA 1 ms 256 KB
01-03.txt WA 1 ms 256 KB
01-04.txt WA 2 ms 2048 KB
01-05.txt WA 1 ms 384 KB
01-06.txt WA 3 ms 3072 KB
01-07.txt WA 2 ms 2176 KB
01-08.txt WA 3 ms 2816 KB
01-09.txt WA 4 ms 3200 KB
01-10.txt AC 4 ms 3200 KB
01-11.txt WA 4 ms 3200 KB
01-12.txt WA 4 ms 3200 KB
sample-01.txt AC 1 ms 256 KB
sample-02.txt WA 1 ms 256 KB