k = 2分为四张子图

image-20221206142311826image-20221206142332405image-20221206142356624image-20221206142419428

分别求max-min

image-20221206142449149image-20221206142505702

image-20221206142519696image-20221206142529628

比对

image-20221206142819898