Submission #980354

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
9803542024-05-12 05:53:41t9unkubjGame (APIO22_game)C++17
60 / 100
4096 ms35548 KiB
#pragma GCC optimize("O3")
#ifdef t9unkubj
#include "debug.cpp"
#else
#define dbg(...) 199958
#endif
using namespace std;
#include<bits/stdc++.h>
using uint=unsigned;
using ll=long long;
using ull=unsigned long long;
using ld=long double;
using pii=pair<int,int>;
using pll=pair<ll,ll>;
template<class T>using vc=vector<T>;
template<class T>using vvc=vc<vc<T>>;
template<class T>using vvvc=vvc<vc<T>>;
using vi=vc<int>;
using vvi=vc<vi>;
using vvvi=vc<vvi>;
using vl=vc<ll>;
using vvl=vc<vl>;
using vvvl=vc<vvl>;
template<class T>using smpq=priority_queue<T,vector<T>,greater<T>>;
template<class T>using bipq=priority_queue<T>;
#define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
#define REP(i,j,n) for(ll (i)=(j);i<(ll)(n);i++)
#define DREP(i,n,m) for(ll (i)=(n);i>=(m);i--)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

game.cpp: In function 'vvi readgraph(int, int, int)':
game.cpp:28:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
game.cpp:122:5: note: in expansion of macro 'rep'
  122 |     rep(i, m){
      |     ^~~
game.cpp: In function 'vc<T> presum(vc<T>&)':
game.cpp:28:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
game.cpp:137:5: note: in expansion of macro 'rep'
  137 |     rep(i,a.size())ret[i+1]=ret[i]+a[i];
      |     ^~~
game.cpp: In function 'void init(int, int)':
game.cpp:28:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
game.cpp:164:5: note: in expansion of macro 'rep'
  164 |     rep(i,k-1)dp[i]=i+1;
      |     ^~~
game.cpp:28:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
game.cpp:167:5: note: in expansion of macro 'rep'
  167 |     rep(i,k-1)g[i].pb(i+1),inv[i+1].pb(i);
      |     ^~~
game.cpp: In function 'int add_teleporter(int, int)':
game.cpp:28:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
game.cpp:183:9: note: in expansion of macro 'rep'
  183 |         rep(i,k_){
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...