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 MAX_N = 505;
bool mark[MAX_N][MAX_N];
int main() {
int N = get_n();
for(int i = 1; i <= N; i++) {
for(int j = 1; j <= N; j++) {
for(int k = 1; k <= N; k++) {
if(i != j and k != i and k != j and mark[i][j] == false and is_clockwise(k, i, j) == true) {
mark[i][j] = true;
}
}
}
}
set <int> s;
for(int i = 1; i <= N; i++) {
for(int j = 1; j <= N; j++) {
if(i != j and mark[i][j] == false) {
s.insert(i);
s.insert(j);
}
}
}
give_answer(s.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... |