文理学院程序设计在线练习
Online Judge
Problem Set
Authors
Contests
User
Home Page
Downloads
F.A.Q
Problems 练习题
JudgeStatus 状态
Register
Update Your Info
Ranklist 排名
Contest
Special课程相关
互动论坛
AuthorID
Password
Register
字符串输入练习 (III)
Time Limit: 1 Second(s) Memory Limit: 32 MB
Total Submission(s): 1769 Accepted Submission(s): 1042
Problem Description
输出字符串的子串。
Input
每行的开始是一个正整数k,然后是一个字符串s,k和s之间用空格分开。(k大于0且小于等于s的长度)
Output
输出从头开始的长度为k的子串。
Sample Input
2 hello world! 10 welcome to acm world
Sample Output
he welcome to
Submit
Back
Status