import java.io.*; /** * 直接用 String 类自带的 substring 方法,注意传进去的数是 m - 1。 */ public class Main { public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); public static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); public static StreamTokenizer cin = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); public static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws Exception { cin.nextToken(); int n = (int) cin.nval; cin.nextToken(); String s = cin.sval; cin.nextToken(); int m = (int) cin.nval; s = s.substring(m - 1); cout.print(s); cout.flush(); } }
0.0分
0 人评分
汽水瓶 (C语言代码)浏览:599 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:629 |
简单的a+b (C++语言代码)浏览:855 |
最长单词 (C语言代码)浏览:1374 |
简单的a+b (C语言代码)浏览:573 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:333 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:699 |
1009题解浏览:747 |
1071题解浏览:487 |
Tom数 (C语言代码)浏览:525 |