Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- #include <iostream>
- #include <vector>
- #include <cmath>
- #include <algorithm>
- #include <memory.h>
- #include <map>
- #include <set>
- #include <queue>
- #include <list>
- #include <sstream>
- #include <cstring>
- #include <cassert>
- using namespace std;
- const int N = 256;
- char s[N], tmp[N];
- int main() {
- while (scanf("%[a-zA-Z]", s) != -1) {
- scanf("%[^a-zA-Z]", tmp);
- int len = strlen(s);
- reverse(s, s + len);
- printf("%s%s", s, tmp);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement