task stringlengths 0 154k | __index_level_0__ int64 0 39.2k |
|---|---|
Elliptic Curve Point Multiplication
Description:
Let $p$ be a prime and
$a,b\in \mathbb {F}_p$
such that $4a^3 + 27b^2
\not\equiv 0 \pmod{p}$. Let $n \geq 0$ be an integer and
$P=(x,y)$ be a point on
the elliptic curve $E : y^2 =
x^3+ax+b$. Calcuate $nP$ given $p, a, b, x$ and $y$.
## Input
I... | 27,400 |
Elo
Description:
Players in League of Legends play against just anyone, they
can only play against others with a similar Elo score. Arnar
has made a list of $n$
players, where Arnar can play against the $i$-th player only if Arnar’s Elo is
in the interval $[L_i,
R_i]$. Every time Arnar plays agains... | 27,401 |
Emag Eht Htiw Em Pleh
Description:
This problem is a reverse case of the problem “Help Me With The Game”. You are given
the output from that problem, and your task is to find the
corresponding input.
## Input
The input follows the output specification of the problem
“Help Me With The Game”.
## Output
T... | 27,402 |
Emergency Contest Running
Description:
Löpkass is out running in the forest again. He loves running
in the forest. However, there is a programming competition
starting in a couple of hours, and he needs to calculate how
long it will take him to get home (so that he can stay in the
fresh air as long as ... | 27,403 |
Emergency Exit
Description:
Patrick wants to organize a big event in the computer rooms
at KTH. He has set up posters and sent out invitations, and it
looks like quite a large crowd of people will show up. Now
Patrick has to deal with an unexpected problem: fire safety
regulations. People must be able ... | 27,404 |
Emoticons
Description:
Emma is a college student who regularly posts messages on
her favorite social media, which supports several emoticons—a
pictorial representation of a facial expression using
characters. One day, she noticed that some emoticons in her
message were automatically converted to the co... | 27,405 |
Emptying the Baltic
Description:
First, Gunnar wants to build a floodbank connecting Denmark
and Norway to separate the Baltic from the Atlantic Ocean. The
floodbank will also help protect Nordic countries from rising
sea levels in the ocean. Next, Gunnar installs a device that
can drain the Baltic fro... | 27,406 |
Enchanted Maze
Description:
Mila and her twin brother Liam have been trapped by an evil
witch. The witch put the twins at different locations in a
maze, and they must find their way out of the maze before she
releases her pet dragon. The twins have asked you to help them
escape the maze in the least am... | 27,407 |
Enclosure
Description:
In the Dark Forest, you control some trees. The territory
you control is defined by the smallest convex shape that
contains all of the trees that you control. Your power
is defined by the area of this convex shape. You may control
trees inside the convex shape that are not on the... | 27,408 |
Encoded Coordinates
Description:
You have been monitoring a terrorist cell that is planning a
big attack somewhere close. The terrorists have been sending
encoded coordinates to each other, and you suspect that the
attack will happen at one of the locations described by these
coordinates. You have inte... | 27,409 |
Encoded Message
Description:
Alex wants to send a love poem to his girlfriend Bridget.
Unfortunately, she has a nosy friend, Ellen, who might
intercept his message and invade their privacy.
To prevent this, Alex has invented a scheme to make his
missives indecipherable to Ellen. He arranges the letters in... | 27,410 |
Endangered Safari Zone
Description:
Pichuu has just entered the Safari Zone and is amazed by all
the rare Pokemon in the Safari Zone. The Safari Zone can be
divided into different zones labelled $1$ to $N$ arranged in a line from left to
right. Using the binoculars from the viewing platform, Pichuu
was... | 27,411 |
Endgame
Description:
In a single turn a player can pick exactly one of their
pieces and perform one of the following actions:
* Perform up to two valid moves using the chosen piece,
capturing any piece that the chosen piece lands on along
the way.
* Teleport the chosen piece to any cell on the bo... | 27,412 |
Endless Knight
Description:
In the game of chess, there is a piece called the knight. A
knight is special – instead of moving in a straight line like
other pieces, it jumps in an "L" shape. Specifically, a knight
can jump from square $(r_1,
c_1)$ to $(r_2,
c_2)$ if and only if $(r_1
- r_2)^2 + ... | 27,413 |
Endless Turning
Description:
Last week your little sister celebrated her birthday, and
she was very pleased with her birthday present: a brand new
scooter! Since then several times a day she goes for a drive,
without telling anyone. She will leave the house, and go right
on the pavement along the road.... | 27,414 |
Endor
Description:
On the forest-filled moon of Endor there is, if we are to
believe the Guinness Book of Records, the longest stick in the
whole galaxy. On that stick of $L$ meters in length there are
$N$ cheerful chameleons.
Each chameleon is moving along the stick with constant speed of
$1\,
... | 27,415 |
Enduro
Description:
There is an epic enduro race taking place around the lake
Sjön sjön at LTH. The race lasts for 3 hours, and the goal is
to complete as many laps as possible within this time. Whenever
a participant passes the lap line before the end of the race,
they need to start another lap. The p... | 27,416 |
Endurvinnsla
Description:
In the country of Ekkitilistan when recycling a bag of
garbage, if the percentage of plastic in it is too low the
whole bag is incinerated to save the effort of separating the
plastic from the non-plastic items.
Certain cities in Ekkitilistan have different percentages,
for e... | 27,417 |
Enemy Division
Description:
Captain Keram has to make a difficult decision. It is year
2147 and there is a big war in the world. His soldiers have
been together since the war started, two years ago, and some of
them have become enemies. Luckily, each soldier has at most 3
enemies.
They need to attack ... | 27,418 |
Engaging with Loyal Customers
Description:
On the occasion of its $10$-year anniversary, an e-commerce
company is running a campaign to engage with their loyal
customers. They have prepared $m$ gifts, numbered from $1$ to $m$, to thank its loyal customers
where each customer will receive no more than one g... | 27,419 |
Engineering English
Description:
Engineers have taken over the university’s English
department! As part of their plan to dominate the university,
they have employed you to write their nefarious software. Their
goal is to eliminate all duplicated words from all texts in the
English department, because, ... | 27,420 |
English Restaurant
Description:
After finding a suitable residence in the Swiss Alps, Robin
thought he finally had what it takes to be happy. But every day
he woke up feeling that something was missing. Maybe it was the
lack of English food in these parts? Spotting a market
opportunity and solving his ... | 27,421 |
Enigma
Description:
The
Imitation Game is a 2014 film based in 1939 during World
War II. It follows the newly created British intelligence
agency MI6 as they employ Cambridge mathematics alumnus Alan
Turing to crack the German Enigma machine. At the time,
cryptographers everywhere believed it to be... | 27,422 |
Enigmatic Enumeration
Description:
Your friend Cajsa had a graph with $n$ vertices, and she needed to find
its shortest cycle. To do this, she just took a random sequence
of vertices and luckily this happened to be a shortest cycle.
“What are the odds?”, she asked herself and wrote another
program to c... | 27,423 |
Enjoying Elderberries
Description:
One day, a flock of hungry birds find a
huge tree of elderberries. They want to eat all berries of this
tree. These birds quickly alight on some leaves of the tree and
eat all berries at where they stand. Now they are thinking of
who will eat other berries …
Since th... | 27,424 |
Enlarging Hash Tables
Description:
When implementing an open addressing hash table, we can use
many different types of collision resolution strategies. One
such strategy is quadratic probing. If we use quadratic
probing, it’s very important that the size of the hash table is
a prime number. If it is a ... | 27,425 |
Enn Eitt EEEE Erfiði
Description:
Arnar is going mad from all these abbreviations and
shorthands at his job. Everything from DDI, i13n, o11y to
LASIK. He can’t read half a page without having to stop to look
up all kinds of acronyms. Eventually he decides to do something
about this and is going to coll... | 27,426 |
Entering the Time
Description:
You, as her friend, would prefer if she did not need to
spend her entire day resetting all her clocks. Especially since
this means she would not have any time to play with you! If
only you could construct some automated way of entering the
correct time into all the clocks... | 27,427 |
Entertaining Excursion
Description:
You have been awarded the prestigious “Employee of the Year
Award” at Theatre Software for making a big breakthrough in web
technology. In order to show her appreciation for your work,
the CEO of Theatre Software has gifted you with a conference
trip to Skyhattan Cit... | 27,428 |
Entertainment Box
Description:
Ada, Bertrand and Charles often argue over which TV shows to
watch, and to avoid some of their fights they have finally
decided to buy a video tape recorder. This fabulous, new device
can record $k$
different TV shows simultaneously, and whenever a show recorded
in on... | 27,429 |
Entirely Unsorted Sequences
Description:
You have recently been promoted to lead scientist at NASA,
the National Association for Sorting Algorithms.
Congratulations! Your primary responsibility is testing the
sorting algorithms that your team produces. Fortunately, NASA
has a large budget this year, an... | 27,430 |
Enumerating Brackets
Description:
A balanced bracket sequence is a string consisting
only of the characters “(” (opening
brackets) and “)” (closing brackets)
such that each opening bracket has a “matching” closing
bracket, and vice versa. For example, “(())()” is a balanced bracket sequence, whereas
... | 27,431 |
Envious Exponents
Description:
Alice and Bob have an integer $N$. Alice and Bob are not happy with
their integer. Last night they went to a cocktail party and
found that another couple had the exact same integer! Because
of that they are getting a new integer.
Bob wants to impress the other couple and the... | 27,432 |
EpigDanceOff
Description:
Pubnite is an epic battle royale game featuring unique
gameplay mechanics such as dancing! Every player enjoys dancing
in the middle of fierce and brutal tactical firefights.
This unique feature has made Pubnite the second most popular
game on the internet, next to none but BeeLi... | 27,433 |
Equal Shots
Description:
Your bartending skills have much improved since you joined
ScrollBar. In particular, you have learned a wide variety of
recipes for small drinks called shots. Shots are
typically mixed from different liquids containing varying
levels of alcohol. For reasons of fairness towards ... | 27,434 |
Equal Sums (Easy)
Description:
I have a set of positive integers $S$. Can you find two non-empty,
distinct subsets with the same sum?
Note: A subset is a set that contains only elements from
$S$, and two subsets are
distinct if they do not have exactly the same elements.
## Input
The first line of the i... | 27,435 |
Equality Control
Description:
In programming contest circles, one of the most important
roles is that of the Chief Equality Officer (CEO). This person
is responsible for making sure that every team has an equal
chance of winning the contest. Since last year’s NWERC the
current CEO, Gregor, has thought ... | 27,436 |
Equalizing Debt
Description:
It is common practice among your friends to buy drinks for
each other.
This all works great as long as everyone takes turns buying
drinks. However, some of your friends are being accused of
being cheap, since they haven’t paid for drinks in return. They
defend themselves s... | 27,437 |
Equations
Description:
Given $2$ linear
equations on the variables $x$ and $y$, solve for $x$ and $y$.
## Input
The first line of input contains an integer $1 \le N \le 100$, the number of test
cases. Each test case consists of two equations, each on a
separate line. An empty line separates cases.
An eq... | 27,438 |
Equestria Games
Description:
The great Equestria Games are coming!
As you know, the Equestria Games is the biggest sports event
in Equestria, where ponies from all around the land come and
compete. Of course, such a huge event requires months of
planning, lots of money, and, most importantly, kingdom-wide... | 27,439 |
Equilibrium
Description:
There are city elections in Treetopia! Treetopia, as you
should know, is a quite unique country; there is
exactly one way of travelling between every
pair of cities! Two cities are said to be neighbouring if it is
possible to travel from one to the other without visiting any
... | 27,440 |
Equilibrium Mobile
Description:
A mobile is a type of kinetic sculpture constructed to take
advantage of the principle of equilibrium. It consists of a
number of rods, from which weighted objects or further rods
hang. The objects hanging from the rods balance each other, so
that the rods remain more or... | 27,441 |
Equinumerous
Description:
## Input
The first line of input is an integer $T$, the number of puzzles in the
input file, satisfying $1\leq
T\leq 100$. Each of the next $T$ lines contain two space-separated
integers $n$, $k$, satisfying $1\leq n\leq 10^{18}$ and $2\leq k\leq 20$, where $n$ is the target sum,... | 27,442 |
Equivalent Exchange
Description:
Two brothers, who seek to increase their understanding of
alchemy, were left stranded on a deserted island by their
mentor. With no other way to survive, they try to use their
abilities to gather resources.
They’ve documented their stay over $d$ days, tracking how many of ... | 27,443 |
Erase Securely
Description:
Jon Marius is the computer expert at his company and has now
been tasked to find some software for erasing data properly. It
is very important that the data should not be recoverable
afterwards, so it should be overwritten on the hard drive
several times. Unable to find any ... | 27,444 |
Erdős Numbers
Description:
Paul Erdős (1913-1996) was a very prolific Hungarian
mathematician. He is famous for the amount of mathematics he
produced (about $1\, 475$
papers published during his lifetime), the number of
professional collaborators and coauthors he worked with (he had
$511$ coauthors... | 27,445 |
Eroding Pillars
Description:
You’ve landed yourself in a real mess, or more accurately a
cave filled with dilapidated and unstable pillars. You are
luckily standing on a solid rock in the middle of the cave. You
know there is a valuable artifact on one of the pillars in the
cave, but you aren’t sure wh... | 27,446 |
Erosion Filter
Description:
One useful tool in image processing is applying filters to
images. They can be used to remove noise, sharpen images, and
many other things.
In this problem, let’s experiment with a new custom filter
called the erosion filter. It takes in an image, then, for each
pixel, the ... | 27,447 |
Errands
Description:
You know how it is. At the end of the workday you have a lot
of errands to run. You have to drive from place to place
picking up this or dropping off that and it may take you quite
a while to get home. Naturally, you want to get these errands
done as quickly as possible, so you wan... | 27,448 |
Erratic Ants
Description:
The ants of a particular colony are in search of food.
Unfortunately hidden dangers are all around the colony which
makes foraging difficult. There are traps, obstacles, and
predators lurking about. Fortunately, the colony has the
perfect ant for the job. Max is neither a smar... | 27,449 |
Escape
Description:
You hit the emperor lich with full force and slay it.
There is a stair leading upwards here. You climb upstairs. You
drink from the pool. You feel much better. The karmic lizard
punches through your armor and hits you. You die…
After an epic fight with the emperor lich, the hero
st... | 27,450 |
Escape Plan
Description:
You are a land surveyor, and you use the latest
land-surveying technology: robotic surveyors. You have sent
your robots to survey a remote field, since it is cheaper and
easier to send them than to go yourself. You know that there
are frequent sand storms that blow through the ... | 27,451 |
Escape Routes
Description:
As the zombies start approaching your position, you and your
surviving friends are devising a plan to evacuate to the next
safe area. You know all the streets to the safe area, but don’t
yet know of any possible dangers along the way. Some of your
friends volunteer to follow ... | 27,452 |
Escape Wall Maria
Description:
Wall Maria has been broken! Eren must evacuate as soon as
possible from his house. He must find the fastest route to
escape within Wall Maria before the titans rush in. Wall Maria
is represented as a $N \times
M$ grid in which Eren can move horizontally or
vertically.... | 27,453 |
Escape from Enemy Territory
Description:
A small group of commandos has infiltrated deep into enemy
territory. They have just accomplished their mission and now
have to return to their rendezvous point. Of course they don’t
want to get caught even if the mission is already over.
Therefore they decide t... | 27,454 |
Esej
Description:
The impending doom called final examination is approaching
this year’s high school seniors: one of the compulsory tasks is
going to be writing an essay in their mother tongue. Mirko is
under the impression that certain political parties are going
to keep their promises, those regardin... | 27,455 |
Esoteric Spells
Description:
SoCCat has just learned about combination spells, which are
spells that combine two or more spells from different
spellcasters to deal more damage.
According to the Unified Theory of Magic, if there are
$k$ spellcasters casting
spells $x_1, x_2, \ldots , x_
k$ respecti... | 27,456 |
Espresso Bucks
Description:
* Each land cell must have a coffee shop directly on it,
or adjacent to it.
* No two coffee shops can be adjacent to each other.
Each land cell must have a coffee shop directly on it,
or adjacent to it.
No two coffee shops can be adjacent to each other.
Two cells are adj... | 27,457 |
Espresso!
Description:
John is a student working as a part-time barista at the
micro kitchen of his school department. He operates the
espresso machine at the kitchen to make espresso and latte for
students seeking energy to study.
Today, there are $n$
students coming to the micro kitchen to place an ... | 27,458 |
Esthetic Fences
Description:
You are given $n$ fence
parts, each colored either blue or red. Each fence part has a
length and a color. We need to build a triangular fence using
some or all of these parts. For esthetic reasons, adjacent
parts of this triangular fence have to have different colors.
W... | 27,459 |
Estimating the Area of a Circle
Description:
One way to estimate the area of a circle is to draw a square
that just encompasses the circle and mark points randomly (with
uniform probability) with a marker. Then, when you get tired of
marking points, count up the number of points that you marked
that la... | 27,460 |
Estimation
Description:
“There are too many numbers here!” your boss bellows. “How
am I supposed to make sense of all of this? Pare it down!
Estimate!”
You are disappointed. It took a lot of work to generate
those numbers. But, you’ll do what your boss asks.
You decide to estimate in the following way: Y... | 27,461 |
Eternal Embers
Description:
Chad was a firefighter, a very good one at that. Not only
was he good at extinguishing fires, he also knew the city’s
design by heart. This made him able to find the fastest route
from the fire station to anywhere else in the city quite
quickly, saving a lot of lives.
But C... | 27,462 |
Ethanol
Description:
## Input
One line with an integer $c\in
\{ 1,\ldots , 10\} $, the number of carbon atoms.
## Output
A drawing of the chemical compound in the style of the
samples. The hydroxyl group is at the rightmost carbon
atom.
**Sample Input 1**
**Sample Output 1**
```
1
```
```
H
|
H-... | 27,463 |
Euclid's Algorithm
Description:
You are given positive integers $a, b$ and should print the greatest
common divisor of $a$ and
$b$.
## Input
The first and only line of input contains positive integers
$a, b \leq 10^{18}$
separated by a space.
## Output
Print the greatest common divisor of $a$ and $... | 27,464 |
Euclid's Game
Description:
```
25 7
11 7
4 7
4 3
1 3
1 0
```
and Stan wins.
## Input
The input consists of a number of lines. Each line contains
two positive integers less than $2^{31}$ giving the starting two
numbers of the game. Stan always starts. The last... | 27,465 |
Euclidean TSP
Description:
where $n$ is the number
of nodes in the tour.
Miroslava works for a computer security company and it is
time to renew a shared cryptographic key in many data centres
across Europe. To do this, Miroslava is going to rent a private
jet and deliver the key to employees waiting ... | 27,466 |
Euler's Number
Description:
Euler’s number (you may know it better as just $e$) has a special place in
mathematics. You may have encountered $e$ in calculus or economics (for
computing compound interest), or perhaps as the base of the
natural logarithm, $\ln
{x}$, on your calculator.
While $e$ can be
... | 27,467 |
Eulerian Graphs
Description:
The seven bridges connected four different pieces of land,
all separated by rivers. The question was whether it was
possible to walk over all the bridges in a tour exactly once.
Euler solved the problem by proving that no such walk was
possible.
The problem can be generali... | 27,468 |
Eulerian Graphs 2
Description:
Your friend claims to have solved the problem Eulerian
Graphs, and to one-up you even implemented an algorithm to
supposedly find the kind of walks described! To remind you,
that problem is about determining if a directed graph contains
a walk that passes through each edg... | 27,469 |
Eulerian Path
Description:
## Input
The input consists of several test cases. Each test case
starts with a line with two non-negative integers, $2 \le n \le 10\, 000$ and
$1 \le m \le 50\, 000$,
separated by a single space, where $n$ is the numbers of nodes in the
graph and $m$ is the
number of ed... | 27,470 |
European Trip
Description:
After winning Vietlott, a woman decided to go on a trip to
Europe! Let’s refer to her as Ms.
Mask.
Like other women, Ms. Mask really
loves shopping and guess where her first stop is? Of course, it
is London, a dream land for shopaholics. She has already
discovered three ... | 27,471 |
Evacuation
Description:
A city specified by a set of districts and bridges is under
threat. Initially, each district can reach any other district
through some series of bridges.
A tornado has touched down at district $D_1$ and is destroying everything in
its way. The latest model suggests the tornado will... | 27,472 |
Evading a Monster
Description:
A monster is chasing you in a tree with $N$ vertices, labeled between
$1$ and $N$. Initially, the monster starts at
vertex $1$ and you start
at vertex $2$. Through
careful analysis of the monster’s hunting patterns you have
concluded that it will move to the (not nece... | 27,473 |
Even Electricity
Description:
A town gets all its electricity from solar power and a dam
that provides hydroelectric power. These sources of energy are
not always the most reliable, since the amount of sun and water
can vary a lot from day to day. Luckily, the dam has a large
reservoir that can store w... | 27,474 |
Even Odd Game
Description:
As every Saturday, Eve is paying her local game club a
visit. Today, Bob has brought a new game he has designed on his
own. After thorough investigation, you claim that there exists
a dominant strategy, so one player can always win. Bob is
hesitant to accept that his game is ... | 27,475 |
Even Substrings
Description:
You are given a string $s[1..n]$ consisting of the first
$6$ lowercase English
letters between a and f. A substring is called even if
every distinct letter in it appears an even number of times.
For example, in abbacac there are
$4$ even substrings:
abba, bb, acac, ... | 27,476 |
Even Up Solitaire
Description:
The Even Up Solitaire can be played with a stack of cards
each having a numerical value from 1 to 100. The cards are laid
out from left to right in a row. At every step, the player is
allowed to remove two adjacent cards if the sum of their values
is even. The gap is then... | 27,477 |
EvenOdd
Description:
Consider the following function $f(X)$, which takes a single positive
integer as argument, and returns an integer.
```
function f(X):
iterations := 0
while X is not 1:
if X is even:
divide X by 2
else:
add 1 to X
add 1 to iterations
... | 27,478 |
Evening Fika
Description:
Sara loves fika! She has just received $P$ Swedish kronor from her mom to buy
some evening fika. Since Sara is smart, she will try to spend
the money as wisely as possible. At the store Lugnbyrån, there
are $N$ pastries
available. Each pastry has a certain price and a specific... | 27,479 |
Evening Out 1
Description:
Marika has two integers $A$ and $B$. She wants $A$ to be divisible by $B$. She can pay $1$ coin to increase or decrease
$A$ by $1$. What is the minimum number of
coins she must pay?
## Input
The first and only line contains the integers $A$ and $B$ ($1
\le A, B \le 10^{18}$).
... | 27,480 |
Evening Out 2
Description:
Marika has two integers $A$ and $B$. She wants $A$ to be divisible by $B$. She can pay $1$ coin to increase or decrease
$B$ by $1$. What is the minimum number of
coins she must pay?
## Input
The first and only line contains the integers $A$ and $B$ ($1
\le A, B \le 10^{15}$).
... | 27,481 |
Evenland
Description:
The other day, Steven was driving through his country when
he noticed that, at some intersections, an odd number of roads
meet. Naturally, some roads must now be destroyed in order to
make the number of roads even at every intersection.
You are in charge of this project. You start wo... | 27,482 |
Event Planning
Description:
You have some constraints: The total cost of the trip must
be within budget, of course. All participants must stay at the
same hotel, to avoid last years catastrophe, where some members
got lost in the city, never being seen again.
## Input
The first line of input consists of ... | 27,483 |
Everything Is A Nail
Description:
As an employee of the Iffy Colossal Pinnacle Construction
(ICPC) company building a very tall skyscraper, you have a
number of tasks to complete high above the ground in a specific
order. You can always choose to skip a task, but you fear that
doing so too many times m... | 27,484 |
Evil Straw Warts Live
Description:
* swap “ad” to yield “mamda”
* swap “md” to yield “madma”
* swap “ma” to yield “madam”
swap “ad” to yield “mamda”
swap “md” to yield “madma”
swap “ma” to yield “madam”
## Input
The first line of input gives $1 \le n \le 200$, the number of test
cases. For each test case, o... | 27,485 |
Evolution in Parallel
Description:
It is 2178, and alien life has been discovered on a distant
planet. There seems to be only one species on the planet and
they do not reproduce as animals on Earth do. Even more
amazing, the genetic makeup of every single organism is
identical!
The genetic makeup of e... | 27,486 |
Evolutionary Excerpt
Description:
Being a renowned Bacteria and Protein Collector, you are
leading research into the spread of bacteria and virus
proteins. As part of this research, public locations spread
over the entire world have been swabbed for DNA samples.
The sequenced DNA samples have just come ba... | 27,487 |
Evolutions
Description:
In order to become the very best Pokenom trainer, Bash is
studying Pokenom’s evolutions.
Each Pokenom has a combat power ($CP$), indicating how strong the
Pokenom is. After certain amount of training, a Pokenom can
evolve, and the evolved Pokenom will have higher $CP$. A Pokenom ca... | 27,488 |
Evolving Etymology
Description:
Eelco has recently started to gain interest in the field
that studies the origin of words: etymology. He especially
likes how words can evolve in many different ways:
pronunciation changes over time, words are borrowed from
different languages, and the meaning of words c... | 27,489 |
Ex Officio
Description:
“I have come to the conclusion that one
useless man is called a disgrace, that two are called a law
firm, and that three or more become a Congress!” –Peter
Stone.
The bureaucracy of government is often criticized; the
frequency of fruitless meetings, the inefficiency of
di... | 27,490 |
Exact Change
Description:
* Seller: That will be fourteen dollars.
* Buyer: Here’s a twenty.
* Seller: Sorry, I don’t have any change.
* Buyer: OK, here’s a ten and a five. Keep the change.
Seller: That will be fourteen dollars.
Buyer: Here’s a twenty.
Seller: Sorry, I don’t have any change.
Buyer: OK, here’s a... | 27,491 |
Exact Change
Description:
While in Binaria, you find a store where you want to buy
some presents for your friends. In Binaria, the currency is
bits, and the coin denominations are the set of all integer
powers of $2$. You know
that you want to spend at least $a$ bits here, but no more than
$b$ bits... | 27,492 |
Exactly Electrical
Description:
You live in Grid City, which is composed of integer-numbered
streets which run east-west (parallel to the $x$-axis) and integer-numbered avenues
which run north-south (parallel to the $y$-axis). The streets and avenues
have infinite length, and there is a street for every in... | 27,493 |
Exactly Paired
Description:
Zapray recently did not have much time to finish his
homework due to his addiction to Pokemon. What is even worse,
this week’s algorithm class has assigned a very challenging
homework problem: “Given an array of integers, find the longest
consecutive sub-array so that each e... | 27,494 |
Exam
Description:
Your friend and you took the same true/false exam. You know
your answers, your friend’s answers, and the number of your
friend’s answers that were correct.
Compute the maximum possible score you could have
gotten.
## Input
The first line contains a single integer $k$, the number of cor... | 27,495 |
Exam Manipulation
Description:
A group of students is taking a True/False exam. Each
question is worth one point. You, as their teacher, want to
make your students look as good as possible—so you cheat! (I
know, you would never actually do that.) To cheat, you
manipulate the answer key so that the lowe... | 27,496 |
Exam Redistribution
Description:
Linda is giving an exam. When the exam is over, Linda will
redistribute the exams among the students for a peer review, so
they may grade each other’s answers and assign preliminary
scores.
The students are split up in several rooms of varying sizes.
Linda has devised ... | 27,497 |
Excavator Expedition
Description:
Little Nanouk is obsessed with excavators. In fact, he is so
obsessed with them that he will throw a tantrum if he doesn’t
see too many during a road trip.
This poses a problem for his mother Amka, who wants to bring
him to his grandparents today. To make the drive to his... | 27,498 |
Excellent Engineers
Description:
You are working for an agency that selects the best software
engineers from Belgium, the Netherlands and Luxembourg for
employment at various international companies. Given the very
large number of excellent software engineers these countries
have to offer, the agency h... | 27,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.