Discount

AtCoder
IDabc193_a
Time2000ms
Memory256MB
Difficulty
A shop sells a product whose regular price is $A$ yen (Japanese currency) for $B$ yen. By what percentage of the regular price is this product discounted? ## Constraints * $A$ and $B$ are integers. * $1 ≤ B < A ≤ 10^5$ ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
100 80
Output #1
20.0

If a product whose regular price is $100$ yen is sold for $80$ yen, it is discounted by $20$ percent of the regular price.
Input #2
7 6
Output #2
14.285714285714285714
Input #3
99999 99998
Output #3
0.00100001000010000100
API Response (JSON)
{
  "problem": {
    "name": "Discount",
    "description": {
      "content": "A shop sells a product whose regular price is $A$ yen (Japanese currency) for $B$ yen. By what percentage of the regular price is this product discounted?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc193_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "A shop sells a product whose regular price is $A$ yen (Japanese currency) for $B$ yen. By what percentage of the regular price is this product discounted?\n\n## Constraints\n\n*   $A$ and $B$ are integers...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments