Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
Search is not available for this dataset
text
string
Polar bears like unique arrays — that is, arrays without repeated elements. You have got a unique array s with length n containing non-negative integers. Since you are good friends with Alice and Bob, you decide to split the array in two. Precisely, you need to construct two arrays a and b that are also of length n, w...
Furlo and Rublo play a game. The table has n piles of coins lying on it, the i-th pile has ai coins. Furlo and Rublo move in turns, Furlo moves first. In one move you are allowed to: * choose some pile, let's denote the current number of coins in it as x; * choose some integer y (0 ≤ y < x; x1 / 4 ≤ y ≤ x1 / 2) a...
A plane contains a not necessarily convex polygon without self-intersections, consisting of n vertexes, numbered from 1 to n. There is a spider sitting on the border of the polygon, the spider can move like that: 1. Transfer. The spider moves from the point p1 with coordinates (x1, y1), lying on the polygon border, ...
Today is Devu's birthday. For celebrating the occasion, he bought n sweets from the nearby market. He has invited his f friends. He would like to distribute the sweets among them. As he is a nice guy and the occasion is great, he doesn't want any friend to be sad, so he would ensure to give at least one sweet to each f...
"As everyone knows, bears love fish. But Mike is a strange bear; He hates fish! The even more strang(...TRUNCATED)
"Julia is conducting an experiment in her lab. She placed several luminescent bacterial colonies in (...TRUNCATED)
"You are given a directed graph G with n vertices and m arcs (multiple arcs and self-loops are allow(...TRUNCATED)
"Once Bob saw a string. It contained so many different letters, that the letters were marked by numb(...TRUNCATED)
"You have matrix a of size n × n. Let's number the rows of the matrix from 1 to n from top to botto(...TRUNCATED)
"You are given an infinite periodic array a0, a1, ..., an - 1, ... with the period of length n. Form(...TRUNCATED)
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
234