# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
424972 | Runtime_error_ | Triangles (CEOI18_tri) | C++14 | 1 ms | 420 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "trilib.h"
#include <bits/stdc++.h>
using namespace std;
int n;
set<int> s;
int go(int x){
int y = n;
if(x == n)
y = 1;
for(int j=1;j<=n;j++){
if(j == x || j == y)
continue;
if(is_clockwise(x,y,j))
y = j;
}
}
int main(){
s.clear();
n = get_n();
for(int i=1;i<=n;i++){
int neighbour = go(i);
if(s.count(neighbour))
give_answer(n-1),exit(0);
s.insert(neighbour);
}
give_answer(n);
}
/*
6
1 1
4 3
2 2
1 4
5 1
3 2
*/
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |