conversations listlengths 2 2 | thinking stringclasses 1
value | status stringclasses 1
value |
|---|---|---|
[
{
"role": "user",
"content": "Harsh, like usual, started studying 6 months before for his end semester examinations. He was going to complete his 8th revision of the whole syllabus, when suddenly Pranav showed up in his room with the last year's question paper for their algorithms course. This paper contain... | off | success |
[
{
"role": "user",
"content": "You are given an array A of length N weights of masses A_1, A_2...A_N. No two weights have the same mass. You can put every weight on one side of the balance (left or right). You don't have to put weights in order A_1,...,A_N. There is also a string S consisting of characters \... | off | success |
[
{
"role": "user",
"content": "Given a string $$$x$$$ of length $$$n$$$ and a string $$$s$$$ of length $$$m$$$ ($$$n \\cdot m \\le 25$$$), consisting of lowercase Latin letters, you can apply any number of operations to the string $$$x$$$.\n\nIn one operation, you append the current value of $$$x$$$ to the e... | off | success |
[
{
"role": "user",
"content": "The famous sculptor Cicasso is a Reberlandian spy!\n\nThese is breaking news in Berlandian papers today. And now the sculptor is hiding. This time you give the shelter to the maestro. You have a protected bunker and you provide it to your friend. You set the security system in ... | off | success |
[
{
"role": "user",
"content": "Tic-Tac-Toe used to be Chef's favourite game during his childhood. Reminiscing in his childhood memories, he decided to create his own \"Tic-Tac-Toe\", with rules being similar to the original Tic-Tac-Toe, other than the fact that it is played on an NxN board.\n\nThe game is pl... | off | success |
[
{
"role": "user",
"content": "Gwen loves most numbers. In fact, she loves every number that is not a multiple of $n$ (she really hates the number $n$). For her friends’ birthdays this year, Gwen has decided to draw each of them a sequence of $n-1$ flowers. Each of the flowers will contain between $1$ and $n... | off | success |
[
{
"role": "user",
"content": "Mirko and Slavko are playing a new game, “Trojke” (Triplets, in English). First they use a chalk to draw an $N \\times N$ square grid on the road. Then they write letters into some of the squares. No letter is written more than once in the grid.\n\nThe game consists of trying t... | off | success |
[
{
"role": "user",
"content": "Little Petya loves playing with squares. Mum bought him a square 2n × 2n in size. Petya marked a cell inside the square and now he is solving the following task.\n\nThe task is to draw a broken line that would go along the grid lines and that would cut the square into two equal... | off | success |
[
{
"role": "user",
"content": "Given is a string S consisting of `0` and `1`. Find the number of strings, modulo 998244353, that can result from applying the following operation on S between 0 and K times (inclusive):\n\n* Choose a pair of integers i, j (1\\leq i < j\\leq |S|) such that the i-th and j-th cha... | off | success |
[
{
"role": "user",
"content": "This kata provides you with a list of parent-child pairs `family_list`, and from this family description you'll need to find the relationship between two members(what is the relation of latter with former) which is given as `target_pair`.\n\nFor example, the family list may be ... | off | success |
[
{
"role": "user",
"content": "Andy and Bob are the only two delivery men of Pizza-chef store. Today, the store received N orders.\nIt's known that the amount of tips may be different when handled by different delivery man.\nMore specifically, if Andy takes the i^th order, he would be tipped Ai dollars and i... | off | success |
[
{
"role": "user",
"content": "As we all know that power sets of any set are formed by taking i elements (where i is from 1 to n) and then random shuffling them like this power set of {1,2,3} are {EMPTY SET},{1},{2},{3},{1,2}{1,3}{2,3}{1,2,3} .\nNow we have a MODIfied POWER SET which contains only those sub... | off | success |
[
{
"role": "user",
"content": "Vasya’s elder brother Petya loves playing computer games. In one of his favourite computer games Petya reached the final level where a fight with the boss take place.\n\nWhile playing the game Petya found spell scrolls and now he is about to use them. Let’s describe the way fig... | off | success |
[
{
"role": "user",
"content": "Do you know Just Odd Inventions? The business of this company is to \"just odd inventions\". Here, it is abbreviated as JOI.\n\nJOI is conducting research to confine many microorganisms in one petri dish alive. There are N microorganisms to be investigated, and they are numbere... | off | success |
[
{
"role": "user",
"content": "Given N, count all ‘a’(>=1) and ‘b’(>=0) that satisfy the condition a^{3} + b^{3 }= N.\n \nExample 1:\nInput:\nN = 9 \nOutput:\n2\nExplanation:\nThere are two solutions: (a=1, b=2)\nand (a=2, b=1).\nExample 2:\nInput:\nN = 27\nOutput:\n1\nExplanation:\nThereis only one solution... | off | success |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 15