Submission #242538

# Submission time Handle Problem Language Result Execution time Memory
242538 2020-06-28T06:47:11 Z VEGAnn Prosjecni (COCI16_prosjecni) C++14
24 / 120
5 ms 384 KB
#include <bits/stdc++.h>
#define all(x) x.begin(),x.end()
using namespace std;
const int N = 510;
int n, m, k, id[N], x;
string s[N], t;

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);

#ifdef _LOCAL
    freopen("in.txt","r",stdin);
#endif // _LOCAL

    cin >> n;

    if (n & 1){
        for (int i = 1; i <= n * n; i++){
            cout << i;

            if (i % n == 0)
                cout << '\n';
            else cout << " ";
        }
    } else cout << -1;

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 384 KB Integer -1 violates the range [0, 1000000000]
2 Correct 5 ms 384 KB Output is correct
3 Incorrect 5 ms 384 KB Integer -1 violates the range [0, 1000000000]
4 Correct 5 ms 384 KB Output is correct
5 Incorrect 4 ms 384 KB Integer -1 violates the range [0, 1000000000]
6 Incorrect 4 ms 384 KB Integer -1 violates the range [0, 1000000000]
7 Incorrect 5 ms 384 KB Integer -1 violates the range [0, 1000000000]
8 Incorrect 4 ms 384 KB Integer -1 violates the range [0, 1000000000]
9 Incorrect 4 ms 384 KB Integer -1 violates the range [0, 1000000000]
10 Incorrect 5 ms 384 KB Integer -1 violates the range [0, 1000000000]