suí​shí​zhì​yí

to adapt to the situation