제출 #1085039

#제출 시각아이디문제언어결과실행 시간메모리
1085039TsotneSV게임 (IOI14_game)C++14
0 / 100
0 ms604 KiB
#pragma gcc diagnostic "-std=c++1z" #include <bits/stdc++.h> using namespace std; /* /\_/\ (= ._.) / > \> */ //#pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast") #pragma GCC optimize ("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") // codeforces // #define int long long #define fi first #define se second #define pb push_back #define ins insert #define mp make_pair #define endl '\n' #define sz(x) ((long long) (x).size()) #define all(x) (x).begin(),(x).end() #define print(x) cout<<(x)<<" "; #define printl(x) cout<<(x)<<endl #define dbg(x) cerr<<#x<<" "<<x<<endl typedef pair<int,int> pii; typedef vector<int> vi; vector<int> cnt; int N,cmp,cc=0; void initialize(int n) { N = cmp = n; cc = 0; cnt = vi(n,0); } int hasEdge(int u, int v) { cc++; if(cnt[u] == N-2 or cnt[v] == N-2 or N*(N-1)/2 - cc < cmp) return 1; cnt[u]++; cnt[v]++; return 0; }

컴파일 시 표준 에러 (stderr) 메시지

game.cpp:1: warning: ignoring '#pragma gcc diagnostic' [-Wunknown-pragmas]
    1 | #pragma gcc diagnostic "-std=c++1z"
      |
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...