This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |