Practice (EndingDigits,TheDivideByNineMethod,MODBasic)

back to index  |  new

Five red lines and three blue lines are drawn on a plane. Given that $x$ pairs of lines of the same color intersect and $y$ pairs of lines of different colors intersect, find the maximum possible value of $(y - x)$.

In triangle $ABC$, where $AC$ > $AB$, $M$ is the midpoint of $BC$ and $D$ is on segment $AC$ such that $DM$ is perpendicular to $BC$. Given that the areas of $MAD$ and $MBD$ are 5 and 6, respectively, compute the area of triangle $ABC$.

For how many ordered pairs $(x, y)$ of integers satisfying $0 \le x$, $y \le 10$, and $(x + y)^2 + (xy - 1)^2$ is a prime number?

A solitaire game is played with $8$ red, $9$ green, and $10$ blue cards. Totoro plays each of the cards exactly once in some order, one at a time. When he plays a card of color $c$, he gains a number of points equal to the number of cards that are not of color $c$ in his hand. Find the maximum number of points that he can obtain by the end of the game.

Find the least composite positive integer that is not divisible by any of 3, 4, and 5.

Five checkers are on the squares of an $8 \times 8$ checkerboard such that no two checkers are in the same row or the same column. How many squares on the checkerboard share neither a row nor a column with any of the five checkers?

Let the operation $x@y$ be $y - x$. Compute $((\cdots((1@2)@3)@ \cdots @2013)@2014)@2015$.

In a town, each family has either one or two children. According to a recent survey, 40% of the children in the town have a sibling. What fraction of the families in the town have two children?

Equilateral triangles $ABE$, $BCF$, $CDG$ and $DAH$ are constructed outside the unit square $ABCD$. Eliza wants to stand inside octagon $AEBFCGDH$ so that she can see every point in the octagon without being blocked by an edge. What is the area of the region in which she can stand?

Let $S$ be the string $0101010101010$. Determine the number of substrings containing an odd number of $1$'s. (A substring is defined by a pair of (not necessarily distinct) characters of the string and represents the characters between, inclusively, the two elements of the string.)

Let the positive divisors of $n$ be $d_1, d_2, \dots$ in increasing order. If $d_6 = 35$, determine the minimum possible value of $n$.

The unit squares on the coordinate plane that have four lattice point vertices are colored black orwhite, as on a chessboard, shown on the diagram below. For an ordered pair $(m, n)$, let $OXZY$ be the rectangle with vertices $O = (0, 0)$, $X = (m, 0)$, $Z = (m, n)$ and $Y = (0, n)$. How many ordered pairs $(m, n)$ of nonzero integers exist such that rectangle $OXZY$ contains exactly 32 black squares?


In triangle $ABC$, $AB = 2BC$. Given that $M$ is the midpoint of $AB$ and $\angle MCA = 60^{\circ}$, compute $\frac{CM}{AC}$ .

Nicky is studying biology and has a tank of $17$ lizards. In one day, he can either remove $5$ lizards or add $2$ lizards to his tank. What is the minimum number of days necessary for Nicky to get rid of all of the lizards from his tank?

What is the maximum number of spheres with radius 1 that can fit into a sphere with radius 2?

A positive integer $x$ is $sunny$ if $3x$ has more digits than $x$. If all sunny numbers are written in increasing order, what is the 50th number written?

Quadrilateral $ABCD$ satisfies $AB = 4$, $BC = 5$, $DA = 4$, $\angle DAB = 60^{\circ}$, and $\angle ABC = 150^{\circ}$. Find the area of $ABCD$.

Totoro wants to cut a 3 meter long bar of mixed metals into two parts with equal monetary value. The left meter is bronze, worth 10 zoty per meter, the middle meter is silver, worth 25 zoty per meter, and the right meter is gold, worth 40 zoty per meter. How far, in meters, from the left should Totoro make the cut?

If the numbers $x_1, x_2, x_3, x_4,$ and $x_5$ are a permutation of the numbers 1, 2, 3, 4, and 5, compute the maximum possible value of $|x_1 - x_2| + |x_2 - x_3| + |x_3 - x_4| + |x_4 - x_5|$.

In a $3 \times 4$ grid of 12 squares, find the number of paths from the top left corner to the bottom right corner that satisfy the following two properties: - The path passes through each square exactly once. - Consecutive squares share a side. Two paths are considered distinct if and only if the order in which the twelve squares are visited is different. For instance, in the diagram below, the two paths drawn are considered the same.


Scott, Demi, and Alex are writing a computer program that is 25 lines long. Since they are working together on one computer, only one person may type at a time. To encourage collaboration, no person can type two lines in a row, and everyone must type something. If Scott takes 10 seconds to type one line, Demi takes 15 seconds, and Alex takes 20 seconds, at least how long, in seconds, will it take them to finish the program?

A hand of four cards of the form $(c, c, c + 1, c + 1)$ is called a $tractor$. Vinjai has a deck consisting of four of each of the numbers $7$, $8$, $9$ and $10$. If Vinjai shuffles and draws four cards from his deck, compute the probability that they form a tractor.

The parabola $y = 2x^2$ is the wall of a fortress. Totoro is located at (0, 4) and fires a cannonball in a straight line at the closest point on the wall. Compute the $y$-coordinate of the point on the wall that the cannonball hits.

How many ways are there to color the squares of a 10 by 10 grid with black and white such that in each row and each column there are exactly two black squares and between the two black squares in a given row or column there are exactly 4 white squares? Two configurations that are the same under rotations or reflections are considered different.

In rectangle $ABCD$, points $E$ and $F$ are on sides $AB$ and $CD$, respectively, such that $AE = CF > AD$ and $\angle CED = 90^{\circ}$. Lines $AF$, $BF$, $CE$ and $DE$ enclose a rectangle whose area is 24% of the area of $ABCD$. Compute $\frac{BF}{CE}$ .