mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
34806a93cd
2500-2599
20 lines
320 B
C++
20 lines
320 B
C++
#include <stdio.h>
|
|
int main()
|
|
{
|
|
int num,d,t;
|
|
int a[10]={0,1,2,2,4,4,6,6,10,10};
|
|
scanf("%d",&t);
|
|
while(t--)
|
|
{
|
|
d=0;
|
|
scanf("%d",&num);
|
|
while(num)
|
|
{
|
|
d=num%10;
|
|
num/=10;
|
|
}
|
|
printf("%d\n",a[d]);
|
|
}
|
|
return 0;
|
|
}
|