# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
110243 | Arturgo | 경주 (Race) (IOI11_race) | C++14 | 655 ms | 105224 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "race.h"
#include <vector>
#include <iostream>
#include <map>
using namespace std;
int INFINI = 1000 * 1000 * 1000;
int nbVilles, tailleTotale;
vector<pair<int, int>> voisins[200 * 1000];
struct Retour {
long long decProf;
int decChemin;
map<long long, int> profs;
Retour() {
decChemin = 0;
decProf = 0;
profs[0] = 0;
}
void shift(long long taille) {
decChemin++;
decProf += taille;
}
int getChemin(long long prof) {
if(profs.find(prof - decProf) == profs.end())
return INFINI;
# | 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... |