For an integer n, the base-14 arithmetic function, , is defined as follows:
  • Convert n to base-14, using the letters '' for digits to .
  • Replace the letters '' with the arithmetic operation symbols '', respectively.
  • Remove any leading or trailing operation symbols.
  • For consecutive operation symbols between two numeric symbols, retain only the first operation and remove all others.
  • Evaluate the resulting expression in base-10.
  • Return the evaluated expression as , rounded-off to the nearest integer.
  • Finally, output if contains only "operation symbols", or if , or if , or if .
For example if :
Therefore:
.
Given a set positive integers N, find the integer x, , such that is minimized. If there are more than one integers, x in N that minimizes , please output the largest of those x's.
For example for :
Therefore, is minimized when , for . Since we are asked to select the largest minimizer, our program output should be .

Solution Stats

7 Solutions

4 Solvers

Last Solution submitted on Jul 14, 2024

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...