Submission #980303

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
9803032024-05-12 04:22:22t9unkubjPermutation (APIO22_perm)C++17
0 / 100
1 ms348 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--)
#define drep(i,n) for(ll i=(n-1);i>=0;i--)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

perm.cpp: In function 'vvi readgraph(int, int, int)':
perm.cpp:27:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   27 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
perm.cpp:121:5: note: in expansion of macro 'rep'
  121 |     rep(i, m){
      |     ^~~
perm.cpp: In function 'vc<T> presum(vc<T>&)':
perm.cpp:27:25: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   27 | #define rep(i,n) for(ll (i)=0;i<(ll)(n);i++)
      |                         ^
perm.cpp:136:5: note: in expansion of macro 'rep'
  136 |     rep(i,a.size())ret[i+1]=ret[i]+a[i];
      |     ^~~
perm.cpp: In function 'vi construct_permutation(ll)':
perm.cpp:28:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   28 | #define REP(i,j,n) for(ll (i)=(j);i<(ll)(n);i++)
      |                           ^
perm.cpp:162:9: note: in expansion of macro 'REP'
  162 |         REP(i,1,64){
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...