# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
876455 | alexdd | 순열 (APIO22_perm) | C++17 | 474 ms | 2756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<iostream>
#include<vector>
#include<algorithm>
#include "perm.h"
const int NRIT = 10;
const int MAXLUN = 10;
const int MINLUN = 4;
using namespace std;
vector<pair<long long,vector<int>>> secvs;
bool cmp(pair<long long,vector<int>> x, pair<long long,vector<int>> y)
{
if(x.first > y.first)
return 1;
if(x.first < y.first)
return 0;
if((int)x.second.size()<(int)y.second.size())
return 1;
return 0;
}
long long dp[MAXLUN+5];
long long calc_nrs(vector<int> v)
{
for(int i=0;i<=(int)v.size();i++)
dp[i]=0;
for(int i=0;i<(int)v.size();i++)
{
dp[v[i]]++;
for(int j=0;j<v[i];j++)
dp[v[i]] += dp[j];
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |