Submission #755656

#TimeUsernameProblemLanguageResultExecution timeMemory
755656Trumling슈퍼트리 잇기 (IOI20_supertrees)C++14
11 / 100
175 ms23900 KiB
#include "supertrees.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define F first #define S second #define enter cout<<'\n'; #define INF 99999999999999999 #define MOD 1000000007 #define all(x) x.begin(),x.end() int construct(vector<vector<int>> p) { ll n=p.size(); vector<vector<int>>ans(n,vector<int>(n,0)); if(n==1 || p[0][1]) for(int i=0;i<n;i++) for(int j=0;j<n;j++) if(abs(i-j)==1) ans[i][j]=1; build(ans); return 1; }

Compilation message (stderr)

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:19:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   19 | if(n==1 || p[0][1])
      | ^~
supertrees.cpp:25:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   25 |  build(ans);
      |  ^~~~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...