Back
Close
  • 198952

What will I learn?

Solving this puzzle helps you understand how the puzzles work on CodinGame (standard input parsing, game loop, writing to the standard output).

You can discover the platform with this simple exercise of basic comparison of values and try more than 25 programming languages.

LEARN SYNTAX TIPS WITH THIS PUZZLE

Ternary Operator by Nick

External resources

ConditionsStandard streams

Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

Statement

A tutorial mission for all newcomers: your program must find which of the two targets is the closest.

A higher resolution is required to access the IDE

Story

Defend the planet with a big laser cannon from the invading insectoid alien ships.