首页 > [USACO 2008 Feb B]Cow Multiplication
头像 威风镰鼬
发表于 2021-06-17 18:07:42
思路 先把B拆成一个数组,然后和A的每一位相乘就能得出结果。 代码 #include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll A,B,ans=0,cnt=0,b[12]; 展开全文
头像 savage
发表于 2019-08-14 15:50:03
题目描述 Bessie is tired of multiplying pairs of numbers the usual way, so she invented her own style of multiplication. In her style, A*B is equal 展开全文