# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
30410 |
2017-07-23T10:20:59 Z |
inqr |
게임 (IOI14_game) |
C++14 |
|
0 ms |
10812 KB |
#include "game.h"
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define rt insert
#define st first
#define nd second
#define ll long long
#define pii pair < int , int >
#define DB printf("debug\n");
#define umax( x , y ) x = max( x , (y) )
#define umin( x , y ) x = min( x , (y) )
#define all(x) x.begin() , x.end()
using namespace std;
int nonode[1505];
int N,totno,maxque,maxyes,maxno;
void initialize(int n) {
N=n;
maxque=(n)*(n+1)/(2);
maxyes=n-1;
maxno=maxque-maxyes;
}
int hasEdge(int u, int v) {
if(nonode[u]<N-2&&nonode[v]<N-2&&totno<maxno){
return 0;
nonode[u]++;
nonode[v]++;
totno++;
}
return 1;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
10812 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
10812 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
10812 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |