●利用split函数: String s = new String("2_8_7_4_3_9_1"); String[] arr = s.split("_"); ●利用StringTokenizer类: String s = new String("2_8_7_4_3_9_1"); StringTokenizer commaToker = new StringTokenizer(
3725573269 #include<iostream>#include<map>#include<string>using namespace std;int main(){map<char, int> mp;string s = "LANQIAO";long long ans = 0, power = 1;//7位数的26进制可能会超过int范围for(int i = 1; i