機略縦横(きりゃくじゅうおう)

Japanese vocabulary

Meaning: very resourcefully using tactics adapting oneself to the requirements of the moment; playing it by ear; acting according to circumstances

See it used in real works