Problem2589--函数重载

2589: 函数重载

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

函数重载(多态)指有多个同名函数,但是每个同名函数的参数数量,类型,顺序不同 写一个函数,对于字符串类型的数据,取其长度的一半; 对于浮点数类型的数据,取其值的二分之一。

Sample Input Copy

12.24
helloworld

Sample Output Copy

6.12
hello

Source/Category

函数