Submission #424881

#TimeUsernameProblemLanguageResultExecution timeMemory
424881Runtime_error_Triangles (CEOI18_tri)C++14
35 / 100
405 ms332 KiB
#include "trilib.h" #include <bits/stdc++.h> using namespace std; int n; set<int> s; int main(){ s.clear(); n = get_n(); for(int i=1;i<=n;i++){ for(int j=i+1;j<=n;j++){ int res =0; for(int z=1;z<=n;z++){ if(z == i || z == j)continue; res |= (1<<is_clockwise(i,j,z)); } if(res == 1 || res == 2) s.insert(i),s.insert(j); } } give_answer(s.size()); }
#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...