제출 #872877

#제출 시각아이디문제언어결과실행 시간메모리
872877Darren0724Triangles (CEOI18_tri)C++17
35 / 100
7 ms604 KiB
#include <bits/stdc++.h> #include "trilib.h" //#include "trilib.c" using namespace std; int32_t main() { int n=get_n(); int cnt=0; set<int> ans; for(int i=1;i<=n;i++){ for(int j=i+1;j<=n;j++){ int flag=1; int flag2=1; for(int k=1;k<=n;k++){ if(i==k||j==k){ continue; } cnt++; assert(cnt<=1000000); int t=is_clockwise(i,j,k); flag&=t; flag2&=(!t); if(!flag&&!flag2){ break; } } if(flag||flag2){ ans.insert(i); ans.insert(j); } } } give_answer(ans.size()); 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...