Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82383 sh25_shenpy 乘法运算 C++ 通过 0 MS 260 KB 660 2026-01-11 19:24:13

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; cout<<n<<endl; cout<<m<<endl; if(m/10==0){ if(n/10==0){ cout<<n*m; return 0; } else{ cout<<(n%10)*m<<endl; cout<<(n/10)*m<<endl; cout<<n*m; return 0; } } else{ if(m%10!=0){ cout<<n*(m%10)<<endl;} else{ if(n/10==0){ cout<<0<<endl; } else cout<<"00"<<endl;} cout<<n*(m/10)<<endl; cout<<n*m; return 0; } }


测评信息: