# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
240203 | DavidDamian | Checker (COCI19_checker) | C++11 | 15 ms | 768 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
///Subtask 1
///O(n^3)
#define debug(x) cout<<#x<<" = "<<x<<endl
struct edge
{
int from,to;
edge(){}
edge(int from,int to) : from(from),to(to){}
};
int n;
int color[305][305];
int segments[305];
bool checkTriang()
{
vector<edge> edges;
for(int i=1;i<=n-3;i++){
int a,b,c;
cin>>a>>b>>c;
if(color[a][b]!=0)
return false;
color[a][b]=color[b][a]=c;
for(edge e: edges){
for(int u=e.from+1;u!=e.to;u=(u<n)? u+1 : 1){
segments[u]=1;
}
for(int u=e.to+1;u!=e.from;u=(u<n)? u+1 : 1){
segments[u]=2;
}
# | 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... |