NYOJ题目96   n-1位数_代码

------------------------------

 

水题、

 

AC代码:

 1 import java.util.Scanner;
 2 
 3 public class Main {
 4 
 5     public static void main(String[] args) {
 6         
 7         Scanner sc=new Scanner(System.in);
 8         
 9         int times=Integer.parseInt(sc.nextLine());
10         while(times-->0){
11             String s=sc.nextLine();
12             int ans=Integer.parseInt(s.substring(1,s.length()));
13             System.out.println(ans);
14         }
15         
16     }
17     
18 }