피너클의 it공부방
백준 11365 !밀비 급일 (c++) : 피너클 본문
728x90
반응형
https://www.acmicpc.net/problem/11365
11365번: !밀비 급일
당신은 길을 가다가 이상한 쪽지를 발견했다. 그 쪽지에는 암호가 적혀 있었는데, 똑똑한 당신은 암호가 뒤집으면 해독된다는 것을 발견했다. 이 암호를 해독하는 프로그램을 작성하시오.
www.acmicpc.net
간단한 구현문제다.
#include <iostream>
#include <string>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string str;
while (true) {
getline(cin, str);
if (str == "END") break;
int len = str.length();
for (int i = len - 1; i >= 0; i--) cout << str[i];
cout << '\n';
}
}
전체코드다.
728x90
반응형
'백준' 카테고리의 다른 글
백준 14489 치킨 두 마리(...) (c++) : 피너클 (0) | 2022.06.13 |
---|---|
백준 14470 전자레인지 (c++) : 피너클 (0) | 2022.06.12 |
백준 7662 이중 우선순위 큐 (c++) : 피너클 (0) | 2022.06.10 |
백준 11945 뜨거운 붕어빵 (c++) : 피너클 (0) | 2022.06.10 |
백준 9466 텀 프로젝트 (c++) : 피너클 (0) | 2022.06.09 |
Comments