Accrued Expenses and Other Current Liabilities - Schedule of Accrued Expenses and Other Current Liabilities (Detail) - USD ($) $ in Thousands |
May 31, 2026 |
May 31, 2025 |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Accelerated Share Repurchases [Line Items] | ||||||||||||||||
| Accrued payroll | $ 485,363 | $ 421,746 | ||||||||||||||
| Refund liability (a) | [1] | 206,173 | 181,417 | |||||||||||||
| Payable for purchase of property and equipment | 58,279 | 52,004 | ||||||||||||||
| Accrued advertising fees | 33,413 | 24,453 | ||||||||||||||
| Amounts reimbursable to employees (b) | [2] | 31,809 | 23,615 | |||||||||||||
| Advance payment from students (c) | [3] | 22,174 | 21,768 | |||||||||||||
| VAT payable | 16,076 | 17,987 | ||||||||||||||
| Payment to merchant (d) | [4] | 16,761 | 14,558 | |||||||||||||
| Welfare payable | 17,260 | 12,574 | ||||||||||||||
| Refundable deposits (e) | [5] | 8,412 | 7,949 | |||||||||||||
| Royalty fees payable (f) | [6] | 6,707 | 6,844 | |||||||||||||
| Rent payable | 3,114 | 4,393 | ||||||||||||||
| Other taxes payable | 2,922 | 3,956 | ||||||||||||||
| Accrued professional service fees | 2,709 | 1,902 | ||||||||||||||
| Payable for investments and acquisitions | 605 | 567 | ||||||||||||||
| Others (g) | [7] | 25,972 | 34,850 | |||||||||||||
| Total | $ 937,749 | $ 830,583 | ||||||||||||||
| ||||||||||||||||