标签:
123
321
1 import java.util.Scanner; 2 public class Main { 3 public static void main(String[] args) { 4 Scanner scn=new Scanner(System.in); 5 String str=scn.next(); 6 StringBuffer sb=new StringBuffer(str); 7 str=sb.reverse().toString(); 8 str=str.replaceAll("0*(\\d+)", "$1"); 9 System.out.println(str); 10 scn.close(); 11 } 12 }
标签:
原文地址:http://www.cnblogs.com/kuangdaoyizhimei/p/4485581.html