Submission #549291

#TimeUsernameProblemLanguageResultExecution timeMemory
549291blueTriangles (CEOI18_tri)C++17
35 / 100
636 ms308 KiB
#include "trilib.h" #include <vector> #include <set> using namespace std; using vi = vector<int>; #define sz(x) int(x.size()) int main() { int n = get_n(); set<int> hull; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { if(i == j) continue; bool works = 1; for(int k = 1; k <= n; k++) { if(k == i || k == j) continue; works &= is_clockwise(i, j, k); } if(works) { hull.insert(i); hull.insert(j); } } } give_answer(sz(hull)); }
#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...