HILA


私信TA

用户名:hilasama

访问量:1838

签 名:

等  级
排  名 4531
经  验 1621
参赛次数 0
文章发表 9
年  龄 0
在职情况 学生
学  校 广西科技师范学院
专  业

  自我简介:

解题思路:都写在注释里了...........

注意事项:

参考代码:

public static void main(String[] args) {  

Scanner in = new Scanner(System.in);

int n = in.nextInt();      //输入字符串的长度n

String x = in.nextLine(); //清除缓冲区的字符(详情引用此博客https://blog.csdn.net/include_645829461/article/details/88045961)

String a = in.nextLine();//读取字符串

int m = in.nextInt(); //从第m个之后开始读取

if(a.length()==n) {

System.out.println(a.substring(m-1));   // 题目要求第m个开始读起,故而m-1.

}

}

}


 

0.0分

1 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区