题解 | #完美成绩#
字符圣诞树
http://www.nowcoder.com/practice/0fae60c3b5c64699b7c0f031c2187dde
import java.util.*;
//感谢中南小菜
public class Main{
public static void main(String []args){
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
for(int i=5;i>0;i--){
System.out.println(String.join("",Collections.nCopies(i-1," "))
+String.join(" ",Collections.nCopies(5-i+1,s)));
}
}
}