# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
334600 | SavicS | Kronican (COCI16_kronican) | C++14 | 850 ms | 8684 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(), a.end()
#define ff(i,a,b) for(int i=a;i<=b;i++)
#define fb(i,b,a) for(int i=b;i>=a;i--)
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
const int maxn = 25;
const ll inf = 1e18 + 5;
int n, k;
ll mat[maxn][maxn];
ll dp[(1 << 20)];
int main()
{
ios::sync_with_stdio(false);
cout.tie(nullptr);
cin.tie(nullptr);
cin >> n >> k;
ff(i,0,n - 1){
ff(j,0,n - 1)cin >> mat[i][j];
}
ff(mask,0,(1 << n) - 1)dp[mask] = inf;
ff(mask,0,(1 << n) - 1){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |