제출 #945193

#제출 시각아이디문제언어결과실행 시간메모리
945193AiperiiiTriangles (CEOI18_tri)C++14
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> #include "trilib.h" #define ff first #define ss second #define pb push_back #define all(x) x.begin(),x.end() using namespace std; signed main(){ ios_base::sync_with_stdio(); cin.tie(0);cout.tie(0); int n=get_n(); set <int> res; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ int clws=0,anti=0; for(int k=1;k<=n;k++){ if(i!=k && k!=j && i!=j){ if(is_clockwise(i,j,k))clws++; else anti++; } } if(clws==0 or anti==0){ res.insert(i); res.insert(j); } } } give_answer(res.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...