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"
using namespace std;
typedef long long int ll;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n=get_n();
int odp=0;
for (int x=1;x<=n;x++){
for (int y=x+1;y<=n;y++){
int c0=0,c1=0;
for (int z=1;z<=n;z++){
if (x!=z && y!=z){
if (is_clockwise(x,y,z))c1++;
else c0++;
}
}
if (c0==0 || c1==0)odp++;
}
}
give_answer(odp);
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... |