제출 #463515

#제출 시각아이디문제언어결과실행 시간메모리
463515fuad27Triangles (CEOI18_tri)C++14
0 / 100
1 ms204 KiB
#include<bits/stdc++.h> #include "trilib.h" using namespace std; typedef long long ll; typedef long double ld; #define vii vector<pair<int, int>> #define vi vector<int> #define vl vector<long long> #define vll vector<pair<long long, long long>> #define mp make_pair #define pb push_back #define rep(i, a, b) for(int i = a;i<=b;i++) #define f first #define s second #define FIO ios_base::sync_with_stdio(0);cin.tie(0); #define start int tt;cin>>tt;rep(testcase, 1, tt) #define print(k) cout<<"Case #"<<testcase<<": "<<k<<"\n"; #define endl "\n" #define DEBUG(k) cerr<<k<<"\n"; int main () { int n = get_n(), ans = 0; rep(i, 1, n) { rep(j, i+1, n) { bool check = true; rep(k, 1, n) { if(k == i or k == j)continue; check &= is_clockwise(i, j, k); } ans+=check; } } cout<<ans<<endl; }
#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...