cswork / OAOpen practice workspace

Two SigmaOA #4

Calculate y/x using Patch

Estimated EasyStatement and editorial — judging is being prepared

Topics (AI-labelled)Bits & MathSimulation

Given two integers y and x, compute y /

Constraints

  • x ≠ 0
  • Use two digits after the decimal point in the returned string.

Example 1

Input:

y = 10
x = 2

Output:

"5.00"

Explanation: 10 / 2 = 5, formatted to two decimal places as 5.00.

Editorial

Loading solution…