task stringlengths 0 154k | __index_level_0__ int64 0 39.2k |
|---|---|
Röknet
Description:
In every computer a logical network can be found. These
networks are used to evaluate boolean expressions and thus
create the basis for more complex calculations that the
computer performs. Logical networks consist of different
objects that can up to two inputs and up to one output.... | 29,600 |
Röðun
Description:
One of the popular tasks in computer science is the problem
of sorting. Given a list of sortable items, for example numbers
or strings, with the goal being to order them in either
increasing or decreasing order. In this problem the task is to
sort a list of contestants’ names in incr... | 29,601 |
Röðunarrugl
Description:
## Input
The first line of the input contains a single integer
$n$ satisfying
$1 \leq n \leq 10^5$, the
number of items to rearrange. Next there is a line with
$n$ integers $k_1, k_2, \dots , k_ n$ satisfying
$1 \leq k_ i \leq n$. The
value $k_ i$ is the place
the ... | 29,602 |
RúnaHeimur
Description:
In a sliding puzzle, an image has been divided into
$n$ rows and $m$ columns. Thus in total the image
has been segmented into $n \cdot
m$ cells. The cells are often marked with numbers from
$1$ to $n \cdot m$ from left to right. The
initial state is then, for example,
```
1... | 29,603 |
Rúnnfræði
Description:
Dagur is working on the homework he was assigned in the
statistics course he is taking. Dagur is however not sure
whether he should be rounding his answers or truncating them.
If his answer were $123.456$ then he could round to the
next hundredth and get $123.46$. If he however t... | 29,604 |
S-Nim
Description:
Arthur and his sister Carol have been playing a game called
Nim for some time now. Nim is played as follows:
* The starting position has a number of heaps, all
containing some, not necessarily equal, number of
beads.
* The players take turns chosing a heap and removing a
... | 29,605 |
S10
Description:
On Suðurlandsbraut, it can prove difficult to find a parking
spot, as many people have business with the companies residing
there. A large portion of the parking spots are explicitly
marked for the customers of these companies and are for short
term parking only. Therefore they may onl... | 29,606 |
SETI
Description:
For some years, quite a lot of work has been put into
listening to electromagnetic radio signals received from space,
in order to understand what civilizations in distant galaxies
might be trying to tell us. One signal source that has been of
particular interest to the scientists at U... | 29,607 |
SG Coin
Description:
There is a new cryptocurrency called SG coin. Alice
purchases an item from Bob and pays in SG coin. The transaction
is recorded in a blockchain. A blockchain is a chain of blocks
where each block contains the hash value of the previous block,
a transaction string, a token, and the ... | 29,608 |
SMIL
Description:
Siffermaskinen i Lund (SMIL, “The Number Machine in
Lund”) was a first-generation computer built at Lund
University, in operation from 1956 to 1970. It was based on the
computer architecture developed by John von Neumann at the
Institute of Advanced Studies at Princeton.
Your task is... | 29,609 |
SMS Typing
Description:
When typing SMS messages on a mobile phone, each of the ten
digit buttons represent several alphabetic characters. On my
phone (an ancient Ericsson T65, in case anyone was wondering),
I have the following mapping (1 is used for space, and 0 for
some common non-alphabetic symbols... | 29,610 |
Sabor
Description:
A land far, far away has N Members of Parliament (MP). They
had a turbulent and passionate debate on the law on amendments
to the law on a new referendum on referendums. From Monday to
Friday, all MPs joyfully came to work and argued all day.
A diligent news reporter photographed MPs at... | 29,611 |
Sacred Texts
Description:
You are a respected dwarven archaeologist. Your job consists
of scouring ruins and reading ancient texts.
Recently while under an expedition your team had uncovered
sacred texts you believe belong to the Great Circles.
Each dwarven rune consists of one or more characters. These
... | 29,612 |
Safari Zones
Description:
The researchers at the Safari Zone are trying to introduce
Midnight Lycanrocs into their preserve. However, due to their
aggressive tendencies, the researchers need to find out how
much space to allocate for the Lycanrocs.
So far, the researchers have determined that Lycanrocs vi... | 29,613 |
Safe Houses
Description:
Anyone knows that the best place to learn the art of
espionage is at the Manhattan Academy of Private Spies (MAPS).
Scattered across Manhattan are a number of safe houses, which
are used by MAPS when conducting drills. During a drill, each
spy-in-training is required to travel ... | 29,614 |
Safe Passage
Description:
A group of friends snuck away from their school campus, but
now they must return from the main campus gate to their dorm
while remaining undetected by the many teachers who patrol the
campus. Fortunately, they have an invisibility cloak, but it is
only large enough to cover tw... | 29,615 |
Safe Racing
Description:
Tomorrow is racing day. There will be yet another grand prix
in yet another country. Beside the safety car, there are
various other security measures in order to make sure that
everybody is as safe as possible. Among these safety measures
are the track marshals: special race of... | 29,616 |
Safest Taxi
Description:
Consider a town whose road network forms an $N \times M$ grid, where adjacent
intersections are connected by roads. All roads are
bi-directional. Each direction has an associated number - the
time needed to travel from one end-point to another.
Each direction of each road consists... | 29,617 |
Safety in Numbers
Description:
There are $N$
contestants in a reality TV show. Each contestant is assigned a
point value by the judges and receives votes from the audience.
The point value given by the judges and the audience’s votes
are combined to form a final score for the contestant,
in the fol... | 29,618 |
Sailing Friends
Description:
A common saying goes that if you like sailing, it is much
better to have a friend with a boat rather than being the
friend with a boat.1
Being mathematically inclined, you have realized that this
property applies recursively – it is much better to be the
friend of a friend... | 29,619 |
Saint John Festival
Description:
Porto’s Festa de São João is one of Europe’s liveliest
street festivals. Its peak is the night of 23rd to 24th of
June, with dancing parties from Ribeira to Foz all night
long.
Time to celebrate, with friends, relatives, neighbours or
simply with other people in street... | 29,620 |
Salt
Description:
Given an array $a$ of
length $n$, find the
minimum nonnegative integer $s$ such that for some $L \geq 0$, $a_i = (L + i) \operatorname {XOR} s$
for all $ 0 \leq i \leq
n-1$. The existence of at least one such $s$ is guaranteed by the input.
## Input
The input consists of 2 lines, th... | 29,621 |
Same Digits (Easy)
Description:
Two positive integers, $x$ and $y$, are called
digit-preserving if their product, $xy$, contains exactly the same digits
as $x$ and $y$ contain together, including
repetitions. For example, if $x =
807$ and $y = 984$,
then their product, $794088$, contains $\textrm{o... | 29,622 |
Same Digits (Hard)
Description:
Two positive integers, $x$ and $y$, are called
digit-preserving if their product, $xy$, contains exactly the same digits
as $x$ and $y$ contain together, including
repetitions. For example, if $x =
807$ and $y = 984$,
then their product, $794088$, contains $\textrm{o... | 29,623 |
Samhverfudulritun
Description:
Sigga has been following the progress on quantum computers.
She feels a bit threatened since they might break RSA
encryption, which is based on primes, and is widely used to
encrypt messages on the internet today. If this encryption
system hasn’t been replaced when the fi... | 29,624 |
Samlokur
Description:
Atli is a big fan of sandwiches. The last few years he has
developed a very specific taste in sandwiches. The store Atli
usually goes to to buy sandwiches has closed down for the next
$k$ days due to COVID.
This worries Atli since he has to get his daily sandwiches. He
has $n$... | 29,625 |
Sammaeining
Description:
Sammi’s favorite number is $7$. He is so infatuated by it that
everything he does revolves around the number $7$. Sammi is also a Hackintosh
confectionary enthusiast.
Sammi recently got a box of Hackintosh confectioneries with
$n$ pieces. Each piece was
labeled with a unique n... | 29,626 |
San
Description:
Anica is having peculiar dream. She is dreaming about an
infinite board. On that board, an infinite table consisting of
infinite rows and infinite columns containing infinite numbers
is drawn. Interestingly, each number in the table appears a
finite number of times.
The table is of ex... | 29,627 |
Sand Art
Description:
At art shows, it is very common to have booths where
children can create their very own sand art. This art is
typically made by taking a jar or bottle and filling it with
layers of different colors of sand. Instead of a bottle, this
year a new container is being used for decoratin... | 29,628 |
Sandwich Art
Description:
Zig, the alien, has received one-too-many odd looks for
eating a PBPB (Peanut Butter Pickle on Baguette) sandwich. Zig
has decided to consult you, a 100% real human being, to help
him make his next sandwich and better pretend to be human. Zig
has already started making his nex... | 29,629 |
Sanic
Description:
Sanic Hegehog likes to go fast. While Sanic can run, he
especially enjoys curling himself up into a ball and rolling
really fast downhill through loops. Sanic tries and fails to
count the number of rotations he makes while spinning through a
loop: spinning so fast makes him dizzy and... | 29,630 |
Sannvirði
Description:
Dröfn Karen loves the new game show, Sannvirði, in the
television programme schedule. What she enjoys the most is
seeing how happy the winner is once they receive the prize. She
is thrilled to watch each episode.
Each episode begins with the game show host displaying some
item y... | 29,631 |
Santa Klas
Description:
Santa Klas is in trouble! The ACM (Aerodynamic Christmas
Machines) has called you in to be their subject matter expert
for the current situation.
Santa Klas recently got himself a new bunch of reindeers,
that would boost his speed even more while travelling across
the sky. The ... | 29,632 |
Saskatchewan
Description:
The province of Saskatchewan is surveyed in sections. A
section is a square mile of land. Grid roads delimit sections;
there is one north-south and one east-west road exactly every
mile. (Complications arise because of the curvature of the
earth but you can disregard these and... | 29,633 |
Satisfaction Guaranteed
Description:
Consider a very simple programming language, with only three
types of statements:
```
if <boolean expression> then <statement list> fi
if <boolean expression> then <statement list> else <statement list> fi
checkpoint
```
All keywords are required to consist of all l... | 29,634 |
Saturn Bees
Description:
The Saturn bee (Apis saturnii) is quite an
interesting species. To begin with, they build their hives in
the shape of a ring. More precisely, a beehive is a hexagonal
grid, which we represent as a graph where walls are edges and
wall joins are vertices. If we flatten each hexag... | 29,635 |
Sauna
Description:
Kaisa and her friends are going to the sauna!
Now they have to pick the temperature. Each of them has
their own temperature preferences as an inclusive range of
acceptable values. Can you help them find the temperatures that
everyone is happy with?
Since there might be a large number o... | 29,636 |
Saunas
Description:
However, problems often occur when there is company. The
most important thing when one uses a sauna is that the
temperature is set correctly. A Finn can be really fussy about
a sauna’s temperature. Different Finns have different maximum
temperatures that they tolerate. If the temper... | 29,637 |
Savez
Description:
There are eight planets and one planetoid in the Solar
system. It is not a well known fact that there is a secret
planet S4 inhabited by small creatures similar to bears, their
codename being Lodas. Although this fact is well hidden from
the public, the association Savez sent a team ... | 29,638 |
Saving Daylight
Description:
The shortest day of the year in the northern hemisphere is
the winter solstice, around December 22, which marks the
beginning of winter. This day is not really any shorter, of
course, because it still has 24 hours. But it has the fewest
hours of daylight of any day. On the ... | 29,639 |
Saving For Retirement
Description:
Alice is saving for her retirement. She hasn’t really
decided how much she wants to save, but when she retires, she
wants to have strictly more money than Bob will have when he
retires.
Bob is $B$ years old.
He plans to retire when he becomes $B_ r$ years old. He sav... | 29,640 |
Saving Princess Peach
Description:
Mario is trying to save his beloved Princess Peach! However,
in order to do that, Mario must jump over many obstacles in
order to save Princess Peach. Thus, he makes a grand plan to
infiltrate Bowser’s castle.
But first, he needs to practice. His brother Luigi makes a
... | 29,641 |
Saving the Universe
Description:
The urban legend goes that if you go to the Google homepage
and search for "Google", the universe will implode. We have a
secret to share... It is true! Please don’t try it, or tell
anyone. All right, maybe not. We are just kidding.
The same is not true for a universe far ... | 29,642 |
Scaffolding
Description:
As a construction worker, you want to build a bamboo
scaffold for an upcoming festival. There are specific
requirements for the final scaffold, which will be part of a
vertical, $2$-dimensional
grid. $N+1$ vertical long
bamboos are already established, so there are $N$ colu... | 29,643 |
Scaling Recipe
Description:
You’ve got a recipe which specifies a number of ingredients,
the amount of each ingredient you will need, and the number of
portions it produces. But, the number of portions you need is
not the same as the number of portions specified in the recipe!
How can you scale it?
##... | 29,644 |
Scaling Recipes
Description:
Some recipes are specifically written to ease the task of
scaling. These recipes are developed using “Baker’s
percentages.” Each ingredient is listed not only by weight (in
grams), but also as a percentage relative to the “main
ingredient.” The main ingredient will always h... | 29,645 |
Scenery
Description:
You have decided to spend a day of your trip to Rapid City
taking photographs of the South Dakota Badlands, which are
renowned for their spectacular and unusual land formations. You
are an amateur photographer, yet very particular about lighting
conditions.
After some careful rese... | 29,646 |
Schedule
Description:
The Institute for Creative Product Combinations (ICPC) tries
to find unusual and innovative ways to unite seemingly
unrelated products or technologies, opening up new markets and
creating new jobs. (For instance, their most recent success was
the “hairbachi,” a hair-dryer with a h... | 29,647 |
Scholar's Lawn
Description:
Famously at Cambridge, and often copied at other schools, is
the tradition of the “Scholar’s Lawn” – an area of grass where
Fellows of the school, or other distinguished entities, can
walk, but regular students cannot.
So, if a student spies a Fellow walking across campus, and
... | 29,648 |
School Spirit
Description:
As the coach of your university’s ICPC teams, you encourage
your students to solve as many Kattis problems as possible.
This has numerous benefits — for example, it helps improve
students’ competitive programming skills, and it also creates a
strong sense of school spirit. Th... | 29,649 |
Science!
Description:
Welcome, ladies and gentlemen, to Aperture Science.
Astronauts, War Heroes, Olympians — you’re here because we want
the best, and you are it. That said, it’s time to make some
science.
Now, I want each of you to stand on one of these buttons.
Well done, we’re making great progres... | 29,650 |
Scientific Grading
Description:
You recently started working as a TA (teaching assistant)
for your university’s Scientific Computing class.
Today, Professor introduced the scientific notation,
where numbers are written in the form $m \times 10^ n$ with a real number
$m$ (the
significand) and an int... | 29,651 |
Score!
Description:
Kathy is in charge of statistics for the girl’s basketball
team at her high school. She meticulously records each basket
made and the time it occurred. Her record book for a game might
begin as follows:
```
H 2 0:13
A 2 0:19
H 1 0:52
H 1 0:52
A ... | 29,652 |
Scrabble Flash
Description:
Players of this game have noticed that it is much easier to
find another word that is similar to the current word than to
find another word that is less similar. These players believe
they have come up with a formula to estimate the amount of time
it takes to find the next w... | 29,653 |
Screamers in the Storm
Description:
On Mars, though its atmosphere is very thin, winds can blow
with unexpected force. The effect can grow even stronger in
narrow and deep canyons close to the equator. The floor of one
of these canyons is extremely flat and it is used for transport
because its steep wa... | 29,654 |
Scrolling Sign
Description:
Electric scrolling signs are often used for advertising. A
given sign displays exactly $k$ characters. When the sign is
switched on, all of the character positions are initially empty
(showing spaces). In each time interval, all of the characters
on the sign are shifted to t... | 29,655 |
Sculpture
Description:
Imagine a box, made of copper plate. Imagine a second one,
intersecting the first one, and several others, intersecting
each other (or not). That is how the sculptor Oto Boxing
constructs his sculptures. In fact he does not construct that
much, he only makes the design; the actua... | 29,656 |
Secret Chamber at Mount Rushmore
Description:
In 1982, the famous archaeologist S. Dakota Jones
secretly visited the monument and found that the chamber
actually was completed, but it was kept confidential. This
seemed suspicious and after some poking around, she found a
hidden vault and some documents... | 29,657 |
Secret Message
Description:
Jack and Jill developed a special encryption method, so they
can enjoy conversations without worrrying about eavesdroppers.
Here is how: let $L$ be
the length of the original message, and $M$ be the smallest square number
greater than or equal to $L$. Add $(M - L)$ asterisks... | 29,658 |
Secret Santa
Description:
Christmas comes sooner every year. In fact, in one
oft-forgotten corner of the world, gift-giving has already
started in the form of a Secret Santa syndicate.
Everybody in the small town of Haircombe is going to put
their name into a hat. This hat will be given a hearty shuffle,
... | 29,659 |
Secret Santa Cycles
Description:
Tina is organizing Secret Santa at work. Secret Santa is a
game where everyone is assigned to give a gift to another
person, in secret. On the last day before Christmas, everyone
opens their present.
The opening ceremony is organized in the following way: Tina
picks a ... | 29,660 |
Secret Sequence
Description:
There is a secret sequence of zeros and ones of length
$n$, and you want to know
the number of ones in the sequence. You are allowed to ask
queries by giving four integers $0 \leq a \leq b \leq c \leq d \leq
n$. The answer to the query will be $-1$ if the sum of the numbers... | 29,661 |
Secure Doors
Description:
You need to write a simple software auditor for tracking
employees entering and exiting your building using their access
cards (each card uniquely identifies the employee holding the
card). Your software needs to look at the access log and
determine if there are any anomalies.... | 29,662 |
Security Badge
Description:
The contract for the lock system, however, was put out to
the lowest bidder, who clearly misunderstood the intention.
Instead of each lock storing a list of permitted ID numbers,
instead each lock stores exactly two numbers, a lower and upper
bound, and permits passage to ba... | 29,663 |
Segment Drawing
Description:
You’re given some points, paired with an equal number of
line segments. All points are strictly above the x-axis. Each
line segment lies completely on the x-axis. None of the line
segments share any common points.
You would like to draw some new line segments – one for each
... | 29,664 |
Segment Monitoring
Description:
After successfully conquering all city-states in Kattago,
the super-feline kingdom of Katen and its leader Kattis seek
better control over their conquered city-states, particularly
in the state of Segby. Segby consists of a single long line.
Recently, rumors of rebellion... | 29,665 |
Select Group
Description:
Playing the popularity game is all about getting yourself
into the right groups. If you are on the football team and the
honor roll, this might impress some people. If you are in the
AV club, chess club, and academic probation, perhaps not so
much. For this problem, develop a ... | 29,666 |
Self-Assembly
Description:
Automatic Chemical Manufacturing is experimenting with a
process called self-assembly. In this process, molecules with
natural affinity for each other are mixed together in a
solution and allowed to spontaneously assemble themselves into
larger structures. But there is one pr... | 29,667 |
Self-Similar Strings
Description:
An object is sometimes called ‘self-similar’ if there are
parts of it that are repeated in other places within the same
object. Fractals are self-similar mathematical objects, where
the similarities occur at different sizes.
Here, we’ll consider ‘self-similar strings.’ We... | 29,668 |
Selling Land
Description:
As you may know, the country of Absurdistan is full of
abnormalities. For example, the whole country can be divided
into unit squares that are either grass or swamp. Also, the
country is famous for its incapable bureaucrats. If you want to
buy a piece of land (called a parcel)... | 29,669 |
Selling Spatulas
Description:
You have finally realized your life-long dream: you opened
your own chain of retail stores specializing in hard-to-find
spatulas. Being your own boss is great – but you have to make
all the decisions, like when your stores should be open. Being
somewhat methodical, you dec... | 29,670 |
Semafori
Description:
Luka is driving his truck along a long straight road with
many traffic lights. For each traffic light he knows how long
the red and green lights will be on (the cycle repeating
endlessly).
When Luka starts his journey, all traffic lights are red and
just started their cycle. Luka... | 29,671 |
Semi-prime H-numbers
Description:
This problem is based on an exercise of David Hilbert, who
pedagogically suggested that one study the theory of
$4n+1$ numbers. Here, we
do only a bit of that.
An H-number is a positive number
which is one more than a multiple of four: $1, 5, 9, 13, 17, 21,...$ are th... | 29,672 |
Send More Money
Description:
You may have seen puzzles, sometimes called
cryptarithmetic puzzles, or simply
cryptarithms, that look like this:
The goal of this kind of puzzle is to replace each letter
with a (base-$10$) digit so that the
resulting arithmetic equality holds. Here are the rules:
* A gi... | 29,673 |
Sensor Network
Description:
Samantha is a researcher working on the Amazon
Carbon-dioxide Measurement (ACM) project. In this project, a
wireless sensor network in the Amazon rainforest gathers
environmental information. The Amazon rainforest stores an
amount of carbon equivalent to a decade of global f... | 29,674 |
Sensor Network
Description:
In response to a request by the SWERC 2010 problem-setting
team, a sensor network has just been installed in the
headquarters. The organizing committee has put in the
problem-setters the disproportionate fear of suffering a leak
of classified information about the problems.
... | 29,675 |
Sentry Robots
Description:
We need to guard a set of points of interest using sentry
robots that can not move or turn. We can position a sentry at
any position facing either north, south, east or west. Once a
sentry is settled, it guards the points of interest that are
infront of it. If two or more poi... | 29,676 |
Sequence
Description:
A sequence of positive integers $(x_1,\ldots ,x_ m)$ is good
if $x_1 = 1$ and for each
$1 < j \leq m$ we have
either $x_ j=x_{j-1}+1$ or
$x_ j=x_ k\cdot x_ l$ for
some $k$ and $l$ with $0< k\leq l< j$. For instance,
the sequences $(1,1)$
and $(1,2)$ are both good,
... | 29,677 |
Sequence Guessing
Description:
You are tasked with creating a secret sequence of integers
that is difficult to guess.
The sequence is subject to the following constraints:
* The first number in the sequence must be $0$.
* The last number in the sequence must be $100\, 000$.
* Each number in the sequence must b... | 29,678 |
Sequence Reduction
Description:
We are given a sequence $a_1$, $\dots $, $a_ n$. We can manipulate this
sequence using the operation $\text {reduce}(i)$, which replaces
elements $a_ i$ and
$a_{i+1}$ with a single
element $\max (a_ i ,
a_{i+1})$, resulting in a new shorter sequence. The cost
of ... | 29,679 |
Sequential Manufacturing
Description:
A certain manufacturing process consists of $N$ different machines, through which
raw material pass in order until it becomes the manufactured
goods. The $i$’th machine
takes $T_ i$ seconds to
process a good when input.
A good moves automatically through the syste... | 29,680 |
Sequential Yahtzee
Description:
Danny has a hand-held game of Yahtzee that he likes to play
(how 90’s!). The object of Yahztee is to score points by
placing the result of rolls of $5$ dice into one of $13$ categories. The categories are
listed below, along with how you score points for each
category:
... | 29,681 |
Server
Description:
You are in charge of a server that needs to run some
submitted tasks on a first-come, first-served basis. Each day,
you can dedicate the server to run these tasks for at most
$T$ minutes. Given the
time each task takes, you want to know how many of them will be
finished today.
... | 29,682 |
Set!
Description:
To make a set, you must select three cards for which all
$4$ characteristics are
either the same or pairwise different. For instance,
$3$ cards where the first
shows $2$ striped red
ovals, the second shows $3$ striped green squiggles, and the
third shows $1$ striped
purple... | 29,683 |
Setnja
Description:
In an infinite binary tree:
* Each node has exactly two children – a left and a right
child.
* If a node is labeled with the integer $X$, then its left child is
labeled $2X$ and its
right child $2X+1$.
* The root of the tree is labeled 1.
Each node has exactly two childr... | 29,684 |
Settlers of Catan
Description:
The popular board game “Settlers of Catan” starts by
creating a random board. This board consists of hexagonal
resource tiles containing five different resources: clay,
lumber, wool, grain, and ore. For simplicity, we will denote
these by the numbers 1 to 5.
Random board... | 29,685 |
Seven Kingdoms
Description:
Jon Dayne is the ruler of a huge country called Seven
Kingdoms. He has two sisters, Arya and Sansa, and wants to give
some cities of Seven Kingdoms to them. He will rule the
remaining cities or if no city remains, goes to the Wall, a
colossal fortification along the northern... | 29,686 |
Seven Up
Description:
The one-player game of Seven Up is played with a
standard deck of 52 cards - each card has one of thirteen
possible faces which we denote by A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, and K. There are exactly four cards of each
face.
Initially, seven cards are dealt face down in positions
... | 29,687 |
Seven Wonders
Description:
For example, if a player plays $3$ Tablet cards, $2$ Compass cards and $1$ Gear card, she gets $3^2 + 2^2 + 1^2 + 7 = 21$ points.
It might be tedious to calculate how many scientific points
a player gets by the end of each game. Therefore, you are here
to help write a program for th... | 29,688 |
Shadow Line
Description:
You have a point light source at the origin in the 2D plane.
To the right there is an infinitely tall wall. There are some
opaque vertical line segments between the light source and the
wall. As a result, each line segment casts a shadow onto the
wall. All of these shadows over... | 29,689 |
Shakespeare, who?
Description:
You would like to write a very special poem for your friend.
You know a list of $n$
words that your friend likes. We will call these words
beautiful words. You want every line of your poem to begin and
end with a beautiful word. Any given line must use the same
beauti... | 29,690 |
Shandy
Description:
A shandy is a 50:50 mixture of beer (or cider) and
lemonade (or some other nonalcoholic lemon- or lime-flavoured
beverage, possibly carbonated.) This results in a drink of
lower alcohol per volume that still retains the experience of
having a beer. Shandies are popular around the wo... | 29,691 |
Shares
Description:
You are a successful business man who uses to invest some
money in the shares market. As a successful man you manage a
network of well prepared spies assistants that can
assure you the values of the shares for the next day. Each day
you have a capital that you can spend in the marke... | 29,692 |
Sharing Candies
Description:
Taking care of cats is not easy. You need to constantly keep
them happy, and make sure that you treat all your kitties
equally.
One day, you come back from work, and realize that your
$n$ cats are eagerly
waiting for candies. You have $n$ boxes of candies with $c_ i$ candi... | 29,693 |
Shattered Cake
Description:
A rectangular cake is transported via a truck to a
restaurant. On the way to the destination, the truck hits a
pothole, which shatters the cake into $N$ perfectly rectangular pieces of
width $w_ i$ and length
$l_ i$, for $1\leqslant i\leqslant N$.
At the destination, the da... | 29,694 |
She Talks to Angel
Description:
Fluttershy’s relationship with her pet bunny Angel has hit
the skids. Zecora has brewed a solution—literally—that will
help them solve their problem and understand each other
better.
Zecora realized that the problem is each one’s lack of
appreciation for the difficultie... | 29,695 |
She's All Yak
Description:
The Fetlock Fete is a traditional Ponyville promenade: a
large party where partners perform in several dances!
Yona was invited by Sandbar to this year’s Fetlock Fete,
and, naturally, she wants him to see her best side. To this
end, she hopes to carefully choose which of the dan... | 29,696 |
Sheba's Amoebas
Description:
After a successful Kickstarter campaign, Sheba Arriba has
raised enough money for her mail-order biology supply company.
“Sheba’s Amoebas” can ship Petri dishes already populated with
a colony of those tiny one-celled organisms. However, Sheba
needs to be able to verify the... | 29,697 |
Sheep Pen
Description:
David and Martin retired from their jobs and became
shepherds. After each winter they need to rebuild the sheep
pen. Each year they have a different collection of straight
fence segments of various lengths. Naturally, they want to
build a sheep pen that covers the largest area. T... | 29,698 |
Sheldon Numbers
Description:
According to Sheldon Cooper, the best number is $73$. In his own words, “The best number is $73$. $73$ is the $21$st prime number. Its mirror,
$37$, is the $12$th, and its mirror, $21$, is the product of multiplying
$7$ and $3$. In binary, $73$ is a palindrome: $1001001$, which bac... | 29,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.