제출 #220211

#제출 시각아이디문제언어결과실행 시간메모리
220211joylintp게임 (IOI14_game)C++14
100 / 100
431 ms16380 KiB
#include"game.h"
#include<bits/stdc++.h>
using namespace std;

//#pragma gcc optimize("O3,unroll-loop")
//#pragma gcc target("sse,sse2,sse3,ssse3,sse4,avx,avx2,fma,abm,mmx,popcnt,tune=native")
//#define int long long
//#define double long double

int pos[1500];

void initialize(int n)
{
    for (int i = 0; i < n; i++)
        pos[i] = 0;
}

int hasEdge(int a, int b)
{
    if (a < b)
        swap(a, b);

    pos[a]++;
    return (pos[a] == a);
}

//      *   *  *****  *   *  *   *
//     *   *  *      **  *  *   *
//    *****  *****  * * *  *   *
//   *   *      *  *  **  *   *
//  *   *  *****  *   *   ***

//      ***** ***** *   * *     ***** *   * ***** *****
//        *  *   * *   * *       *   **  *   *   *   *
//       *  *   * ***** *       *   * * *   *   *****
//   *  *  *   *   *   *       *   *  **   *   *
//  ****  *****   *   ***** ***** *   *   *   *
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...