COMMON STOCK AND STOCK-BASED COMPENSATION - Total Stock-Based Compensation Expense (Details) - Class B Common Stock - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
May 31, 2025 |
May 31, 2024 |
May 31, 2023 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | $ 709 | $ 804 | $ 755 |
| Stock options | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | 292 | 336 | 311 |
| ESPPs | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | 69 | 69 | 72 |
| Restricted stock and restricted stock units | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | $ 348 | $ 399 | $ 372 |