# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
21907 | iletavcioski | Bosses (BOI16_bosses) | C++98 | 879 ms | 2468 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<iostream>
#include<vector>
#include<queue>
using namespace std;
typedef long long ll;
int main()
{
ios_base::sync_with_stdio(false);
int n;
cin>>n;
vector<vector<int> > v;
vector<int> vec;
v.insert(v.begin(),n+1,vec);
for(int i=0;i<n;i++)
{
int k;
cin>>k;
for(int j=0;j<k;j++)
{
int a;
cin>>a;
a--;
v[a].push_back(i);
}
}
ll maxi=1e18;
for(int i=0;i<n;i++)
{
vector<int> vi(n+1,false);
vi[i]=true;
Compilation message (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... |