ZZULIOJ 1148: Combining one of three digit numbers, Java
Question description
Combine 1, 2, 3, 4, 5, 6, 7, 8, and 9 into three 3-digit numbers. It is required to use each number only once, so that each 3-digit number is a perfect square number. Output these three three-digit numbers in order from small to large.
enter
none
output
Output these three three-digit numbers in ascending order, separated by spaces. The output occupies one line.
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
bw.write("361 529 784");
bw.close();
}
}