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

 

相关文章:

  • 2022-12-23
  • 2022-02-22
  • 2021-10-26
  • 2021-10-14
  • 2022-02-05
  • 2022-01-10
  • 2021-12-11
  • 2021-11-19
猜你喜欢
  • 2021-10-26
  • 2022-02-09
  • 2021-10-11
  • 2021-11-13
  • 2021-06-19
  • 2021-06-13
  • 2021-11-21
相关资源
相似解决方案