답안 #991711

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
991711 2024-06-02T21:16:41 Z De3b0o Speedrun (RMI21_speedrun) C++17
0 / 100
10 ms 760 KB
#include "speedrun.h"
#include<bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define in insert
#define pb push_back
#define ppb pop_back()
#define d3 ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define cans cout << ans << "\n";
#define yes cout << "Yes" << "\n";
#define no cout << "No" << "\n";
#define pll pair<ll,ll>
#define lin cout << "\n";
#define sqr 340
#define mod 1000000007
#define mid ((l+r)/2)
#define lc (2*n)
#define rc (2*n+1)

using namespace std;

vector<ll> adj[1009];
vector<ll> et;

void assignHints(int subtask, int N, int A[], int B[])
{
    setHintLen(N);
    for(int i = 1 ; N>i ; i++)
    {
        adj[A[i]].pb(B[i]);
        adj[B[i]].pb(A[i]);
    }
    for(int i = 1 ; N>=i ; i++)
    {
        for(auto it : adj[i])
            setHint(i,it,1);
    }
}

void speedrun(int subtask, int N, int start)
{
    ll n = N;
    for(int j = 1 ; n>=j ; j++)
    {
        if(getHint(j))
            goTo(j);
    }
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 10 ms 760 KB Solution didn't visit every node
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 356 KB The length is too large
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB The length is too large
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB The length is too large
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB The length is too large
2 Halted 0 ms 0 KB -