666

liujiayu 2024-10-02 15:28:15 3

#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int len=s.size(); int a[105]; a[0]=s[0]-'a'+1; for(int i=1;i<=len-1;i++){ a[i]=a[i-1]*(s[i]-'a'+1)%10007; } cout<<a[len-1]; return 0; }

{{ vote && vote.total.up }}