Welcome To SDIBT ACM-ICPC Online Judge

VIRTUAL JUDGE Recent Contest F.A.Qs Forum Home ProblemSet Status Ranklist Contest LoginRegister Exam
Problem 3832. -- 输出字符串中前3个字符

输出字符串中前3个字符

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 995  Solved: 546
[Submit][Status][Forum]

Description

后台已给如下代码,请补充output函数定义部分。该函数功能: 输出字符串中前3个字符

int main()
{   int n;
   char s[100];
   gets(s);
 output(s);
}
提交代码时,不需提交上述代码,只提交头文件和output函数定义部分

Input

一个字符串

Output

3个字符

Sample Input

asdfgh

Sample Output

asd

HINT

Source

[Submit][Status][Forum]

HOME Back

한국어 中文 English
All Copyright Reserved 2008-2010 SDIBT TEAM
GPL2.0 2003-2010 HUSTOJ Project TEAM
Anything about the Problems, Please Contact Admin:admin