[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;
}

留言

這個網誌中的熱門文章

[ZJ]b513: 判斷質數-商競103

[ZJ]d212: 東東爬階梯