제출 #585099

#제출 시각아이디문제언어결과실행 시간메모리
585099JomnoiTriangles (CEOI18_tri)C++17
35 / 100
143 ms472 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...