We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806fc69 commit de07fefCopy full SHA for de07fef
第2章暴力破解/2.2模拟/3.其他模拟/2-10手机键盘.cpp
@@ -14,6 +14,7 @@ int main() {
14
char temp;
15
for(int i=0; i<str.size(); i++) {
16
time+=keytab[str[i]-'a'];
17
+ //按键差值等于字母差值则在一个按键上
18
if(i>0&&(str[i]-temp)==(keytab[str[i]-'a']-keytab[temp-'a'])) {
19
time+=2;
20
}
0 commit comments