Submission #7636540


Source Code Expand

Copy
#include<bits/stdc++.h>

using namespace std;

#define ll long long

int main(){
  int h, w;
  int a, b;
  cin >> h >> w >> a >> b;
  for(int i = 1; i <= h; i++){
    for(int j = 1; j <= w; j++){
      if(i <= b && j <= a) {cout << 0;}
      else if(i > b && j > a) {cout << 0;}
      else {cout << 1;}
    }
    cout << '\n';
  }
  
  return 0;
}

Submission Info

Submission Time
Task A - 01 Matrix
User shauuebbit
Language C++14 (GCC 5.4.1)
Score 300
Code Size 367 Byte
Status AC
Exec Time 48 ms
Memory 1280 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 1 ms 256 KB
01-05.txt AC 1 ms 256 KB
01-06.txt AC 46 ms 1152 KB
01-07.txt AC 1 ms 256 KB
01-08.txt AC 28 ms 768 KB
01-09.txt AC 48 ms 1280 KB
01-10.txt AC 48 ms 1280 KB
01-11.txt AC 48 ms 1280 KB
01-12.txt AC 48 ms 1280 KB
sample-01.txt AC 1 ms 256 KB
sample-02.txt AC 1 ms 256 KB