Stock-based Compensation - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended |
Apr. 30, 2019 |
Apr. 30, 2018 |
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Total stock-based compensation |
$ 16,460
|
$ 14,195
|
| Closing price of ordinary shares |
$ 50.12
|
|
| Accrued and other current liabilities [Member] |
|
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Total stock-based compensation |
$ 1,000
|
|
| Stock options [Member] |
|
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Total unrecognized compensation cost, stock options |
$ 4,300
|
|
| Weighted average recognition period |
2 years 7 months 13 days
|
|
| Restricted stock units [Member] |
|
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Total unrecognized compensation cost, restricted stock units |
$ 110,300
|
|
| Weighted average recognition period |
2 years 6 months 25 days
|
|
| Restricted Stock Awards [Member] |
|
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Weighted average recognition period |
3 months 14 days
|
|
| Total unrecognized compensation cost, restricted stock awards |
$ 600
|
|
| Restricted Stock and Restricted Stock Units [Member] |
|
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] |
|
|
| Aggregate intrinsic value of unvested restricted stock and restricted stock units |
$ 127,000
|
|