Fair Value Measurements - Additional Information (Detail) - USD ($) |
12 Months Ended | ||
|---|---|---|---|
May 31, 2019 |
May 31, 2018 |
May 31, 2017 |
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
| Fair value transfers between fair value hierarchy levels | $ 0 | $ 0 | |
| Short-term Investments | |||
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
| Available-for-sale securities with maturity dates within one year from purchase date | 158,000,000 | ||
| Available-for-sale securities with maturity dates over one year and less than five years from purchase date | 39,000,000 | ||
| Interest (income) expense, net | |||
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
| Interest income related to cash and equivalents and short-term investments | $ 82,000,000 | $ 70,000,000 | $ 27,000,000 |