Benefit Plans - Additional Information (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
May 31, 2019 |
May 31, 2018 |
May 31, 2017 |
|
| Deferred income taxes and other long-term liabilities | |||
| Defined Contribution Plan Disclosure [Line Items] | |||
| Deferred compensation plan liabilities | $ 647 | $ 641 | |
| Liability related to the unfunded pension plan | 73 | 70 | |
| General and Administrative Expense | |||
| Defined Contribution Plan Disclosure [Line Items] | |||
| 401(k) employee savings plans, expenses | 90 | 80 | $ 75 |
| General and Administrative Expense | Profit Sharing Plan | |||
| Defined Contribution Plan Disclosure [Line Items] | |||
| Contribution and cash award expenses included in selling and administrative expenses | 37 | 59 | 68 |
| General and Administrative Expense | Long Term Incentive Plan | |||
| Defined Contribution Plan Disclosure [Line Items] | |||
| Contribution and cash award expenses included in selling and administrative expenses | $ 83 | $ 33 | $ 21 |