Dataset Viewer
Auto-converted to Parquet Duplicate
feedback_prompt
stringlengths
6.44k
54.8k
solution_poor
stringclasses
100 values
solution_good
stringclasses
100 values
score_poor
float64
0
100
score_good
float64
0.04
100
score_diff
float64
0
100
prompt
stringclasses
100 values
problem_id
stringclasses
100 values
source
stringclasses
1 value
problem_path
stringclasses
100 values
responses
listlengths
8
8
score_unbounded
listlengths
8
8
score_bounded
listlengths
8
8
score_avg
float64
0.01
100
feedback
stringlengths
2.32k
23.7k
Role: Feedback Generator Objective: You are an expert computer scientist tasked with evaluating two solutions of varying quality (one poor, one good) provided for a specific problem. Your responsibility is to produce constructive feedback aimed at improving the poor solution toward the standard of the good solution, o...
```cpp #include <iostream> #include <vector> #include <string> #include <algorithm> #include <ctime> using namespace std; int grid[8][14]; int best_grid[8][14]; int best_score = 0; bool is_readable(int n) { string s = to_string(n); static bool reachable[2][8][14]; int curr = 0; for (int r = 0; r...
1$ *are* in the set. Let's re-list: $\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\}$ Wait, $V+6$ is $V-4 \pmod{10}$, so that's the same. Let's list them: $V+1, V+2$ (no), $V+3$ (no), $V+4, V+5, V+6, V+7, V+8$ (no), $V+9$. This is not all digits. This means if we are at $c_2$, we can only move to a $...
0
0.42024
0.42024
You are a competitive programmer. You will be given a problem statement, please implement a solution in C++. The execution time and memory limit are also stated in the statement so be aware of the complexity of the program. Please wrap the code in ```cpp and ``` so that it is properly formatted. Your response should ON...
110
algorithmic
algorithmic/110
[ "```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <ctime>\n\nusing namespace std;\n\nint grid[8][14];\nint best_grid[8][14];\nint best_score = 0;\n\nbool is_readable(int n) {\n string s = to_string(n);\n static bool reachable[2][8][14];\n int curr = 0;\n ...
[ 0, 4.916804333333333, 0, 0.4202396666666666, 81.23666666666666, 92.13034833333333, 4.874780666666667, 4.706684666666666 ]
[ 0, 4.916804333333333, 0, 0.4202396666666666, 81.23666666666666, 92.13034833333333, 4.874780666666667, 4.706684666666666 ]
23.535691
The poor solution fails because it attempts to use a **randomized local search (Hill Climbing)** on a massive state space ($10^{112}$) with a "brittle" scoring function. In this problem, changing a single cell rarely improves the sequence $X$ unless it specifically completes the very next number ($X+1$), leading to a "...
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0
4.706685
4.706685
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback and Improvement Guide\n\nThe poor solution attempts to solve the problem using a **Ran(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0
4.874781
4.874781
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback and Evaluation\n\n#### Comparison of Solutions\nThe **Poor Solution** attempts to solv(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0
4.916804
4.916804
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for Improving the Poor Solution\n\nThe current \"Poor Solution\" uses a local search ((...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0
81.236667
81.236667
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for Improving the Poor Solution\n\nYour current approach uses a **Hill-Climbing** algo(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0
92.130348
92.130348
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for the Poor Solution\n\nThe poor solution attempts to solve a construction-based prob(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0.42024
4.706685
4.286445
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for Improving the Poor Solution\n\nThe current solution relies on a **Randomized Local(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0.42024
4.874781
4.454541
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for Improving the Poor Solution\n\nYour current approach uses a **stochastic hill-clim(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0.42024
4.916804
4.496565
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Evaluation and Feedback\n\nThe poor solution attempts to solve the problem using a **stochastic(...TRUNCATED)
"Role: Feedback Generator\n\nObjective:\nYou are an expert computer scientist tasked with evaluating(...TRUNCATED)
"```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include <(...TRUNCATED)
"1$ *are* in the set.\n Let's re-list:\n $\\{V-4, V-3, V-2, V-1, V+1, V+4, V+5, V+6\\}$\n W(...TRUNCATED)
0.42024
81.236667
80.816427
"You are a competitive programmer. You will be given a problem statement, please implement a solutio(...TRUNCATED)
110
algorithmic
algorithmic/110
["```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <algorithm>\n#include (...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
[0.0,4.916804333333333,0.0,0.4202396666666666,81.23666666666666,92.13034833333333,4.874780666666667,(...TRUNCATED)
23.535691
"### Feedback for Improving the Poor Solution\n\nThe poor solution attempts a stochastic (hill-climb(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4