# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
208910 | Sensei | Prosjecni (COCI16_prosjecni) | C++14 | 6 ms | 504 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/*
DATE: 2020-03-12 15:38:28
NAME:
PROBLEM: COCI16_PROSJECNI
*/
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5;
int a[MAXN + 7];
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
printf("%d ", (i - 1) * n + (j - 1) + 1);
}
printf("\n");
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |