제출 #380129

#제출 시각아이디문제언어결과실행 시간메모리
380129Theo830게임 (IOI14_game)C++17
100 / 100
382 ms16620 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef int ll; typedef pair<ll,ll> ii; #define iii pair<ll,ii> #define f(i,a,b) for(int i = a;i < b;i++) #define pb push_back #define vll vector<ll> #define F first #define S second #define all(x) (x).begin(), (x).end() ///I hope I will get uprating and don't make mistakes ///I will never stop programming ///sqrt(-1) Love C++ ///Please don't hack me ///@TheofanisOrfanou Theo830 ///Think different approaches (bs,dp,greedy,graphs,shortest paths,mst) ///Stay Calm ///Look for special cases ///Beware of overflow and array bounds ///Think the problem backwards ///Training ll cnt[1505] = {0}; void initialize(int n){ } int hasEdge(int u, int v){ ll p = max(u,v); cnt[p]++; if(cnt[p] == p){ return 1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...