피너클의 it공부방
백준 14581 팬들에게 둘러싸인 홍준 (c++) : 피너클 본문
728x90
반응형
https://www.acmicpc.net/problem/14581
14581번: 팬들에게 둘러싸인 홍준
첫 번째 줄에 홍준의 아이디를 입력받는다. 홍준의 아이디는 길이가 20 이하인 문자열이며, 알파벳 소문자, 알파벳 대문자, 숫자로만 이루어졌다.
www.acmicpc.net
간단한 구현 문제다.
#include <iostream>
#include <string>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string hong, fan = ":fan:";
cin >> hong;
cout << fan << fan << fan << endl;
cout << fan << ':' << hong << ':' << fan << endl;
cout << fan << fan << fan << endl;
}
전체코드다.
728x90
반응형
'백준' 카테고리의 다른 글
백준 15726 이칙연산 (c++) : 피너클 (0) | 2022.06.17 |
---|---|
백준 15680 연세대학교 (C++) : 피너클 (0) | 2022.06.16 |
백준 2744 대소문자 바꾸기 (c++) : 피너클 (0) | 2022.06.14 |
백준 14489 치킨 두 마리(...) (c++) : 피너클 (0) | 2022.06.13 |
백준 14470 전자레인지 (c++) : 피너클 (0) | 2022.06.12 |
Comments