# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
57430 | duma3803 | 줄서기 (KOI17_line) | C++14 | 2 ms | 376 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 <bits/stdc++.h>
using namespace std;
int n;
int arr[10];
int main() {
int i;
scanf("%d",&n);
for (i=0;i<n;i++) arr[i] = i+1; // arr는 1, 2, 3, 4, ... , n
do {
for (i=0;i<n;i++) printf("%d ",arr[i]);
printf("\n");
} while(next_permutation(arr,arr+n));
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |