Fork me on GitHub

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 }

 

题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=96

posted @ 2016-09-21 03:11  CC11001100  阅读(213)  评论(0编辑  收藏  举报