id stringlengths 32 32 ⌀ | instruction_seed stringlengths 415 7.91k | output stringlengths 7.28k 69.5k ⌀ | source stringclasses 6
values | license stringclasses 4
values | dataset stringclasses 4
values | split stringclasses 3
values | difficulty int64 6 10 | solution stringlengths 56 7.28k ⌀ | index stringclasses 13
values | _source stringclasses 2
values | difficulty_reasoning stringlengths 301 797 | __original_row_idx int64 574 38.9k | ms_id int64 3 3.95k | reasoning sequencelengths 16 16 | deepseek_solution sequencelengths 16 16 | final_reasoning_trace sequencelengths 16 16 | correct sequencelengths 16 16 | classifier_reasoning stringlengths 65 506 | _majority_responses sequencelengths 2 16 | verified_final_reasoning_trace stringlengths 8.26k 113k | conversations listlengths 2 2 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
null | "Balanced ternary is a modified version of ternary (base 3), using the three digits 1,0 and -1 (writ(...TRUNCATED) | null | null | null | null | null | 9 | null | null | stackexchange_codegolf | "The problem involves generating a sequence based on a non-standard numeral system (balanced ternary(...TRUNCATED) | 26,039 | 2,396 | ["Okay, let's see. I need to find all positive integers n such that reversing the balanced ternary r(...TRUNCATED) | ["To solve this problem, we need to find all positive integers \\( n \\) such that reversing the bal(...TRUNCATED) | ["<think>\nOkay, let's see. I need to find all positive integers n such that reversing the balanced (...TRUNCATED) | [
true,
true,
true,
false,
true,
true,
true,
true,
false,
true,
false,
true,
false,
false,
false,
false
] | "The provided response consists of multiple paragraphs, but they are not classified as \"too long\" (...TRUNCATED) | ["<think>\nOkay, let's see. I need to find all positive integers n such that reversing the balanced (...TRUNCATED) | "<think>\nOkay, I need to solve this problem where I have to find all positive integers n such that (...TRUNCATED) | [{"from":"human","value":"Balanced ternary is a modified version of ternary (base 3), using the thre(...TRUNCATED) |
null | "Implement a CipherSaber encryption program, as described below. Guidelines:\n\nThe smallest entry, (...TRUNCATED) | null | null | null | null | null | 7 | null | null | stackexchange_codegolf | "The problem requires implementing a cryptographic algorithm (CipherSaber, a variant of RC4), which (...TRUNCATED) | 24,671 | 3,906 | ["Okay, I need to implement a CipherSaber encryption program according to the specifications provide(...TRUNCATED) | ["To solve this problem, we need to implement a CipherSaber encryption program. CipherSaber is a var(...TRUNCATED) | ["<think>\nOkay, I need to implement a CipherSaber encryption program according to the specification(...TRUNCATED) | [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
false,
true,
false,
true,
true,
true
] | "The provided answer consists of short paragraphs, none of which exceed 750 words. Therefore, it mee(...TRUNCATED) | ["<think>\nOkay, I need to implement a CipherSaber encryption program according to the specification(...TRUNCATED) | "<think>\nOkay, I need to implement a CipherSaber encryption program according to the specifications(...TRUNCATED) | [{"from":"human","value":"Implement a CipherSaber encryption program, as described below. Guidelines(...TRUNCATED) |
fe2760f3b383a43b07ba095edd898e92 | "You generate real numbers s1, s2, ..., sn as follows: \n\n * s0 = 0; \n * si = si - 1 + ti, where(...TRUNCATED) | "<think>\nOkay, let's see. So the problem is about calculating the probability that a certain sequen(...TRUNCATED) | codeforces | cc-by-4.0 | code_contests | train | 8 | "import sys\nfrom fractions import Fraction\nMOD = 998244353\n\ndef modinv(a):\n return pow(a, MO(...TRUNCATED) | null | nvidia/OpenCodeReasoning | "This problem requires a good understanding of probability theory and how to model the sum of random(...TRUNCATED) | 24,425 | 2,920 | ["Okay, let's try to tackle this problem. Hmm, so the problem is about calculating the probability t(...TRUNCATED) | ["To solve this problem, we need to compute the probability that a sequence of sums of uniformly dis(...TRUNCATED) | ["<think>\nOkay, let's try to tackle this problem. Hmm, so the problem is about calculating the prob(...TRUNCATED) | [
true,
true,
false,
true,
true,
true,
true,
false,
false,
true,
false,
true,
true,
true,
true,
true
] | "The answer is presented in a structured format with multiple paragraphs of varying lengths. However(...TRUNCATED) | ["<think>\nOkay, let's try to tackle this problem. Hmm, so the problem is about calculating the prob(...TRUNCATED) | "<think>\nOkay, let's see. So the problem is about calculating the probability that for all i from 1(...TRUNCATED) | [{"from":"human","value":"You generate real numbers s1, s2, ..., sn as follows: \n\n * s0 = 0; \n (...TRUNCATED) |
1b2c544513d98c60f9ade47e5720084f | "In the Land of Fire there are n villages and n-1 bidirectional road, and there is a path between an(...TRUNCATED) | "<think>\nOkay, let's see. The problem is about finding the maximum length of a simple path where th(...TRUNCATED) | codeforces | cc-by-4.0 | code_contests | train | 8 | "import sys\nfrom collections import deque\n\ndef main():\n sys.setrecursionlimit(1 << 25)\n n(...TRUNCATED) | null | nvidia/OpenCodeReasoning | "The problem requires understanding of tree structures, dynamic updates of paths based on road types(...TRUNCATED) | 3,580 | 480 | ["Okay, let's see. So the problem is about a tree with n villages connected by n-1 roads, each being(...TRUNCATED) | ["To solve this problem, we need to determine the longest path in a tree where the number of stone r(...TRUNCATED) | ["<think>\nOkay, let's see. So the problem is about a tree with n villages connected by n-1 roads, e(...TRUNCATED) | [
false,
true,
false,
false,
true,
true,
false,
false,
true,
true,
false,
true,
false,
true,
true,
true
] | "The provided answer contains multiple long paragraphs that exceed 750 words. Each thought and expla(...TRUNCATED) | ["<think>\nOkay, let's try to solve this problem. Hmm. So the problem is about finding the longest s(...TRUNCATED) | "<think>\nOkay, let's try to solve this problem. Hmm. So the problem is about finding the longest si(...TRUNCATED) | [{"from":"human","value":"In the Land of Fire there are n villages and n-1 bidirectional road, and t(...TRUNCATED) |
abe4fba6655ddb904cc2aa8326f74cc4 | "We'll call a set of positive integers a beautiful if the following condition fulfills: for any prim(...TRUNCATED) | "<think>\nOkay, let's see. I need to find a beautiful set of k elements where each element is at mos(...TRUNCATED) | codeforces | cc-by-4.0 | code_contests | train | 8 | "import heapq\n\nk = int(input())\nmax_val = 2 * k * k\n\n# Generate m_elements (k-2) of 2^a * 3^b ((...TRUNCATED) | null | nvidia/OpenCodeReasoning | "The problem requires understanding of both prime numbers and properties of sets concerning divisibi(...TRUNCATED) | 21,932 | 1,133 | ["Okay, so I need to find a beautiful set of size k where each element is at most 2k². The definiti(...TRUNCATED) | ["To solve this problem, we need to construct a beautiful set of k positive integers where each elem(...TRUNCATED) | ["<think>\nOkay, so I need to find a beautiful set of size k where each element is at most 2k². The(...TRUNCATED) | [
true,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
true,
false,
false,
false,
false
] | "The provided answer does not contain any long paragraphs. Each segment of text is separated into ma(...TRUNCATED) | ["<think>\nOkay, so I need to find a beautiful set of size k where each element is at most 2k². The(...TRUNCATED) | "<think>\nOkay, so I need to find a beautiful set of size k where each element is at most 2k². The (...TRUNCATED) | [{"from":"human","value":"We'll call a set of positive integers a beautiful if the following conditi(...TRUNCATED) |
13fb6b2c8eff99b3fb29ab4c2cecf8eb | "Connected undirected weighted graph without self-loops and multiple edges is given. Graph contains (...TRUNCATED) | "<think>\nOkay, so I've got this programming problem to solve. Let me read through it again to make (...TRUNCATED) | codeforces | cc-by-4.0 | code_contests | train | 8 | "import sys\nfrom collections import deque\n\ndef main():\n sys.setrecursionlimit(1 << 25)\n n(...TRUNCATED) | null | nvidia/OpenCodeReasoning | "The problem involves calculating the minimal weight of spanning trees that include each edge in a c(...TRUNCATED) | 12,170 | 2,858 | ["Okay, let's try to solve this programming problem. Hmm. The problem is about finding for each edge(...TRUNCATED) | ["To solve this problem, we need to determine the minimal possible weight of a spanning tree that in(...TRUNCATED) | ["<think>\nOkay, let's try to solve this programming problem. Hmm. The problem is about finding for (...TRUNCATED) | [
true,
false,
true,
true,
false,
false,
true,
true,
false,
true,
true,
true,
true,
true,
false,
false
] | "The provided answer has no long paragraphs, as all the explanations and code are adequately broken (...TRUNCATED) | ["<think>\nOkay, let's try to solve this programming problem. Hmm. The problem is about finding for (...TRUNCATED) | "<think>\nOkay, let's try to solve this programming problem. Hmm. The problem is about finding for e(...TRUNCATED) | [{"from":"human","value":"Connected undirected weighted graph without self-loops and multiple edges (...TRUNCATED) |
null | "Input\nA binary string \\$s\\$ of length \\$n\\$ and a positive integer \\$k \\leq n\\$.\nOutput\nT(...TRUNCATED) | null | null | null | null | null | 8 | null | null | stackexchange_codegolf | "The problem revolves around computing the number of binary strings with a specified Levenshtein dis(...TRUNCATED) | 17,647 | 2,976 | ["Okay, so I need to solve this problem where given a binary string s of length n and an integer k, (...TRUNCATED) | ["To solve this problem, we need to determine the number of binary strings that have a Levenshtein d(...TRUNCATED) | ["<think>\nOkay, so I need to solve this problem where given a binary string s of length n and an in(...TRUNCATED) | [
true,
false,
false,
true,
true,
true,
true,
true,
true,
false,
false,
false,
false,
false,
false,
false
] | "The provided answer is structured in a way that avoids long paragraphs; it consists of many shorter(...TRUNCATED) | ["<think>\nOkay, so I need to solve this problem where given a binary string s of length n and an in(...TRUNCATED) | "<think>\nOkay, I need to find the number of binary strings that are exactly Levenshtein distance k (...TRUNCATED) | [{"from":"human","value":"Input\nA binary string \\$s\\$ of length \\$n\\$ and a positive integer \\(...TRUNCATED) |
2377efcb49c06afbcc8bd4e4453e7a03 | "Adilbek has to water his garden. He is going to do it with the help of a complex watering system: h(...TRUNCATED) | "<think>\nOkay, let's try to figure out how to solve this problem. Hmm. The problem seems a bit comp(...TRUNCATED) | codeforces | cc-by-4.0 | code_contests | train | 8 | "import heapq\n\ndef main():\n import sys\n input = sys.stdin.read\n data = input().split()(...TRUNCATED) | null | nvidia/OpenCodeReasoning | "The problem involves optimizing the selection of friends to bring water for a watering system while(...TRUNCATED) | 26,569 | 3,019 | ["Okay, I need to solve this programming problem. Let's read the problem statement carefully.\n\nSo,(...TRUNCATED) | ["To solve this problem, we need to ensure that Adilbek's garden watering system operates for the re(...TRUNCATED) | ["<think>\nOkay, I need to solve this programming problem. Let's read the problem statement carefull(...TRUNCATED) | [
true,
true,
true,
false,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
false
] | "The answer is structured into several short paragraphs, none of which exceed 750 words. Each subsec(...TRUNCATED) | ["<think>\nOkay, I need to solve this programming problem. Let's read the problem statement carefull(...TRUNCATED) | "<think>\nOkay, let's see. We need to solve this problem where Adilbek has to water his garden for m(...TRUNCATED) | [{"from":"human","value":"Adilbek has to water his garden. He is going to do it with the help of a c(...TRUNCATED) |
ae1eb90b5fa548769047f453d1e4c676 | "During his interview, Shil came across a very difficult problem. The problem is as follows: \n\nA (...TRUNCATED) | "<think>\nOkay, let's try to understand this problem. We need to find the number of beautiful matric(...TRUNCATED) | hackerearth | cc-by-4.0 | code_contests | train | 8 | "MOD = 10**9 + 7\n\n# Precompute factorials up to 1e6 to handle N*M up to 1e6\nmax_fact = 1000 * 100(...TRUNCATED) | null | nvidia/OpenCodeReasoning | "The problem requires deep mathematical insights and a complex understanding of combinatorial matrix(...TRUNCATED) | 32,509 | 2,546 | ["Okay, let's try to understand this problem. We need to find the number of beautiful matrices as de(...TRUNCATED) | ["To solve this problem, we need to determine the number of beautiful matrices of size N x M. A matr(...TRUNCATED) | ["<think>\nOkay, let's try to understand this problem. We need to find the number of beautiful matri(...TRUNCATED) | [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true
] | "The provided answer is structured into clearly defined sections with headings and bullet points, en(...TRUNCATED) | ["<think>\nOkay, let's try to understand this problem. We need to find the number of beautiful matri(...TRUNCATED) | "<think>\nOkay, let's tackle this problem. Hmm. The task is to find the number of beautiful matrices(...TRUNCATED) | [{"from":"human","value":"During his interview, Shil came across a very difficult problem. The probl(...TRUNCATED) |
null | "In this challenge, you will play the iterated Prisoner's Dilemma, but with a twist: There's also an(...TRUNCATED) | null | null | null | null | null | 8 | null | null | stackexchange_codegolf | "The problem involves designing both a prisoner and a flipper in an iterated Prisoner's Dilemma scen(...TRUNCATED) | 16,384 | 2,314 | ["Okay, I need to come up with a good strategy for both the prisoner and the flipper in this adversa(...TRUNCATED) | ["To solve this problem, we need to address two distinct roles: the prisoner and the flipper in an a(...TRUNCATED) | ["<think>\nOkay, I need to come up with a good strategy for both the prisoner and the flipper in thi(...TRUNCATED) | [
true,
true,
true,
false,
true,
false,
true,
false,
true,
false,
true,
false,
false,
true,
true,
false
] | "The provided answer contains no long paragraphs; each paragraph is shorter than 750 words and is we(...TRUNCATED) | ["<think>\nOkay, I need to come up with a good strategy for both the prisoner and the flipper in thi(...TRUNCATED) | "<think>\nOkay, I need to come up with a good strategy for both the prisoner and the flipper in this(...TRUNCATED) | [{"from":"human","value":"In this challenge, you will play the iterated Prisoner's Dilemma, but with(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 10