Skip to main content
added 89 characters in body
Source Link
l4m2
  • 33.9k
  • 13
  • 14

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings or golden leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial. (Likely chosen, x=>x+'' is invalid e.g. there're 128 leggings recipe but only 4 types)
  • Minimize len(code)+introduced item count.

To decide

  • Shapeless crafting handle (maybe would force on left-top)

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings or golden leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial.
  • Minimize len(code)+introduced item count.

To decide

  • Shapeless crafting handle (maybe would force on left-top)

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings or golden leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial. (Likely chosen, x=>x+'' is invalid e.g. there're 128 leggings recipe but only 4 types)
  • Minimize len(code)+introduced item count.

To decide

  • Shapeless crafting handle (maybe would force on left-top)
added 132 characters in body
Source Link
l4m2
  • 33.9k
  • 13
  • 14

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings or golden leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial.
  • Minimize len(code)+introduced item count.

To decide

  • Shapeless crafting handle (maybe would force on left-top)

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial.
  • Minimize len(code)+introduced item count.

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings or golden leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial.
  • Minimize len(code)+introduced item count.

To decide

  • Shapeless crafting handle (maybe would force on left-top)
Source Link
l4m2
  • 33.9k
  • 13
  • 14

Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.

Output: an ID. Same item has same ID and different item has different ID.

Example Input:

OOO OOO OOO
OOO OOO OOO
OOO OOO OOO

OOO     OOO
OOO  X  OOO
OOO     OOO

OOO     ...
OOO  X  ..O
OOO     ...

Example Output:

Your ID representing iron leggings.


Scoring

  • Shortest code wins. Is only a choice if this doesn't make question trivial.
  • Minimize len(code)+introduced item count.