XML 39 R28.htm IDEA: XBRL DOCUMENT v3.8.0.1
Summary of Significant Accounting Policies (Detail) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Nov. 30, 2017
Nov. 30, 2017
Nov. 30, 2016
New Accounting Pronouncements or Change in Accounting Principle [Line Items]      
Excess tax benefit, amount $ 34 $ 122  
Cash inflow (outflow) from operations   1,898 $ 1,770
Cash inflow (outflow) from financing activities   $ (1,214) (766)
Accounting Standard Update 2016-09, Excess Tax Benefit Component      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]      
Cash inflow (outflow) from operations     78
Cash inflow (outflow) from financing activities     (78)
Accounting Standard Update 2016-09, Statutory Tax Withholding Component      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]      
Cash inflow (outflow) from operations     8
Cash inflow (outflow) from financing activities     $ (8)