​a≦x≦b;​b≦y≦c;​c≦z≦d

直接让x,y取最大,让z取最小即:x=b,y=c,z=c

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while (t-- > 0) {
            int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = sc.nextInt();
            System.out.println(b +" "+ c +" " + c);
        }

    }
}