chosen listlengths 2 2 | rejected listlengths 2 2 |
|---|---|
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nAs a teacher, Riko Hakozaki often needs to help her students with problems from va... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nAs a teacher, Riko Hakozaki often needs to help her students with problems from va... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a sequence of N positive integers A = (A_1, A_2, \\dots ,A_N), where... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a sequence of N positive integers A = (A_1, A_2, \\dots ,A_N), where... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere are N chits, out of which, A chits have 1 written on them and B (A+B = N) ch... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere are N chits, out of which, A chits have 1 written on them and B (A+B = N) ch... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nSardar Khan has finally decided to attack Ramadhir - he will bomb one of Ramadhir'... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nSardar Khan has finally decided to attack Ramadhir - he will bomb one of Ramadhir'... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a string $s[1 \\dots n]$ consisting of lowercase Latin letters. It i... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a string $s[1 \\dots n]$ consisting of lowercase Latin letters. It i... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given two strings word1 and word2.\nA string x is called valid if x can be... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given two strings word1 and word2.\nA string x is called valid if x can be... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given an m x n binary matrix grid.\nA row or column is considered palindro... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given an m x n binary matrix grid.\nA row or column is considered palindro... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nRead problems statements in Mandarin Chinese, Russian and Vietnamese as well. \n\n... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nRead problems statements in Mandarin Chinese, Russian and Vietnamese as well. \n\n... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nAlice and Bob are playing a game on a string.\nYou are given a string s, Alice and... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nAlice and Bob are playing a game on a string.\nYou are given a string s, Alice and... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nNothing is eternal in the world, Kostya understood it on the 7-th of January when ... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nNothing is eternal in the world, Kostya understood it on the 7-th of January when ... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nA souvenir shop at AtCoder Land sells N boxes.\nThe boxes are numbered 1 to N, and... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nA souvenir shop at AtCoder Land sells N boxes.\nThe boxes are numbered 1 to N, and... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a horizontally written text. Convert it to vertical writing, filling... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a horizontally written text. Convert it to vertical writing, filling... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nPetya has a string of length n consisting of small and large English letters and d... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nPetya has a string of length n consisting of small and large English letters and d... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nRead problems statements in Mandarin Chinese, Russian and Vietnamese as well. \n\n... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nRead problems statements in Mandarin Chinese, Russian and Vietnamese as well. \n\n... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe legend of the foundation of Vectorland talks of two integers $x$ and $y$. Cent... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe legend of the foundation of Vectorland talks of two integers $x$ and $y$. Cent... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere are N people numbered from 1 to N visiting a conveyor belt sushi restaurant.... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere are N people numbered from 1 to N visiting a conveyor belt sushi restaurant.... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\n\\documentclass{article}\n\\usepackage{graphicx} % Required for inserting images\n... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\n\\documentclass{article}\n\\usepackage{graphicx} % Required for inserting images\n... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nSardar Khan has finally decided to attack Ramadhir - he will bomb one of Ramadhir'... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nSardar Khan has finally decided to attack Ramadhir - he will bomb one of Ramadhir'... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere is a grid with H rows and W columns.\r\nLet (i,j) denote the cell at the i-t... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThere is a grid with H rows and W columns.\r\nLet (i,j) denote the cell at the i-t... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nConsider a rooted tree. A rooted tree has one special vertex called the root. All ... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nConsider a rooted tree. A rooted tree has one special vertex called the root. All ... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a tree (a connected undirected graph without cycles) of $n$ vertices... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a tree (a connected undirected graph without cycles) of $n$ vertices... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a sequence of N positive integers A = (A_1, A_2, \\dots ,A_N), where... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given a sequence of N positive integers A = (A_1, A_2, \\dots ,A_N), where... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given an array $A$ consisting of $N$ Integers which are initially all $0$.... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given an array $A$ consisting of $N$ Integers which are initially all $0$.... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nDZY loves chemistry, and he enjoys mixing chemicals.\n\nDZY has n chemicals, and m... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nDZY loves chemistry, and he enjoys mixing chemicals.\n\nDZY has n chemicals, and m... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nGiven a positive integer N, find a possible arrangement of the integers from 0 to ... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nGiven a positive integer N, find a possible arrangement of the integers from 0 to ... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe AtCoder company office can be represented as a grid of H rows and W columns. L... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe AtCoder company office can be represented as a grid of H rows and W columns. L... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe black king is standing on a chess field consisting of 10^9 rows and 10^9 colum... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nThe black king is standing on a chess field consisting of 10^9 rows and 10^9 colum... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nPasha has a wooden stick of some positive integer length n. He wants to perform ex... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nPasha has a wooden stick of some positive integer length n. He wants to perform ex... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nOkabe and Super Hacker Daru are stacking and removing boxes. There are n boxes num... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nOkabe and Super Hacker Daru are stacking and removing boxes. There are n boxes num... |
[
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given 2 arrays $a$ and $b$, both of size $n$. You can swap two elements in... | [
{
"content": "You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\nQuestion:\nYou are given 2 arrays $a$ and $b$, both of size $n$. You can swap two elements in... |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5