| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1353782 | mariza | Theseus (CEOI25_theseus) | C++20 | 4 ms | 2352 KiB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<int> paint(int n, vector<pair<int,int>> e, int t){
ll m=e.size();
vector<int> ans;
for(ll i=0; i<m; i++){
if(e[i].first==t || e[i].second==t) ans.push_back(1);
else ans.push_back(0);
}
return ans;
}
int travel(int n, int u, vector<pair<int,int>> nxt) {
for(auto i:nxt){
if(i.second==1) return i.first;
}
}Compilation message (stderr)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
