#include<iostream> #include<cstdio> #include<string> using namespace std; //定义数组用来预处理按动不同字母所花费的时间 int keyTable[26] = {1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4}; int main(){ string str; while(cin >> str){ int time = 0; //定义保存时间的变量 for(int i = 0; i < st...