Submission #457600

# Submission time Handle Problem Language Result Execution time Memory
457600 2021-08-07T08:41:50 Z idas Coins (LMIO19_monetos) C++11
8.37512 / 100
17 ms 460 KB
#include <bits/stdc++.h>
#define FOR(i, begin, end) for(int i=(begin); i<(end); i++)
#define F first
#define S second
#define PB push_back
#define FAST_IO ios_base::sync_with_stdio(0); cin.tie(nullptr)

using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef map<int, int> mii;


const int N=310;
int ts, n, k1, k2, g[N][N];

int main()
{
    FAST_IO;
    cin >> ts >> n >> k1 >> k2;
    FOR(i, 0, n) FOR(j, 0, n){int x; cin >> x;}
    /*vector<pair<int, pii>> inf;
    FOR(i, 0, n)
    {
        FOR(j, 0, n)
        {
            cin >> g[i][j];
        }
    }

    bool going=true;
    while(going){
        going=false;
        FOR(i, 0, n-1)
        {
            FOR(j, 0, n-1)
            {
                if(g[i][j]==0) continue;
                if(g[i+1][j]==0){
                    swap(g[i][j], g[i+1][j]);
                    going=true;
                }
                else if(g[i][j+1]==0){
                    swap(g[i][j], g[i][j+1]);
                    going=true;
                }
            }
        }
    }

    FOR(i, 0, n)
    {
        FOR(j, 0, n)
        {
            cout << g[i][j] << " ";
        }
        cout << '\n';
    }*/
    FOR(i, 0, n)
    {
        FOR(j, 0, n)
        {
            if(j>=n/2){
                cout << 1 << " ";
            }
            else cout << 0 << " ";
        }
        cout << '\n';
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB K = 25
2 Incorrect 1 ms 204 KB K = 648
3 Incorrect 17 ms 460 KB K = 21146
4 Partially correct 14 ms 452 KB K = 23239
5 Partially correct 16 ms 432 KB K = 18430
6 Partially correct 14 ms 460 KB K = 22273
7 Incorrect 17 ms 448 KB K = 22837
8 Partially correct 14 ms 448 KB K = 20045
9 Partially correct 14 ms 416 KB K = 21031
10 Incorrect 15 ms 384 KB K = 22645