728x90
s = input()
print(s[::-1])
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int cnt = 1;
for(int i = 1; i <=n; i++){
int j = i;
while(cnt<=n){
cout<<j<<" ";
j+=n;
cnt++;
}
cnt = 1;
cout<<endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
cout<<"00000001"<<endl<<"00000012"<<endl<<"00000123"<<endl<<"00001234"<<endl<<"00012345";
return 0;
}
728x90
'Algorithm > goorm' 카테고리의 다른 글
goorm 완전수, 부분문자열, 대소문자 바꾸어 출력하기 (0) | 2020.08.26 |
---|---|
goorm 뱀이 지나간 자리, 피보나치 수열, 소수의 개수 구하기 (0) | 2020.08.25 |
goorm 헷갈리는 작대기, 피라미드, ASCII 코드 (0) | 2020.08.22 |
goorm 절대값, 특정 문자 개수 구하기, 16 진수 (0) | 2020.08.19 |
goorm 공백 없애기, 계산기, 삼각형의 넓이 (0) | 2020.08.19 |