NYOJ题目817英文藏头诗
----------------------------------
AC代码:
1 import java.util.Scanner; 2 3 public class Main { 4 5 public static void main(String[] args) { 6 7 Scanner sc=new Scanner(System.in); 8 9 int n=Integer.parseInt(sc.nextLine()); 10 11 StringBuilder ans=new StringBuilder(n); 12 while(n-->0){ 13 ans.append(sc.nextLine().charAt(0)); 14 } 15 System.out.println(ans.toString()); 16 17 } 18 19 }
题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=817