# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1043984 | dwuy | Race (IOI11_race) | C++14 | 216 ms | 43840 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 "race.h"
#include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
typedef pair<int, int> pii;
struct Map{
int sz, id;
vector<int> vis;
vector<int> val;
Map(int n){
this->sz = n;
this->id = 1;
this->vis.assign(n + 5, 0);
this->val.assign(n + 5, 0);
}
void clear(){
id++;
}
void add(int key, int val){
this->vis[key] = id;
this->val[key] = val;
}
int get(int key){
return this->vis[key] == id? this->val[key] : 1e9;
# | 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... |