# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
14735 | gs13068 | Jakarta Skyscrapers (APIO15_skyscraper) | C++98 | 93 ms | 49496 KiB |
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<cstdio>
#include<vector>
#include<algorithm>
#include<queue>
int p[33333];
int q[33333];
std::vector<int> a[33333];
std::priority_queue<std::pair<int,int> > pq;
int t[33333][333];
int d[33333];
int v[33333];
int main()
{
std::pair<int,int> tt;
int i,j,k,l,n,m;
scanf("%d%d",&n,&m);
for(i=0;i<m;i++)
{
scanf("%d%d",&p[i],&q[i]);
if(q[i]>=300||!t[p[i]][q[i]])a[p[i]].push_back(q[i]);
if(q[i]<300)t[p[i]][q[i]]=1;
}
for(i=0;i<n;i++)d[i]=1e9;
pq.push(std::make_pair(0,p[0]));
while(!pq.empty()&&!v[p[1]])
{
tt=pq.top();
pq.pop();
# | 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... |