HWOJ简单密码破解

import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        StringBuffer sb = new StringBuffer();
        for(int i=0;i='A'&&s<='Y'){
             s+=33;
             return s;
         }
         if(s=='Z'){
             s='a';
             return s;
         }
        if(s>='a'&&s<='c'){
                s='2';
        }else if(s>='d'&&s<='f'){
                s='3';
        }
         else if(s>='g'&&s<='i'){
                s='4';
        }
         else if(s>='j'&&s<='l'){
                s='5';
        }
         else if(s>='m'&&s<='o'){
                s='6';
        }
         else if(s>='p'&&s<='s'){
                s='7';
        }
         else if(s>='t'&&s<='v'){
                s='8';
        }
         else if(s>='w'&&s<='z'){
                s='9';
         }
         return s;
    }
}


你可能感兴趣的:(HWOJ简单密码破解)