Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
2
[ { "content": "Solve the following coding problem using the programming language python:\n\nThe Rebel fleet is afraid that the Empire might want to strike back again. Princess Heidi needs to know if it is possible to assign R Rebel spaceships to guard B bases so that every base has exactly one guardian and each ...
[ { "content": "Solve the following coding problem using the programming language python:\n\nA new delivery of clothing has arrived today to the clothing store. This delivery consists of $a$ ties, $b$ scarves, $c$ vests and $d$ jackets.\n\nThe store does not sell single clothing items — instead, it sells suits of...
[ { "content": "Solve the following coding problem using the programming language python:\n\nLittle Shino loves to play with numbers. She just came to know about Fibonacci Series.\nFibonacci Series is a series of number such that\n\nFib(1) = 0\nFib(2) = 1\nFib(x) = Fib(x-1) + Fib(x-2)\\;where\\;2 < x\n\nSoon Litt...
[ { "content": "Solve the following coding problem using the programming language python:\n\nPetya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not.\n\...
[ { "content": "Solve the following coding problem using the programming language python:\n\nProblem\n\nThere are N villages. Each village is numbered from 1 to N. Due to the recent merger boom, several villages have been merged. Two or more merged villages will become one new city, and villages that are not merg...
[ { "content": "Solve the following coding problem using the programming language python:\n\nChef and his best friend Aleksa are into mathematical games these days. Today, they have some ( ≥ 0 ) black cells represented as B, and a white cell represented as W, lying randomly in a straight line.\nThey have decided ...
[ { "content": "Solve the following coding problem using the programming language python:\n\nTwo little greedy bears have found two pieces of cheese in the forest of weight a and b grams, correspondingly. The bears are so greedy that they are ready to fight for the larger piece. That's where the fox comes in and ...
[ { "content": "Solve the following coding problem using the programming language python:\n\nLet's consider a rectangular table R consisting of N rows and M columns. Rows are enumerated from 1 to N from top to bottom. Columns are enumerated from 1 to M from left to right. Each element of R is a non-negative inte...
[ { "content": "Solve the following coding problem using the programming language python:\n\nAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m vertical sticks.\n\nAn intersection point is any point on the grid whic...
[ { "content": "Solve the following coding problem using the programming language python:\n\nThere is a data which provides heights (in meter) of mountains. The data is only for ten mountains.\n\nWrite a program which prints heights of the top three mountains in descending order.\n\nConstraints\n\n0 ≤ height of m...
[ { "content": "Solve the following coding problem using the programming language python:\n\nThe only difference between easy and hard versions is constraints.\n\nThere are n kids, each of them is reading a unique book. At the end of any day, the i-th kid will give his book to the p_i-th kid (in case of i = p_i t...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3