[CF]495A - Digital Counter
題目:
http://codeforces.com/problemset/problem/495/A
----------------------------------------------------------------------------------------------------
#include <cstdio>
int main()
{
int ara[]={2,7,2,3,3,4,2,5,1,2};
int a;
while(scanf("%d",&a)!=EOF)
printf("%d\n",ara[a%10]*ara[(a/10)%10]);
return 0;
}
http://codeforces.com/problemset/problem/495/A
----------------------------------------------------------------------------------------------------
#include <cstdio>
int main()
{
int ara[]={2,7,2,3,3,4,2,5,1,2};
int a;
while(scanf("%d",&a)!=EOF)
printf("%d\n",ara[a%10]*ara[(a/10)%10]);
return 0;
}
留言
張貼留言