# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
711677 |
2023-03-17T11:04:06 Z |
pcc |
Checker (COCI19_checker) |
C++14 |
|
73 ms |
5344 KB |
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define fs first
#define sc second
set<int> st;
int main(){
ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int n;
cin>>n>>n;
string col;
vector<pair<pii,int>> v(n-3);
cin>>col;
for(int i = 0;i<n-3;i++){
v.push_back({{0,0},0});
cin>>v[i].fs.fs>>v[i].fs.sc>>v[i].sc;
if(v[i].fs.fs>v[i].fs.sc)swap(v[i].fs.fs,v[i].fs.sc);
}
sort(v.begin(),v.end());
st.insert(v[0].fs.fs);
st.insert(v[0].fs.sc);
for(auto &i:v){
auto lit = st.upper_bound(i.fs.fs);
auto rit = st.lower_bound(i.fs.sc);
if(lit != rit){
cout<<"neispravna triangulacija\n";
return 0;
}
st.insert(i.fs.fs);
st.insert(i.fs.sc);
}
cout<<"tocno\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
73 ms |
5256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
72 ms |
5344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |