olymmath

HMMT November 2018 U15

  • Guts
  • Answer

On a computer screen is the single character a. The computer has two keys: c (copy) and p (paste), which may be pressed in any sequence. Pressing pp increases the number of a's on screen by the number that were there the last time cc was pressed. c doesn't change the number of a's on screen. Determine the fewest number of keystrokes required to attain at least 2018 a's on screen. (Note: pressing p before the first press of c does nothing).

Dataset text NuminaMath olympiads. Quoted with source.

Show the answer

21

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Similar problems

These problems have the most words in common with this statement.

Locator hmnt/2018/u15 · Tag XSNXGN5TWH · Edit this page on GitHub · Keys: j next, k previous