# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22874 | Jongwon Party (#40) | Polynomial Quine (KRIII5_PQ) | C++14 | 0 ms | 1116 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.
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
int n, i, j;
scanf("%d", &n);
if(n == 2)
{
printf("0 0\n1 0");
return 0;
}
for(i = 0; i<n; i++)
printf("0 ");
printf("\n");
for(i = 1; i<n; i++)
{
printf("%d ", i);
for(j = 1; j<n; j++)
printf("%d ", n-i);
printf("\n");
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |