Submission #8002080


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int main()
{
    ll H, W, A, B;
    cin >> H >> W >> A >> B;
    vector<string> M;
    REP(i, H)
    {
        string s = "";
        REP(j, W)
        {
            if ((i < B) ^ (j < A))
                s.push_back('0');
            else
                s.push_back('1');
        }
        M.push_back(s);
    }
    REP(i, H)
    {
        cout << M[i] << endl;
    }

    return 0;
}

Submission Info

Submission Time
Task A - 01 Matrix
User coco18000
Language C++14 (GCC 5.4.1)
Score 300
Code Size 699 Byte
Status AC
Exec Time 8 ms
Memory 2304 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 3 ms 256 KB
01-05.txt AC 1 ms 256 KB
01-06.txt AC 8 ms 2176 KB
01-07.txt AC 3 ms 256 KB
01-08.txt AC 6 ms 1920 KB
01-09.txt AC 8 ms 2304 KB
01-10.txt AC 8 ms 2304 KB
01-11.txt AC 8 ms 2304 KB
01-12.txt AC 8 ms 2304 KB
sample-01.txt AC 1 ms 256 KB
sample-02.txt AC 1 ms 256 KB