The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Previous task error: I/O error: I/O error: Permission denied (os error 13)
Error code: UnexpectedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
task_id string | source string | split string | language string | prompt_template_id string | source_code string | visible_tests list | public_checker dict | compile dict | run dict | constraints dict | metadata dict | messages list | prompt string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dummy_pie_cpp_0001_sum_even | dummy_pie_cpp | oracle_seed | cpp20 | system_contract_user_problem | #include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int n;cin>>n;vector<long long>a(n);for(int i=0;i<n;i++)cin>>a[i];long long ans=0;for(int i=0;i<n;... | [
{
"name": "sample_1",
"stdin": "5\n1 2 3 4 6\n",
"stdout": "12\n"
}
] | {
"type": "exact_stdout",
"strip_trailing_whitespace": true
} | {
"command": "g++ -std=c++20 -O2 -pipe main.cpp -o main",
"timeout_sec": 20
} | {
"timeout_sec": 2,
"memory_mb": 512
} | {
"assistant_format": "one_reasoning_block_then_one_cpp_fence",
"must_preserve_io": true,
"must_compile": true,
"must_pass_visible_tests": true,
"target": "optimize runtime without changing outputs"
} | {
"problem_id": "dummy_sum_even",
"baseline_complexity": "O(n^2) due to redundant nested loop",
"expected_better_complexity": "O(n)",
"hidden_tests_policy": "not_in_seed",
"oracle_acceptance": "full mark only"
} | [
{
"role": "system",
"content": "You are an expert C++20 performance optimizer. Preserve stdin/stdout behavior exactly. Prefer simple, readable algorithmic improvements over micro-optimizations. Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an... | SYSTEM: You are an expert C++20 performance optimizer. Preserve stdin/stdout behavior exactly. Prefer simple, readable algorithmic improvements over micro-optimizations. Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not inc... |
dummy_pie_cpp_0002_prefix_queries | dummy_pie_cpp | oracle_seed | cpp20 | user_only_full_instruction | #include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int n,q;cin>>n>>q;vector<long long>a(n+1);for(int i=1;i<=n;i++)cin>>a[i];while(q--){int l,r;cin>>... | [
{
"name": "sample_1",
"stdin": "5 3\n2 4 6 8 10\n1 3\n2 5\n4 4\n",
"stdout": "12\n28\n8\n"
}
] | {
"type": "exact_stdout",
"strip_trailing_whitespace": true
} | {
"command": "g++ -std=c++20 -O2 -pipe main.cpp -o main",
"timeout_sec": 20
} | {
"timeout_sec": 2,
"memory_mb": 512
} | {
"assistant_format": "one_reasoning_block_then_one_cpp_fence",
"must_preserve_io": true,
"must_compile": true,
"must_pass_visible_tests": true,
"target": "optimize runtime without changing outputs"
} | {
"problem_id": "dummy_prefix_queries",
"baseline_complexity": "O(nq) range sums",
"expected_better_complexity": "O(n+q) with prefix sums",
"hidden_tests_policy": "not_in_seed",
"oracle_acceptance": "full mark only"
} | [
{
"role": "user",
"content": "Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not include any other text.\n\nTask: optimize this correct but intentionally inefficient C++20 program. Keep the same input and output ... | USER: Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not include any other text.
Task: optimize this correct but intentionally inefficient C++20 program. Keep the same input and output behavior.
Original program:
```cpp
#i... |
dummy_pie_cpp_0003_count_pairs | dummy_pie_cpp | oracle_seed | cpp20 | system_role_user_brief | #include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int n,k;cin>>n>>k;vector<int>a(n);for(int&i:a)cin>>i;long long ans=0;for(int i=0;i<n;i++){for(int... | [
{
"name": "sample_1",
"stdin": "6 7\n1 6 2 5 3 4\n",
"stdout": "3\n"
}
] | {
"type": "exact_stdout",
"strip_trailing_whitespace": true
} | {
"command": "g++ -std=c++20 -O2 -pipe main.cpp -o main",
"timeout_sec": 20
} | {
"timeout_sec": 2,
"memory_mb": 512
} | {
"assistant_format": "one_reasoning_block_then_one_cpp_fence",
"must_preserve_io": true,
"must_compile": true,
"must_pass_visible_tests": true,
"target": "optimize runtime without changing outputs"
} | {
"problem_id": "dummy_count_pairs",
"baseline_complexity": "O(n^2) pair enumeration",
"expected_better_complexity": "O(n) average with hash map or O(n log n) with sorting",
"hidden_tests_policy": "not_in_seed",
"oracle_acceptance": "full mark only"
} | [
{
"role": "system",
"content": "You are an expert C++20 performance optimizer. Preserve stdin/stdout behavior exactly. Prefer simple, readable algorithmic improvements over micro-optimizations. Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an... | SYSTEM: You are an expert C++20 performance optimizer. Preserve stdin/stdout behavior exactly. Prefer simple, readable algorithmic improvements over micro-optimizations. Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not inc... |
dummy_pie_cpp_0004_first_repeated | dummy_pie_cpp | oracle_seed | cpp20 | system_contract_structured_user_spec | #include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int n;cin>>n;vector<string>s(n);for(auto&x:s)cin>>x;string ans="NONE";for(int i=0;i<n;i++){bool s... | [
{
"name": "sample_1",
"stdin": "6\nred blue green blue red yellow\n",
"stdout": "blue\n"
}
] | {
"type": "exact_stdout",
"strip_trailing_whitespace": true
} | {
"command": "g++ -std=c++20 -O2 -pipe main.cpp -o main",
"timeout_sec": 20
} | {
"timeout_sec": 2,
"memory_mb": 512
} | {
"assistant_format": "one_reasoning_block_then_one_cpp_fence",
"must_preserve_io": true,
"must_compile": true,
"must_pass_visible_tests": true,
"target": "optimize runtime without changing outputs"
} | {
"problem_id": "dummy_first_repeated",
"baseline_complexity": "O(n^2) previous-item scan",
"expected_better_complexity": "O(n) average with unordered_set",
"hidden_tests_policy": "not_in_seed",
"oracle_acceptance": "full mark only"
} | [
{
"role": "system",
"content": "Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not include any other text."
},
{
"role": "user",
"content": "optimization_request:\n language: C++20\n objective: redu... | SYSTEM: Return exactly one <reasoning>...</reasoning> block followed by exactly one fenced ```cpp code block containing an optimized C++20 program. Do not include any other text.
USER: optimization_request:
language: C++20
objective: reduce runtime while preserving behavior
checker: exact stdout after trimming t... |
dummy_pie_cpp_0005_matrix_row_max | dummy_pie_cpp | oracle_seed | cpp20 | user_natural_language_with_inline_contract | #include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int n,m;cin>>n>>m;vector<vector<int>>a(n,vector<int>(m));for(int i=0;i<n;i++)for(int j=0;j<m;j++)... | [
{
"name": "sample_1",
"stdin": "3 4\n1 9 2 3\n4 5 6 7\n-3 -8 -1 -2\n",
"stdout": "9 7 -1\n"
}
] | {
"type": "exact_stdout",
"strip_trailing_whitespace": true
} | {
"command": "g++ -std=c++20 -O2 -pipe main.cpp -o main",
"timeout_sec": 20
} | {
"timeout_sec": 2,
"memory_mb": 512
} | {
"assistant_format": "one_reasoning_block_then_one_cpp_fence",
"must_preserve_io": true,
"must_compile": true,
"must_pass_visible_tests": true,
"target": "optimize runtime without changing outputs"
} | {
"problem_id": "dummy_matrix_row_max",
"baseline_complexity": "O(nm^2) redundant row maximum scan",
"expected_better_complexity": "O(nm)",
"hidden_tests_policy": "not_in_seed",
"oracle_acceptance": "full mark only"
} | [
{
"role": "user",
"content": "Can you make this C++ program faster without changing what it reads or prints? Please keep it C++20.\n\nProgram:\n```cpp\n#include <iostream>\n#include <vector>\n#include <string>\n#include <unordered_set>\n#include <unordered_map>\n#include <climits>\n#include <algorithm>\nusi... | USER: Can you make this C++ program faster without changing what it reads or prints? Please keep it C++20.
Program:
```cpp
#include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <climits>
#include <algorithm>
using namespace std;
int main(){ios::sync_with_std... |