Playground/자바문제집

[백준] 9086번

미숫가루설탕많이 2023. 1. 22. 20:58
import java.util.*;
import java.io.*;

public class Main {
   public static void main(String[] args) throws IOException {
      Scanner sc = new Scanner(System.in);

      int cnt = sc.nextInt();

      for (int i = 0; i < cnt; i++) {
         String ans = sc.next();
         System.out.println("" + ans.charAt(0) + ans.charAt(ans.length() - 1));
      }
   }
}

'Playground > 자바문제집' 카테고리의 다른 글

[백준] 2475번  (0) 2023.01.22
[백준] 15964번  (0) 2023.01.22
[백준] 11718번  (0) 2023.01.22
[백준] 10809번  (0) 2023.01.22
[백준] 2754번  (0) 2023.01.22