1 条题解

  • 0
    @ 2025-2-8 13:27:27
    #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

    信息

    ID
    9308
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    34
    已通过
    7
    上传者