Dataset Viewer
Auto-converted to Parquet Duplicate
context
listlengths
1
1
gen_kwargs
dict
repeat_idx
int64
0
0
request_idx
int64
0
12
task_name
stringclasses
1 value
metadata
dict
model_outputs
stringlengths
449
39.3k
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are three cards with letters $\\texttt{a}$, $\\texttt{b}$, $\\texttt{c}$ placed in a row in some order. You can ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
0
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
The same applies to the fifth test case. In the sixth test case, we can swap $\texttt{c}$ and $\texttt{b}$: $\texttt{cba} \to \texttt{abc}$. ``` import re import sys def solve(): for _ in range(int(input())): s = input() if sorted(s) == 'abc': print('YES') else: pr...
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Slavic is preparing a present for a friend's birthday. He has an array $a$ of $n$ digits and the present will be the p...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
1
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
1000000000 from collections import Counter def solve(): t = int(input()) for _ in range(t): n = int(input()) a = list(map(int, input().split())) counter = Counter(a) max_product = 1 for digit, count in counter.items(): if count > 0: max_produ...
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a strip of paper $s$ that is $n$ cells long. Each cell is either black or white. In an operation you can...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
2
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
In the fourth test case you can perform the following operations: $$\texttt{BBBBB}$$ In the fifth test case you can perform the following operations: $$\texttt{BW}\color{red}{\texttt{BWBWBB}}\texttt{B} \to \texttt{WWWWWWW}$$ In the sixth test case you can perform the following operations: $$\texttt{W}\color{red}{\t...
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string $s$ of length $n$, consisting of lowercase Latin letters, and an integer $k$.\n\nYou need to ch...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
3
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
However, it is not possible to remove more characters, because the remaining string will not be a palindrome. In the tenth test case, one occurrence of the character "a" can be removed, resulting in the string "zwaaf", which can be rearranged to the string "wazaaf". In the eleventh test case, one occurrence of the c...
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given an array of integers $a_1, a_2, \\ldots, a_n$ and a number $k$ ($2 \\leq k \\leq 5$). In one operation, ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
4
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
It is not divisible by $5$, but we can perform one more operation by choosing $i = 3$ and then $a = [1, 6, 11]$. The product of the numbers in the array is $66$, which is divisible by $5$. Therefore, the minimum number of operations needed is $3$. Python code: ``` def solve(): t = int(input()) for _ in range(t...
[{"content":"Generate an executable Python function generated from the given prompt. The function sh(...TRUNCATED)
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
5
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
"Final Output:\nFirst\nSecond\nFirst\nFirst\nSecond\nFirst\nFinal Output:Final Output:\n\n```Python\(...TRUNCATED)
[{"content":"Generate an executable Python function generated from the given prompt. The function sh(...TRUNCATED)
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
6
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
" In the fourth case, we should pick 50 trucks, so the first truck will have the first 10 boxes, the(...TRUNCATED)
[{"content":"Generate an executable Python function generated from the given prompt. The function sh(...TRUNCATED)
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
7
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
"Sample Output 2:\n15\n17\n8\n4\n-1000\n101\n10\nSample Output 3:\n15\n17\n8\n4\n-1000\n101\n10\n\nS(...TRUNCATED)
[{"content":"Generate an executable Python function generated from the given prompt. The function sh(...TRUNCATED)
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
8
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
"Sample Output 2:\nExplanation\nFor the first test case, we have $n = 4$ and $a = [3, 1, 2, 2]$. We (...TRUNCATED)
[{"content":"Generate an executable Python function generated from the given prompt. Return the func(...TRUNCATED)
{ "do_sample": false, "max_new_tokens": 32768, "seed": 0, "temperature": 0.7 }
0
9
LiveCodeBench
{ "expected_answer": "", "problem_id": "", "reference_solution": "" }
" \nThe age is always represented in the range of 00 to 99.\n\nHere is a Python function that can be(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8