messages listlengths 3 3 |
|---|
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nMikhail walks on a Cartesian plane. He starts at the point $(0, 0)$, and in one move... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given three sequences: $a_1, a_2, \\ldots, a_n$; $b_1, b_2, \\ldots, b_n$; $... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou have $n$ barrels lined up in a row, numbered from left to right from one. Initia... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a permutation $p=[p_1, p_2, \\ldots, p_n]$ of integers from $1$ to $n$... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThe sequence of $m$ integers is called the permutation if it contains all integers f... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThe only difference between easy and hard versions is constraints.\n\nNow elections ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou like playing chess tournaments online.\n\nIn your last tournament you played $n$... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nAlice and Bob play a game. They have a binary string $s$ (a string such that each ch... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou have a string $s$ — a sequence of commands for your toy robot. The robot is plac... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nOnce again, Boris needs the help of Anton in creating a task. This time Anton needs ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYour company was appointed to lay new asphalt on the highway of length $n$. You know... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nVasya claims that he had a paper square. He cut it into two rectangular parts using ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nScreen resolution of Polycarp's monitor is $a \\times b$ pixels. Unfortunately, ther... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp, Arkady's friend, prepares to the programming competition and decides to wr... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given an array $a_1, a_2 \\dots a_n$. Calculate the number of tuples $(i, j,... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThe only difference between easy and hard versions is constraints.\n\nThe BerTV chan... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nGildong owns a bulgogi restaurant. The restaurant has a lot of customers, so many of... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nAmong Johnny's numerous hobbies, there are two seemingly harmless ones: applying bit... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nLet's define the following recurrence: $$a_{n+1} = a_{n} + minDigit(a_{n}) \\cdot ma... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThe only difference between easy and hard versions is constraints.\n\nNow elections ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nTry guessing the statement from this picture: $3$ \n\nYou are given a non-negative ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a special jigsaw puzzle consisting of $n\\cdot m$ identical pieces. Ev... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThere are $n$ positive integers $a_1, a_2, \\dots, a_n$. For the one move you can ch... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nAcacius is studying strings theory. Today he came with the following problem.\n\nYou... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a string $s$ of even length $n$. String $s$ is binary, in other words,... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nSkier rides on a snowy field. Its movements can be described by a string of characte... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nLately, Mr. Chanek frequently plays the game Arena of Greed. As the name implies, th... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou have a large electronic screen which can display up to $998244353$ decimal digit... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYoung wilderness explorers set off to their first expedition led by senior explorer ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nIt is lunch time for Mole. His friend, Marmot, prepared him a nice game for lunch.\n... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nTwo players decided to play one interesting card game.\n\nThere is a deck of $n$ car... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nAfter a long party Petya decided to return home, but he turned out to be at the oppo... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a sequence $a_1, a_2, \\dots, a_n$, consisting of integers.\n\nYou can... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are fed up with your messy room, so you decided to clean it up.\n\nYour room is ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a binary string $s$ (recall that a string is binary if each character ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nPetya is preparing for his birthday. He decided that there would be $n$ different di... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nToday the kindergarten has a new group of $n$ kids who need to be seated at the dinn... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nJett is tired after destroying the town and she wants to have a rest. She likes high... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nRecently, you found a bot to play \"Rock paper scissors\" with. Unfortunately, the b... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThis is the easy version of the problem. The difference between the versions is that... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are playing a very popular game called Cubecraft. Initially, you have one stick ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nLet's call some positive integer classy if its decimal representation contains no mo... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nKarlsson has recently discovered a huge stock of berry jam jars in the basement of t... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nThere are n games in a football tournament. Three teams are participating in it. Cur... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nHarry Water, Ronaldo, Her-my-oh-knee and their friends have started a new school yea... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are playing a variation of game 2048. Initially you have a multiset $s$ of $n$ i... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nA penguin Rocher has $n$ sticks. He has exactly one stick with length $i$ for all $1... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given an array $a$ of length $n$, which initially is a permutation of number... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou have a rectangular chocolate bar consisting of n × m single squares. You want to... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nDark is going to attend Motarack's birthday. Dark decided that the gift he is going ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nIn order to celebrate Twice's 5th anniversary, Tzuyu and Sana decided to play a game... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a permutation $p_1, p_2, \\dots, p_n$. Recall that sequence of $n$ int... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp wants to assemble his own keyboard. Layouts with multiple rows are too comp... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nLee just became Master in Codeforces, and so, he went out to buy some gifts for his ... |
[
{
"role": "system",
"content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
},
{
"role": "user",
"content": "Solve the following coding problem using the programming language python:\n\nYou and your friend are playing the game Mortal Kombat XI. You are trying to pass a ... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 1