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

相关文章:

  • 2021-07-03
  • 2021-11-10
  • 2021-05-28
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-07-18
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-06-25
  • 2021-08-15
  • 2022-02-05
  • 2021-10-14
  • 2021-08-31
相关资源
相似解决方案