P14375 [GeeksforGeeks] Type of input5910
普及-
题目描述

Given an input A , print the data type of the input A.
eg:-Sequence of digits -- int
Sequence of digits with a dot -- float
Sequence of chars -- string
Single non-digit char --- char

Example 1:
Input: A = "12"
Output: "int"
Explanation: The input consists only of
digits.
Example 2:
Input: A = "gfg"
Output: "string"
Explanation: The input consists only of
characters.

Your Task:
You don't need to read or print anything. Your task is to complete the function FindInputType() which takes A as input parameter and returns data type of A.

Expected Time Complexity: O(|A|)
Expected Space Complexity: O(1)

Constraints:
1 <= |A| <= 1000

输入格式

见题面

输出格式

见题面

样例输入
A = "12"
样例输出
"int"