#851. [基础]判断类型占内存的字节数2

[基础]判断类型占内存的字节数2

No submission language available for this problem.

Background

Special for beginners, ^_^

Description

将会有 n 个类型名,类型名包含如下

short,int,long long,float,double,char

按顺序输出对应的类型占内存的字节数

Format

Input

第一行一个整数 n,表示将会有 n 个类型输入

从第二行开始的 n 行,每行一个类型名

Output

输出有 n 行,每行一个整数表示对应的类型占字节的大小

Samples

1
short
2
4
char
int
long long
float
1
4
8
4

Explain

Sample2:4 个类型,分别表示从上往下的类型 1 字节,4字节,8 字节,4 字节

Limitation

n <= 20

1s, 1024KiB for each test case.