标签:color name space 包含 view 算法 class names stdin
#include <iostream> #include <cstdio> #include <vector> #include <queue> #include <cstring> #include <algorithm> #include <cstdlib> #define for(i,x,n) for(int i=x;i<n;i++) #define ll long long int #define INF 0x3f3f3f3f #define MOD 1000000007 #define MAX_N 50005 using namespace std; int main() { //freopen("data.txt", "r", stdin); //freopen("data.out", "w", stdout); int a[30]; int n; scanf("%d",&n); for(i,0,10){ a[i]=i; } for(i,1,n){ next_permutation(a,a+10); } for(i,0,10){ printf("%d",a[i]); } //fclose(stdin); //fclose(stdout); return 0; }
标签:color name space 包含 view 算法 class names stdin
原文地址:http://www.cnblogs.com/TWS-YIFEI/p/6375532.html