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 <bits/stdc++.h>
#include "trilib.h"
//#include "trilib.c"
using namespace std;
int32_t main() {
int n=get_n();
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;
}
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 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... |