Submission #585084

#TimeUsernameProblemLanguageResultExecution timeMemory
585084hibikiTriangles (CEOI18_tri)C++11
35 / 100
7 ms300 KiB
#include<bits/stdc++.h> #include<trilib.h> using namespace std; #define pb push_back #define sz(x) (int)x.size() int n, cnt = 0; vector<int> v; int main() { n = get_n(); for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { if(i == j) continue; bool ok = true; for(int k = 1; k <= n; k++) { if(i == k || j == k) continue; if(!is_clockwise(i, j, k)) { ok = false; break; } } if(ok) cnt++; } } printf("%d\n",cnt); return 0; }
#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...