dh-winternagi 님의 블로그
(9086) 문자열 본문
https://www.acmicpc.net/problem/9086
단계별로 풀어보기
5단계(문자열) 3번째

#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--){
string s;
cin >> s;
cout << s[0] << s[s.length()-1] << "\n";
}
return 0;
}'백준 (C++) > Solve' 카테고리의 다른 글
| (11720) 숫자의 합 (0) | 2026.04.10 |
|---|---|
| (11654) 아스키 코드 (0) | 2026.04.09 |
| (2743) 단어 길이 재기 (0) | 2026.04.09 |
| (27866) 문자와 문자열 (0) | 2026.04.09 |
| (1546) 평균 (0) | 2026.04.09 |
