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;
const int mxn=5e2+5;
int n,mark[mxn],ans;
int main(){
n=get_n();
int p=1;
while(!mark[p]){
mark[p]=1;
ans++;
int x=(p==1)?2:1;
for(int i=1;i<=n;i++){
if(i!=p && i!=x){
bool y=is_clockwise(p,x,i);
if(!y)
x=i;
}
}
p=x;
}
give_answer(ans);
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... |