Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- ifstream fin("a1z26.in");
- ofstream fout("a1z26.out");
- int main()
- {
- int p, n, nr, i;
- fin>>p;
- if(p==1)
- {
- char c;
- while(fin>>c)
- {
- int x=c;
- fout<<x-64<<' ';
- }
- }
- else
- {
- fin>>n;
- for(i=1; i<=n; i++)
- {
- fin>>nr;
- fout<<char(nr+64);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement