task stringlengths 0 154k | __index_level_0__ int64 0 39.2k |
|---|---|
Weighty Tomes
Description:
The Computer Science Library on campus needs to be
temporarily closed for renovations and you have been put in
charge of the storage of all the library’s books. After getting
over the shock of being selected as well as the shock that the
campus actually had a CS library, you ... | 30,500 |
Weird Flecks, But OK
Description:
An artist who wanted to create an installation where his
works appeared to be floating in midair has cast a large cube
of clear acrylic to serve as a base. Unfortunately, during the
casting, some small flecks of dirt got into the mix, and now
appear as a cluster of pin... | 30,501 |
Welcome Sign
Description:
Amanda is opening a new bakery in town. She will put up a
fancy LED sign to show a grand opening message on the
storefront window. The sign has $r$ rows and $c$ columns of display units. Each
unit can display one letter or be blank.
Amanda has written a message consisting of exac... | 30,502 |
Welcome to Code Jam (Easy)
Description:
Note that this is an easier version of the problem
welcomehard.
So you’ve registered. We sent you a welcoming email, to
welcome you to code jam. But it’s possible that you still don’t
feel welcomed to code jam. That’s why we decided to name a
problem “welcome to... | 30,503 |
Welcome to Code Jam (Hard)
Description:
Note that this is a harder version of the problem
welcomeeasy.
So you’ve registered. We sent you a welcoming email, to
welcome you to code jam. But it’s possible that you still don’t
feel welcomed to code jam. That’s why we decided to name a
problem “welcome to ... | 30,504 |
Wet Tiles
Description:
Alice owns a construction company in the town of Norainia,
famous for its unusually dry weather. In fact, it only rains a
few days per year there. Because of this phenomenon, many
residents of Norainia neglect to do roof repairs until leaks
occur and ruin their floors. Every year... | 30,505 |
Whac-a-Mole
Description:
The moles appear out of holes occupying the $n^2$ integer points $(x, y)$ satisfying $0 \le x,y < n$ in a
two-dimensional coordinate system. At each time step, some
moles will appear and then disappear again before the next time
step. After the moles appear but before they disappea... | 30,506 |
What Does It Mean?
Description:
Bob has always been interested in his family history, and
above all else his family name’s meaning. Unfortunately for
Bob, no one else in his family has ever had any similar
interest whatsoever. Because of this the family name seems to
have changed at random points in ti... | 30,507 |
What Really Happened on Mars?
Description:
Real-time software in the Mars Pathfinder spacecraft
suffered from an issue known as priority inversion. One
technique to address this issue is to use the Priority Ceiling
Protocol.
In this problem, you will simulate the execution of multiple
tasks according ... | 30,508 |
What does the fox say?
Description:
Determined to discover the ancient mystery—the sound that
the fox makes—you went into the forest, armed with a very good
digital audio recorder. The forest is, however, full of
animals’ voices, and on your recording, many different sounds
can be heard. But you are we... | 30,509 |
What's In It For Me?
Description:
Pekka has started preparing for the beautiful summer on the
beaches along the great Finnish lakes. He has started his
yearly spring diet. Although the diet is very strict and
boring, it has given Pekka fruitful results for the last
$10$ years as well as an
increase... | 30,510 |
What's Our Vector, Victor?
Description:
You have been hired by Ye Olde Ice Cream Shoppe to create an
embedding model for flavors, so that when they are out of an
ice cream flavor they can recommend related flavors to
customers. After training your embedding on six cloud
datacenters for four months, you... | 30,511 |
What's on the Grille?
Description:
The grille cipher is a technique that dates back
to 1550 when it was first described by Girolamo Cardano. The
version we’ll be dealing with comes from the late 1800’s and
works as follows. The message to be encoded is written on an
$n \times n$ grid
row-wise, top... | 30,512 |
Wheel Game
Description:
It’s yet another rainy day in 1959, there are no video
games, and you are stuck indoors playing a game with a friend.
The game is played using an even number $2n$ of sticks, laid out on a table to
form a wheel with $n$
spokes as shown in the figure below.
You and your friend ta... | 30,513 |
Wheels
Description:
A very important and complicated machine consists of
$n$ wheels, numbered
$1, 2, \ldots , n$. They
are actually cogwheels, but the cogs are so small that we can
model them as circles on the plane. Every wheel can spin around
its center.
Two wheels cannot overlap (they do not ha... | 30,514 |
When Planetoids Align
Description:
After the Twilight Wars, both Venus, Earth and Mars broke
into small pieces we now call planetoids. Fortunately humanity
survived, and has managed to repopulate the remains of what was
once was the Planetarian Trinity. To keep the planetoids
united, we formed the Inte... | 30,515 |
Where Am I Now?
Description:
Who am I? What am I? Why am I? These are all difficult
questions that have kept philosophers reliably busy over the
past millennia. But when it comes to “Where am I?”, then, well,
modern smartphones and GPS satellites have pretty much taken
the excitement out of that questi... | 30,516 |
Where Am I?
Description:
Who am I? What am I? Why am I? These are all difficult
questions that have kept philosophers reliably busy over the
past millennia. But when it comes to “Where am I?”, then, well,
modern smartphones and GPS satellites have pretty much taken
the excitement out of that question.
... | 30,517 |
Where Have You Bin?
Description:
Ben Bean owns Ben Bean’s Bin Bonanza which offers storage
bins to the five big companies in town: a rubber band company,
a Mercedes Benz dealership, a bing cherry farm, a bonbon candy
store and a bun bakery. Together they store their bands,
Benzes, bings, bonbons and bu... | 30,518 |
Where to Live?
Description:
Moving to a new town can be difficult. Finding a good place
to live which is close to everything you’re interested in is
important. However, since you’re a great programmer, you know
that you can solve this problem with an algorithm.
Everything in your virtualized town is laid ... | 30,519 |
Where's My Internet??
Description:
A new town is being built far out in the country, and
currently there are $N$
houses. People have already started moving in. However, some of
the houses aren’t connected to the internet yet, and naturally
residents are outraged.
The houses are numbered $1$ to $N$. Ho... | 30,520 |
Where's My Waterfall?
Description:
As a level designer for Super Mawio Bros, you have been
creating maps for Mawio to play on, each with some combination
of blank spaces, bricks, and item boxes for Mawio to navigate
on his way to save Princess Pweach. You want to make some of
the maps more interesting,... | 30,521 |
Which Base is it Anyway?
Description:
Programming languages such as C++ and Java can prefix
characters to denote the base of constant integer values. For
example, hexadecimal (base $16$) constants are preceded by the
string “0x”. Octal (base $8$) values are preceded by the
character “0” (zero). Decimal... | 30,522 |
Which Bits?
Description:
The year is $2025$, and
Eirdria has just purchased the greatest new computer model, now
with $2^{63}$ bits
($1$ exbibyte) of RAM! The
dramatic increase in RAM size from previous models is certainly
welcomed, but along with it comes some technical quirks. One
issue is th... | 30,523 |
Which Number Kind Is It?
Description:
There are many number kinds out there and I am sure you know
some of them already! To name a few:
* Odd number (O): $1, 3, 5, 7, 9, \ldots $
* Square number (S):
$0, 1, 4, 9, 16, 25, \ldots
$
Odd number (O): $1, 3, 5, 7, 9, \ldots $
Square number (S):
... | 30,524 |
Which One is Larger
Description:
A question that often confuses a chat bot is:
Some chat bot would incorrectly state that $9.11$ is larger than $9.9$. Though we are not exactly sure
what reasoning is behind that wrong answer, one hypothesis is
that the chat bot might have compared the decimal numbers as
i... | 30,525 |
Which Planet is This?!
Description:
The ICPC was planning to release this exciting news to the
public, but at the last moment, disaster struck. One of the
ICPC’s interns deleted all meta-data associated with the maps.
So while the maps themselves are safe, the ICPC does not know
which maps belong to wh... | 30,526 |
Which Warehouse?
Description:
Anaconda Inc. has a problem in several of the cities where
its warehouses are located. The generic problem is the
following: each city has $n$ warehouses storing $m \leq n$ different types of products
distributed randomly among the warehouses (the CEO of Anaconda
say the s... | 30,527 |
Which is Greater?
Description:
Given two positive integers, determine whether the first one
is larger than the second one.
## Input
The single line of input contains two positive integers,
$a$ and $b$ ($0
< a,b \le 10^9$).
## Output
Output a single line with 1 if
$a > b$, 0 otherwise.
**Sample Inp... | 30,528 |
White Water Rafting
Description:
You have been hired by a big theme park to design a new
attraction: a white water rafting ride. You already designed
the track; it is a round trip that is described by an inner and
an outer polygon. The space in between the two polygons is the
track.
You still need to ... | 30,529 |
Whiteboard
Description:
Mr. Turtle loves drawing on his whiteboard at home. One day
when he was drawing, his marker dried out! Mr. Turtle then
noticed that the marker behaved like an eraser for the
remainder of his drawing.
Mr. Turtle has a picture in his head of how he wants his
final drawing to appe... | 30,530 |
Whiteboard Space
Description:
Hosuja is going to present the intended solution for an
unusually tricky problem. To assist him, he has a whiteboard
and a red and a blue pen. The solution he presents contains
$N$ ideas to be presented
in order, and each idea’s presentation requires a certain
amount o... | 30,531 |
Who Goes There?
Description:
What happens when more teams want to go to an ICPC regional
site than the site has capacity for? Who goes there?
One possible policy is the following: Every school is
allowed to register as many teams as they wish. Accept every
school’s first team, then accept every school’s s... | 30,532 |
Who Wants to Live Forever?
Description:
Digital physics is a set of ideas and hypotheses that
revolve around the concept of computable universe. Maybe our
universe is just a big program running on a Turing machine? Is
the state of the universe finite? Will the life of the universe
end? We can only theo... | 30,533 |
Who Watches the Watchmen?
Description:
There are some sentry drones guarding a top-secret facility.
Each sentry is stationary at some point in 3D space, and faces
in some viewing direction.
With recent advances in artificial intelligence, the owners
of the facility have come to the realization that the gr... | 30,534 |
Who can win?
Description:
Johan and Abdullah are still playing tic-tac-toe, so now
they want help figuring out who can still win in their game. To
win in tic-tac-toe you need to have three of your letter in a
row, either vertically, horizontally, or diagonally. Johan uses
the letter X and makes the fir... | 30,535 |
Who owns the Amiga?
Description:
In a corridor in a student dormitory, there are five rooms
numbered 1, 2,
3, 4 and
5; room number 1 is the left-most room,
and room number 5 is the right-most. The rooms have doors in
different colours: blue, green, red, white and yellow, but
not necessarily in ... | 30,536 |
Who wins?
Description:
Johan and Abdullah are playing tic-tac-toe, but they are
having a hard time figuring out who won. To win in tic-tac-toe
you need to have three of your letter in a row, either
vertically, horizontally, or diagonally. Johan uses the letter
X and makes the first move, and
Abdull... | 30,537 |
Who's the Boss?
Description:
Several surveys indicate that the taller you are, the higher
you can climb the corporate ladder. At TALL Enterprises Inc.,
this “de facto standard” has been properly formalized: your
boss is always at least as tall as you are. Furthermore, you
can safely assume that your bo... | 30,538 |
Wi Know
Description:
You are the boss of Wi Know, an upstanding company in
information theory, especially in message encryption.
The counter-counter-intelligence branch of your upstanding
company managed to intercept a message sent by the
counter-intelligence agency of the local Helsinkian government.
... | 30,539 |
Wi-Fi
Description:
One day, the residents of Main Street got together and
decided that they would install wireless internet on their
street, with coverage for every house. Now they need your help
to decide where they should place the wireless access points.
They would like to have as strong a signal as... | 30,540 |
Wider Digbuild
Description:
Benni is once more playing the game Digbuild. Before he
looked at how a tunnel of width $3$ could be illuminated, but this
time we are looking at a tunnel of width $k$. A tunnel of length $n$ and width $k$ has a floor which can be split
into $n \times k$ squares.
Torches can... | 30,541 |
Widget Tree
Description:
Alice got bored when staying at home for several months due
to the pandemic and decided to learn about front-end
development. She learnt that project components are often
modeled as a widget, and decided to write a program to
calculate the cost of building and updating them.
I... | 30,542 |
Wimbledon
Description:
A tennis match involves three people: two players and an
umpire. Each of these has to come from a different country.
There are $N$ countries,
and the $i$th country has
$a_ i$ tennis players and
$b_ i$ umpires. (Nobody
can be both a player and an umpire.) How many differen... | 30,543 |
Win Diesel
Description:
Exploring cave systems on Mars is an easy procedure which
was pre-planned on Earth. Each cave system contains several
cave rooms which are pairwise disconnected. As the cave rooms
are not accessible from the surface, you were given a digging
rig so that you are able to dig chann... | 30,544 |
Window Manager
Description:
The past few years have seen a revolution in user interface
technology. For many years, keyboards and mice were
the tools used to interact with computers. But with
the introduction of smart phones and tablets, people are
increasingly using their computers by tapping and movi... | 30,545 |
Window Shopping
Description:
You are to choose some of the empty cells to build shops.
All remaining empty cells, plus the two escalator cells, are
walkable by the customers. If an empty cell
is reachable from both escalators via some walkable cells, it
becomes a hallway. A shop window can be
insta... | 30,546 |
Windy Path
Description:
Consider following along the path in the figure above,
starting from $(4,4)$ and
moving to $(2,5)$. Then
the path turns rightward toward $(1,6)$, then sharp left to
$(5,0)$ and finally sharp
left again to $(4,2)$. If
we use ‘L’ for left and ‘R’ for right, we see that the... | 30,547 |
Winning Streak
Description:
Mikael likes to gamble, and as you know, almost anything can
be gambled on these days. A particular thing that has recently
caught Mikael’s interest is the length of the longest winning
streak of a team during a season (i.e. the highest number of
consecutive games won). In o... | 30,548 |
Winning the Vote
Description:
In the country of Elecuador, a very strange voting system is
used. When it is time for the election, each one of the
$n$ citizens will arrive
in some order to the voting station. There are only two parties
to vote for, conveniently named $1$ and $2$. When arriving to the v... | 30,549 |
Winter Festival
Description:
Peter’s favorite season is winter. Caught up in the
festivities, Peter would like to decorate his city.
The city has many areas for things like ice skating, skiing,
and snowball fights. There are roads connecting some pairs of
areas. Peter would like to put a special decoratio... | 30,550 |
Winter Roads
Description:
Winter is coming, and the citizens of Winterfell are making
preparations for the long months ahead. One particular concern
is the stability of the roads and bridges; supply lines must
stay uninterrupted as the season progresses.
The civil engineers of Winterfell would like to mod... | 30,551 |
Wipe Your Whiteboards
Description:
You enter an empty classroom to do some homework, and you
find out that someone did not clean the whiteboard properly.
Apparently, the previous instruction in that room has been
about the Extended Euclidean algorithm, because you see lots of
intermediate results of th... | 30,552 |
Wire Crossing
Description:
Moore’s Law states that the number of transistors on a chip
will double every two years. Amazingly, this law has held true
for over half a century. Whenever current technology no longer
allowed more growth, researchers have come up with new
manufacturing technologies to pack ... | 30,553 |
Wireless is the New Fiber
Description:
A new type of unbounded-bandwidth wireless communication has
just been tested and proved to be a suitable replacement for
the existing, fiber-based communications network, which is
struggling to keep up with traffic growth. You have been
charged with deciding the ... | 30,554 |
Wiseguy
Description:
Paulie Cicero is a made man who runs the underworld of
Brooklyn along with his associates Jimmy “the Gent" Conway,
Tommy DeVito, and the young but ambitious Henry Hill. The crew
just got wind of a one-in-a-lifetime opportunity to raid $6
million from the Lufthansa vault at John F. ... | 30,555 |
Witch Dance
Description:
Each Halloween, the $N$
witches of Sweden all gather high up in the air with their
brooms to perform a magical dance. The dance consists of taking
one’s broom and rotating clockwise around one of the ends of
the broom. Each broom is exactly $1\text { m}$ long, and everyone
... | 30,556 |
Witchwood
Description:
Maaba is playing the game Lumberjack, where the
goal is to build log huts. Her current customer wants a hut
made completely out of witchwood, which protects the
hut from curses, hexes and magic spells – or at least that’s
what the customer claims.
However, witchwood is not easy ... | 30,557 |
Within Arm's Reach
Description:
João wants to join the robotic football team of his
university. However, since he knows little about robotics and
mathematics, he decided to build a $2$-dimensional robotic arm to
bootstrap his knowledge.
The robotic arm is composed of $N$ segments of various lengths. The
... | 30,558 |
Wizard Dance
Description:
In the USA, a type of dance called square dance is
very popular. Four dancing pairs stand as to form a square. A
caller then gives a series of moves that the dancers
should perform, moving around on the floor.
American wizards, however, find square dancing a bit
simplistic. I... | 30,559 |
Wizard of Odds
Description:
You have just completed a brave journey to see The
Wizard of Odds, who agrees to grant you any wish, so long
as you can complete the following puzzle:
The Wizard starts by telling you two integers: $N$ and $K$. He then secretly selects a number
from $1$ to $N$ (inclusive), and ... | 30,560 |
Wolf
Description:
In the card game Wolf (a variant of the famous card games
War and Svälta räv), two players both have a
pile of cards, which together form a normal deck of playing
cards. Such a deck contains $52$ cards, with each card being a
unique combination of one of $4$ suits and $13$ ranks.
Dur... | 30,561 |
Wonky Pizza
Description:
As is customary at the ACPC, there will be pizza.1 However, due to logistical
challenges, the only pizza available is a wonky pizza. The
organizers will buy one wonky pizza and need to cut it into
$N$ pieces, one for each
of the $N$ contestants.
The organizers will have to ... | 30,562 |
Wood Cutting
Description:
Yraglac recently decided to get into the wood cutting
business, and now has $N$
customers who would like to have their wood cut. A piece of
wood of size $s$ takes
$s$ time units to cut, and
Yraglac can only cut a single piece of wood at a time. To
maximize customer hap... | 30,563 |
Wooden Crates
Description:
You are an employee at Micah’s Airlift Payload Services
(MAPS), which is a local crane company. On this particular day,
you receive a call from a guy named Jerry, asking for help in
moving a large number of wooden crates.
Jerry has $N$ stacks of
crates, arranged side-by-side... | 30,564 |
Wooden Fence
Description:
Did you ever wonder what happens to your money when you
deposit them to a bank account? All banks hold such deposits in
various assets, such as gold, stocks, obligations, deposits in
other banks, loans, bonds, and many others. Due to the
financial crisis and instability of the... | 30,565 |
Wooden Signs
Description:
A carpenter has received an order for a wooden directional
sign. Each board must be aligned vertically with the previous
one, either to the basis of the previous arrowhead or to the
opposite side, being fixed there with a specially designed
screw. The two boards must overlap.
... | 30,566 |
Word Cloud
Description:
A word cloud (or tag cloud) is a visual representation of
textual data based on a weighted metric. In the above cloud
(which is based on this year’s list of Mid-Central teams), the
font size of each word is based on its number of occurrences in
the data set. Tagg Johnson is a ma... | 30,567 |
Word Clouds Revisited
Description:
When we last visited with Tagg Johnson, he was developing
software to create images known as word clouds. Although we
will not consider all the details, a word cloud provides a
visual representation of textual data in which the size of the
bounding box for each word d... | 30,568 |
Word Equations
Description:
You are given a text $T$ and a pattern $P$. You want to check if you can
erase some of the letters of $T$ so that the remaining symbols
produce exactly $P$. For
example, the word programming can be partially erased
to obtain pong or program or roaming
(but not map, as th... | 30,569 |
Word Game
Description:
On the Word Game show, Ashley has selected $n$ words and asks Brandon to combine
them. Two words $s$ and
$t$ can be combined if
$s$ has a suffix of length
$k > 0$ that is a
prefix of $t$. The result
of combining them is a new word made of $s$ concatenated with the last
... | 30,570 |
Word Ladder
Description:
A Word Ladder is a puzzle in which you transform
one word into another, by changing one letter at a time. But,
there’s a catch: every word that you form in each step must be
in the dictionary! Here’s an example of how to transform
CAT into GAS:
Of course, you want to use the f... | 30,571 |
Word Ladder
Description:
You and Alice are solving word ladder puzzles. A word ladder is a sequence of words, all with the
same number of letters, where each word in the sequence differs
from the previous word by a single letter.
Because you are better at creating word ladders than at
solving them, you ha... | 30,572 |
Word Puzzle
Description:
Young Anna recently indulges in a word puzzle app on her
phone. A word puzzle is a single English word with several
blanks. Each blank represents a letter to be filled. For
example, the word “programming” may appear as a puzzle
p_o_rammin_. When solving a puzzle, Anna
first... | 30,573 |
WordSpin
Description:
Žofka invented a new word puzzle. She gives you two strings
$s_1$ and $s_2$ of the same length. You need to
modify $s_1$ into
$s_2$ as quickly as
possible. The trick is that you are allowed to modify the
strings only using the following types of moves: (1) shift
forward wh... | 30,574 |
Wordle Feedback
Description:
Wordle is a single-player word-guessing computer
game developed by Josh Wardle, and later purchased by The
New York Times. In each Wordle game instance, the player
is given six attempts to guess a secret $5\textrm{-letter}$ word. On each
attempt, the player simply enters a ... | 30,575 |
Wordle with Friends
Description:
Zoe and her friends enjoy playing Wordle1 together and have decided to work
cooperatively to solve the daily puzzle.
Wordle is a game where players get six attempts to guess a
hidden 5-letter word. With each word guessed, the system will
mark each letter with one of three ... | 30,576 |
Words for Numbers
Description:
We have two ways of writing out numeric values; we can print
them in decimal form, like 45, or we
can write them out in text, like forty-five. You are a court reporter who gets
paid by the character, so you would always prefer to write out
numbers the long way. To that en... | 30,577 |
Work Reduction
Description:
Paperwork is beginning to pile up on your desk, and tensions
at the workplace are starting to mount. Your boss has
threatened to fire you if you don’t make any progress by the
end of the day. You currently have $N$ units of paperwork on your desk,
and your boss demands that ... | 30,578 |
Workers of the World Unite! Just Not Too Close.
Description:
You are in charge of a set of workers working on a project
so top secret we can’t even think of a name for it. They are
each housed separately in a set of apartments shown on the left
in figure 1 and every morning they each leave at the same time... | 30,579 |
Working From Home
Description:
Nicole has started her own business which she runs from her
home office. While on some days she works hard, on others she
struggles to find the motivation to get back to the grind.
Fortunately, she has come up with a new system: she sets a
target to work $m$ minutes
e... | 30,580 |
Working at the Restaurant
Description:
Last night, Tom went on a date with a really nice girl.
However, he forgot to take his credit card with him and he had
no cash in his wallet, so he ended up working at the restaurant
to pay for the bill. His task is to take plates from the waiter
when he comes fro... | 30,581 |
Workout
Description:
Anton is so strong! All the programmers are in awe of his
great biceps, wishing they could be just like him. The secret,
he says, is to do a workout every single day, doing only bench
press. However, you can not just go to the gym and hope for the
best. No, to get biceps the size o... | 30,582 |
Workout for a Dumbbell
Description:
Jim Ratt has just joined a local fitness center. He’s
especially excited about a sequence of $10$ machines that he cycles through
three times for his workout. He has a fixed time which he
spends on each machine, as well as a fixed recovery time after
using a machine.... | 30,583 |
World Of 3
Description:
The Monster Hunter World games have
arrived. In your quest to become the best hunter in the land,
you have to hunt all the monsters in the land and present them
to the king, who will give you a handsome reward for your
endeavours. There are various quests to complete and monster... | 30,584 |
Worm Worries
Description:
You are looking for a place in the soil to put your pet
worm, Maximus. You limit your search to a box-shaped region
with dimensions $N \times M
\times K$ centimeters which you have divided into a
three-dimensional grid of cube-centimeter cells, labeled
$(x,y,z)$ after thei... | 30,585 |
Wormhole Extreme!!!
Description:
Brad and Joseph are planning a new science fiction series
called Wormhole Extreme!!! where explorers
journey about the galaxy by traversing wormholes. As with many
science fiction series, the laws of physics are given a
creative reinterpretation for the purpose of enter... | 30,586 |
Wormholes
Description:
A friend of yours, an inventor, has built a spaceship
recently and wants to explore space with it. During his first
voyages, he discovered that the universe is full of wormholes
created by some alien race. These wormholes allow one to travel
to places far, far away, but moreover,... | 30,587 |
Worst Weather Ever
Description:
“Man, this year has the worst weather ever!”, David said as
he sat crouched in the small cave where we had sought shelter
from yet another sudden rainstorm.
“Nuh-uh!”, Diana immediately replied in her traditional
know-it-all manner.
“Is too!”, David countered cunningly.
T... | 30,588 |
Wrapping Snowballs
Description:
Turbo Granny Alice has a spherical golden snowball (don’t
ask why it’s golden) of radius $R_{ball}$ she needs to wrap up as a
present. Unfortunately, many of the pieces of paper Alice has
are not large enough to wrap the snowball completely. Given
circular, flat, pieces ... | 30,589 |
Wrapping Trees
Description:
After last year’s spectacular failure, the Alberta Christmas
Paraphernalia Company (ACPC) is getting an early start on their
Christmas tree business this year. With all the extra time they
have to prepare, the plan is to use some algorithmic methods to
optimize their profits... | 30,590 |
X-ray spectrum
Description:
When simulating x-ray imaging different energy photons
interact differently and therefore needs to be simulated
separetly. Often one has an x-ray spectrum with thousands of
bins, so that it is impractical to do a simulation for each
bin. We want to do simulations only for a ... | 30,591 |
XOR Equation
Description:
Once there was a great general Paul who issued the following
warning:
However this time, when the aliens come, they only write
down a single line of XOR equation in the form of $a$ xor $b~ =~
c$ (here “xor” denotes the bitwise
XOR operator) with some digits hidden in question... | 30,592 |
XOR Island
Description:
On an island populated entirely with perfect logicians, each
islander is wearing a hat that displays a positive integer.
Each islander can see all other islanders’ hats, but they
cannot see their own hat. An islander has no information about
the number on their own hat, other th... | 30,593 |
XOR Sequences
Description:
Suppose you are given two integers, $m$ and $n$. You are also given a list of
$n$ distinct integers
$x_1, x_2, \ldots , x_ n$,
with $0\! \le \! x_ i\! \le \! 2^
m{-}1$. For each number $y$ from $0$ to $2^ m{-}1$, you’ve found the number
$p_ y$ such that
$x_{p_ y}$ has... | 30,594 |
XORsistinn
Description:
Gunnar the priest received a mysterious message by post
yesterday that said that one of his parishioners might be
possessed. On the back it said ,,You are our only hope
XORsist!". Gunnar was in fact a sorcerer and had great
experience in repelling spirits and demons.
He decided... | 30,595 |
XORsistinn 2
Description:
Gunnar the priest received a mysterious message by post
yesterday that said that one of his parishioners might be
possessed. On the back it said ,,You are our only hope
XORsist!". Gunnar was in fact a sorcerer and had great
experience in repelling spirits and demons.
He decid... | 30,596 |
XYZZY
Description:
ADVENT: /ad’vent/, n.
It has recently been discovered how to run open-source
software on the Y-Crate gaming device. A number of enterprising
designers have developed Advent-style games for deployment on
the Y-Crate. Your job is to test a number of these designs to
see which are winn... | 30,597 |
Xor Maximization
Description:
As you might have heard, Gunnar is an old and forgetful
researcher. Most of his research is in security and he cares a
bit too much about his own security, so for each website he has
a different password. It would be very hard for him to remember
all passwords, so for ever... | 30,598 |
Xortris
Description:
It is 1990 and you are in the development team of a video
game that is going to revolutionize the future of arcades. The
player is given a rectangular board with some white and black
squares. The goal is to turn the whole board white. At each
turn, the player may choose a tetromino... | 30,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.