Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33294 黄泽远小号 【USACO】奶牛式乘法 C++ 通过 0 MS 252 KB 219 2023-12-24 14:58:47

Tests(20/20):


#include "iostream" using namespace std; int main(){ long long a,b,z=0,n,m; cin>>a>>b; m=a; while(m!=0){ n=b; while(n!=0){ z=z+(m%10)*(n%10); n=n/10; } m=m/10; } cout<<z; return 0; }


测评信息: