Submission #699827

#TimeUsernameProblemLanguageResultExecution timeMemory
699827NursikSpeedrun (RMI21_speedrun)C++14
0 / 100
20 ms696 KiB
#include "speedrun.h" #include <iostream> #include <fstream> #include <iomanip> #include <vector> #include <set> #include <map> #include <cstring> #include <string> #include <cmath> #include <cassert> #include <ctime> #include <algorithm> #include <sstream> #include <list> #include <queue> #include <deque> #include <stack> #include <cstdlib> #include <cstdio> #include <iterator> #include <functional> #include <unordered_set> #include <unordered_map> #include <stdio.h> #include <bitset> using namespace std; void assignHints(int subtask, int N, int A[], int B[]) { /* your solution here */ setHintLen(N); for (int i = 1; i < N; ++i){ int x = A[i], y = B[i]; // setHint(x, y - 1, 1); // setHint(y, x - 1, 1); } } void dfs(int v, int p, int sz){ for (int j = 1; j <= sz; ++j){ if (j != p){ int z = goTo(j); if (z == 1){ dfs(j, v, sz); } } } if (p){ goTo(p); } } void speedrun(int subtask, int N, int start) { /* your solution here */ dfs(start, 0, N); }

Compilation message (stderr)

speedrun.cpp: In function 'void assignHints(int, int, int*, int*)':
speedrun.cpp:33:13: warning: unused variable 'x' [-Wunused-variable]
   33 |         int x = A[i], y = B[i];
      |             ^
speedrun.cpp:33:23: warning: unused variable 'y' [-Wunused-variable]
   33 |         int x = A[i], y = B[i];
      |                       ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...