美文网首页
CodeFoeces-495A

CodeFoeces-495A

作者: ss5smi | 来源:发表于2018-03-06 09:23 被阅读0次

题目

原题链接:A. Digital Counter

题意

给出两个数字(LED灯),问他们还有几种可能。

代码

#include<bits/stdc++.h>
using namespace std;
int main() {
    int a,b,s[10]; 
    s[0]=2,s[1]=7,s[2]=2,s[3]=3,s[4]=3,s[5]=4,s[6]=2,s[7]=5,s[8]=1,s[9]=2;
    scanf("%1d%1d",&a,&b);
    cout<<s[a]*s[b];
    return 0;
}

相关文章

  • CodeFoeces-495A

    题目 原题链接:A. Digital Counter 题意 给出两个数字(LED灯),问他们还有几种可能。 代码

网友评论

      本文标题:CodeFoeces-495A

      本文链接:https://www.haomeiwen.com/subject/tbhhfftx.html