您的位置:首页 > 其它

NYOJ题目817英文藏头诗

2016-08-31 09:43 232 查看

----------------------------------

AC代码:

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc=new Scanner(System.in);

int n=Integer.parseInt(sc.nextLine());

StringBuilder ans=new StringBuilder(n);
while(n-->0){
ans.append(sc.nextLine().charAt(0));
}
System.out.println(ans.toString());

}

}

 

题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=817

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: