# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
19947 | onjo0127 | 악수 (kriii4_D) | C++98 | 0 ms | 1088 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <algorithm>
#include <string.h>
#define MOD 1000000007
using namespace std;
int adj[41][41];
int net[41];
int n,mx=1;
void f(int key)
{
int i,j;
bool flag = true;
for(i=1;i<=n;i++) {
if(net[i]==0)flag=false;
}
if(flag)return;
mx = max(key,mx);
for(i=1;i<=n;i++) {
for(j=i+1;j<=n;j++) {
if(adj[i][j] == 0) {
adj[i][j] = 1;
net[i] = 1;
net[j] = 1;
f(key+1);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |