1 条题解
-
1HLBhahaqiu LV 8 MOD @ 2020-08-29 16:58:42
#include<iostream>
using namespace std;
int num[10]={6,2,5,5,4,5,6,3,7,6};
int main()
{
int a,b,suma=0,sumb=0;
cin>>a>>b;
do
{
suma+=num[a%10];
a/=10;
}while(a);
do
{
sumb+=num[b%10];
b/=10;
}while(b);
cout<<suma-sumb;
return 0;
}
- 1