Submission #22874

#TimeUsernameProblemLanguageResultExecution timeMemory
22874Jongwon Party (#40)Polynomial Quine (KRIII5_PQ)C++14
0 / 7
0 ms1116 KiB
#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)

PQ.cpp: In function 'int main()':
PQ.cpp:14:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
                    ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...