1 solutions
-
0
#include<iostream> #include<string> using namespace std; int num_char[] = {2, 3 ,5, 7 ,11 ,13 ,17 ,19 ,23 ,29 ,31 ,37 ,41 ,43 ,47 ,53, 59, 61 ,67 ,71 ,73, 79, 83 ,89 ,97, 101, 103 ,107,109 ,113}; int main() { string a; cin >> a; for(int i = 0; i < a.size(); i++) { cout << num_char[a[i]-'a']; } return 0; }
- 1
Information
- ID
- 9308
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 34
- Accepted
- 7
- Uploaded By