Notice
Recent Posts
Recent Comments
Link
250x250
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

피너클의 it공부방

백준 11365 !밀비 급일 (c++) : 피너클 본문

백준

백준 11365 !밀비 급일 (c++) : 피너클

피너클 2022. 6. 11. 13:09
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
반응형
Comments