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;
#define pb push_back
#define sz(x) (int)x.size()
int n, cnt = 0;
vector<int> v;
int main()
{
n = get_n();
for(int i = 1; i <= n; i++)
{
for(int j = 1; j <= n; j++)
{
if(i == j) continue;
bool ok = true;
for(int k = 1; k <= n; k++)
{
if(i == k || j == k) continue;
if(!is_clockwise(i, j, k))
{
ok = false;
break;
}
}
if(ok)
cnt++;
}
}
printf("%d\n",cnt);
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... |