Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- #include <bitset>
- #include <iostream>
- #include <stack>
- #include <queue>
- #include <set>
- #include <map>
- #include <string>
- #include <algorithm>
- using namespace std;
- int n;
- char buf[100010];
- char buf2[100010];
- int main() {
- freopen("important.in", "r", stdin);
- freopen("important.out", "w", stdout);
- int n;
- scanf("%d\n", &n);
- cout << "Yes" << endl;
- for(int i = 0; i < n; ++i) {
- gets(buf);
- char a;
- sscanf(buf, " %s", &buf2);
- a = buf2[0];
- if (i) cout << " | " << a;
- else cout << (char)a << " | ~" << (char)a;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement