Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
24300 U•ェ•*✔ 【USACO】奶牛式乘法 C++ 通过 0 MS 244 KB 221 2023-07-22 15:51:18

Tests(20/20):


#include "bits/stdc++.h" using namespace std; int main(){ long long x,y,ans=0,s=0,t=0; cin>>x>>y; while(y){ s+=y%10; //ans+=s; y/=10; } while(x){ t=x%10; ans+=s*t; x/=10; } cout<<ans; }


测评信息: