#include <iostream>
using namespace std;
long long k=1,w,l,j=0;
int main()
{
cin >>w >>l;
while (w>0)
{
j=j+w%10*k;
k*=2;
w/=10;
}
j*=l;
cout <<j;
return 0;
}
如果對大家有幫助,請多多支持,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/297659.html
標籤:其他
下一篇:極為簡單滴迷宮游戲c++
