Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

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.

responses_create_params
dict
verifier_metadata
dict
hash_id
string
dataset
string
source
string
prompt
string
response
string
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "14 3 2012", "14 2 2012", "14 4 2012", "14 4 1177", "20 4 1177", "20 4 1433", "20 3 1433", "14 3 1433", "14 3 1186", "14 1 1186", "7 1 1186", "7 2 1186", "7 2 1946", "7 1 1946", "10 1 1946", ...
fb1a59fdea3fcabef1803aeed295b6cf
code_contests
codechef
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Computation of the ...
We are going to use the datetime module in Python to get the day of the week for a given date. Steps: 1. Read the input as three integers: day, month, year. 2. Convert the day name from the expected output (which is the English day name) to the string representation. 3. We can use the strftime conversion from the ...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "10\n", "3\n", "31\n", "40\n", "37\n", "18\n", "7\n", "28\n", "13\n", "26\n", "35\n", "11\n", "19\n", "27\n", "23\n", "15\n", "25\n", "22\n", "0\n", "6\n", "1...
4160fb539ffe57998454600f45a1adb0
code_contests
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` -----Input----- Th...
We are given an integer `a` in the range [0, 35]. We need to output a single integer. Looking at the examples: Input 3 -> Output 8 Input 10 -> Output 1024 Notice that 8 = 2^3 and 1024 = 2^10. Therefore, it seems the output is 2 raised to the power of the input. So, the problem is: for an integer `a`, c...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "7\r\n", "8\r\n", "9\r\n", "10\r\n", "321\r\n", "624\r\n", "666\r\n", "700\r\n", "776\r\n", "777\r\n" ], "outputs": [ "29", "92", "246", "582", "66715035255088", "7147161340917624"...
bff0acac262261c7df774e92d95733b3
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` One company of IT C...
We are counting the number of ways to choose groups of size 5, 6, or 7 from n candidates. Since the group size can be 5, 6, or 7, the total number of variants is the sum of combinations: C(n,5) + C(n,6) + C(n,7) We can use the math.comb function (available in Python 3.8+) to compute combinations. Steps: 1. Re...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "AS\r\n2H 4C TH JH AD\r\n", "2H\r\n3D 4C AC KD AS\r\n", "4D\r\nAS AC AD AH 5H\r\n", "3D\r\n8S 4S 2C AS 6H\r\n", "7H\r\nTC 4C KC AD 9S\r\n", "KH\r\n3C QD 9S KS 8D\r\n", "4H\r\nJH QC 5H 9H KD\r\n", "9H\r\nKC 6D KD 4C 2S\r\n", "AD\r\...
cae6663959aef8c1fbc6b49a540ba495
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Gennady owns a smal...
We are going to read the table card and the five hand cards. The key is to check if there is at least one card in the hand that has the same rank OR same suit as the table card. Steps: 1. Read the table card (first line) and split the hand cards (second line) into a list. 2. We note that the table card has: -...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "1\n5\n4 9 1 32 13", "1\n5\n7 9 1 32 13", "1\n5\n7 4 1 29 21", "1\n5\n7 7 2 29 21", "1\n5\n7 4 2 29 5", "1\n5\n11 7 0 29 24", "1\n5\n16 7 0 29 41", "1\n5\n16 7 -1 29 41", "1\n5\n16 7 -2 29 41", "1\n5\n16 10 -2 29 41", ...
e8013d867669854a7404e6bf8253bb31
code_contests
codechef
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Chef is very fond o...
We are going to solve the problem by the following steps: 1. We are given T test cases. 2. For each test case: a. Read the integer N. b. Read the list S of N integers. 3. We need to find the minimum absolute difference between any two distinct horses. Approach: Since we want the minimum absolute diff...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3\r\n1 1\r\n2 2\r\n3 3\r\n", "3\r\n1 10\r\n0 10\r\n10 10\r\n", "2\r\n36 67\r\n61 69\r\n", "3\r\n21 71\r\n10 88\r\n43 62\r\n", "3\r\n1 2\r\n2 3\r\n3 4\r\n", "10\r\n0 10\r\n0 20\r\n0 30\r\n0 40\r\n0 50\r\n0 60\r\n0 70\r\n0 80\r\n0 90\r\n0 100\r\n", ...
72f438b6f43f5c6cf16e71111a566255
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` George has recently...
We are counting the number of rooms that have enough free space for both George and Alex. Since both George and Alex need to move in, together they require 2 free spots. Therefore, for a room to be acceptable, the free space (q_i - p_i) must be at least 2. Steps: 1. Read the integer n. 2. For the next n lines, r...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "5\n1 2 3 4 5", "5\n1 2 3 0 5", "5\n1 2 3 0 2", "5\n1 2 4 0 2", "5\n1 4 4 0 2", "5\n1 4 4 1 2", "5\n1 4 4 2 2", "5\n1 6 4 2 2", "5\n1 8 4 2 2", "5\n1 8 3 2 2", "5\n1 8 3 2 1", "5\n2 8 3 2 1", "5\n2 8 3 2 0"...
4a4fbd1d0612f2a02932add717fa54c2
code_contests
codechef
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Kattapa, as you all...
We are going to: 1. Read the first integer N. 2. Read the next line which contains N space separated integers. 3. Count how many soldiers have an even number of weapons and how many have an odd number. 4. Check if the count of even-numbered soldiers is strictly greater than the count of odd-numbered soldiers. 5. ...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3 17 4\r\n", "1 2 1\r\n", "1 1 1\r\n", "1 5 6\r\n", "1 1000000000 1\r\n", "1000 0 1000\r\n", "859 453892 543\r\n", "1000 1000000000 1000\r\n", "1000 500500000 1000\r\n", "1000 500500001 1000\r\n", "1000 500499999 1000...
18dccb848d0dab854461a94927cfc775
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` A soldier wants to ...
We are given three integers: k (cost for the first banana), n (dollars the soldier has), and w (number of bananas he wants) The total cost for w bananas is: k * (1 + 2 + ... + w) = k * (w*(w+1))//2 The soldier has n dollars. If the total cost is less than or equal to n, he doesn't need to borrow (so output 0). Othe...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3\r\n3 5\r\n2 1\r\n4 2\r\n", "2\r\n6 1\r\n1 6\r\n", "3\r\n1 5\r\n3 3\r\n2 2\r\n", "6\r\n4 1\r\n4 2\r\n5 3\r\n5 1\r\n5 3\r\n4 1\r\n", "8\r\n2 4\r\n1 4\r\n1 5\r\n2 6\r\n2 5\r\n2 5\r\n2 4\r\n2 5\r\n", "8\r\n4 1\r\n2 6\r\n4 2\r\n2 5\r\n5 2\r\n3 5\r\n5...
945e712071cfb0012705ad82b6994058
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Mishka is a little ...
We are given the number of rounds n. For each round, we get two integers: mis and chris (Mishka and Chris) We need to count the wins for Mishka and for Chris. If Mishka's wins are greater than Chris's, output "Mishka" If Chris's wins are greater than Mishka's, output "Chris" If both have the same wins (and not bot...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3 6\nCLICK 1\nCLICK 2\nCLICK 3\nCLICK 2\nCLOSEALL\nCLICK 1", "5 6\nCLICK 1\nCLICK 2\nCLICK 3\nCLICK 2\nCLOSEALL\nCLICK 1", "5 6\nCLICK 1\nCLICK 1\nCLICK 3\nCLICK 2\nCLOSEALL\nCLICK 1", "5 6\nCLICK 1\nCLICK 2\nCLICK 2\nCLICK 2\nCLOSEALL\nCLICK 1", "5 6\n...
98e638881b56b2c5f825445b6e96229d
code_contests
codechef
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Little kids, Jack a...
We are going to simulate the process. We'll maintain an array (list) `open` of length N+1 (indexed 1 to N) to keep track of the state of each tweet. Steps: 1. Read the first line to get N and K. 2. Initialize an array `open` of zeros with length N+1 (so indexes 1 to N). 3. For each of the K clicks: - If th...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3 4\r\n4 1 3 5\r\n2 2 2 2\r\n5 4 5 1\r\n", "3 3\r\n1 2 3\r\n2 3 1\r\n3 1 2\r\n", "1 1\r\n1\r\n", "1 10\r\n74 35 82 39 1 84 29 41 70 12\r\n", "10 1\r\n44\r\n23\r\n65\r\n17\r\n48\r\n29\r\n49\r\n88\r\n91\r\n85\r\n", "10 10\r\n256 72 455 45 912 506 23...
052259b5d08fd25e00dca9c5d3d946a5
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Jack decides to inv...
We are given the dimensions n and m (number of streets and avenues) and a grid of costs. Emma first chooses a street. Then, for that chosen street, Jack (who wants to minimize) will choose the minimum cost in that street and then select the avenue. However, note that Emma wants to maximize the cost, so she will choos...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "8 5\r\n1 1 1 1 1 1 1 1\r\n", "10 3\r\n16 8 2 4 512 256 32 128 64 1\r\n", "5 1\r\n20 10 50 30 46\r\n", "6 6\r\n6 6 6 6 6 6\r\n", "1 1\r\n100\r\n", "1 1\r\n1\r\n", "10 5\r\n147 1917 5539 7159 5763 416 711 1412 6733 4402\r\n", "100 60\r\n...
33d94588c40d16a7b6d4174459521163
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` The marmots have pr...
Okay, let's see. I need to solve this problem. Hmm, the input is n and k, then a list of numbers. The output is some number, but what exactly? Let's look at the examples to figure out the pattern. First example: Input is 8 5 and all ones. Output is 5. Oh, so when k is 5 and all elements are 1, the answer is 5. Inter...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3 3 2\r\nYYY\r\nNNN\r\nYNY\r\n", "4 4 1\r\nNNNY\r\nNNYN\r\nNYNN\r\nYNNN\r\n", "3 5 2\r\nNYNNY\r\nYNNNN\r\nNNYYN\r\n", "1 10 1\r\nYYYNYNNYNN\r\n", "10 1 5\r\nY\r\nN\r\nN\r\nN\r\nY\r\nN\r\nN\r\nY\r\nN\r\nN\r\n", "10 10 1\r\nNNNNNNNNNN\r\nNNNNNNNNNN\...
54ec68dd05affcf59b214064a6cc1c67
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` A simple recommenda...
We are given the first line as three integers: F, I, T Then, F lines of string with I characters each. We want to count the number of items that are liked by at least T friends. Steps: 1. Read the first line to get F, I, T. 2. For the next F lines, read each as a string. This string represents the opinions of o...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3 7\r\n4 5 14\r\n", "6 1\r\n1 1 1 1 1 1\r\n", "6 5\r\n7 6 8 9 10 5\r\n", "10 420\r\n214 614 297 675 82 740 174 23 255 15\r\n", "10 561\r\n657 23 1096 487 785 66 481 554 1000 821\r\n", "100 342\r\n478 143 359 336 162 333 385 515 117 496 310 538 469...
d05f4bddb7745c35a6208dc9ad539c32
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Vanya and his frien...
We are given two integers: n (number of friends) and h (fence height) and a list of n integers: the heights of the friends. For each friend: - if their height <= h, they can walk without bending, so their width is 1. - if their height > h, they must bend, so their width is 2. Therefore, we can compute the t...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "0 0\r\n4 5\r\n", "3 4\r\n6 1\r\n", "0 0\r\n4 6\r\n", "1 1\r\n-3 -5\r\n", "-1 -1\r\n-10 100\r\n", "1 -1\r\n100 -100\r\n", "-1000000000 -1000000000\r\n1000000000 1000000000\r\n", "-1000000000 -1000000000\r\n0 999999999\r\n", "0 0\r...
89fcbb92b0ea86febfd4299f2b00cb78
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Professor GukiZ mak...
We are given two lines of input, each with two integers. The robot can move in 8 directions: so it can independently change x and y by +/- 1 in each step. The minimal steps to go from (x1, y1) to (x2, y2) is the maximum of the absolute differences of the x and y coordinates? However, note the examples: Example 1...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "2 2\r\nC M\r\nY Y\r\n", "3 2\r\nW W\r\nW W\r\nB B\r\n", "1 1\r\nW\r\n", "2 3\r\nW W W\r\nB G Y\r\n", "1 1\r\nW\r\n", "5 5\r\nW G B Y M\r\nG B Y M C\r\nB Y M C W\r\nY M C W G\r\nM C W G B\r\n", "1 6\r\nC M Y W G B\r\n", "1 3\r\nW G B\r\...
cc864cbdf5d3284f9d2de0ca6d07d231
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Small, but very bra...
We are given the dimensions n and m, then n lines of m characters each. The photo is black-and-white (output "#Black&White") if and only if every pixel is one of: 'W', 'G', or 'B'. If there is at least one pixel that is 'C', 'M', or 'Y', then it is colored (output "#Color"). We can iterate over each row and each ch...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "3\r\n1 2 3\r\n", "4\r\n1 5 2 5\r\n", "1\r\n1\r\n", "1\r\n548\r\n", "2\r\n1 1\r\n", "3\r\n3 2 3\r\n", "2\r\n1 1000\r\n", "3\r\n1 2 1\r\n" ], "outputs": [ "0\r\n", "2\r\n", "0\r\n", "0\r\n", "0\r\n",...
5fdb6df610dbb33976b288256d4da237
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` You are given an ar...
We are counting the number of local extrema in an array. For an element at index i (0-indexed) to be a local extremum: - If i is 0 or i is n-1 (the first or last element), they are not considered (since they have only one neighbor). - Otherwise, for element a[i]: It is a local minimum if a[i] < a[i-1] a...
{ "input": [ { "role": "user", "content": "You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.\n\nPlease use python programming language only.\n\nYou must use ```python for just the final solution code block with the following format:\n``...
{ "unit_tests": { "inputs": [ "1 2 3 4\r\n123214\r\n", "1 5 3 2\r\n11221\r\n", "5 5 5 1\r\n3422\r\n", "4 3 2 1\r\n2\r\n", "5651 6882 6954 4733\r\n2442313421\r\n", "0 0 0 0\r\n4132\r\n", "3163 5778 83 7640\r\n11141442444\r\n", "1809 1302 7164 6122\r\n3144121413113111...
689579618f3458998ec0acc40f739d11
open-r1/codeforces
codeforces
<|im_start|>user You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below. Please use python programming language only. You must use ```python for just the final solution code block with the following format: ```python # Your code here ``` Quite recently, a v...
We are given the first line with four integers: a1, a2, a3, a4 for the calories for strips 1,2,3,4. The second line is a string s of characters '1','2','3','4' representing the seconds when a square appears. We need to compute the total calories: for each character c in s, add the calorie corresponding to c. We c...
End of preview.

No dataset card yet

Downloads last month
8