Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82382 sh25_shenpy 乘法运算 C++ 编译错误 0 MS 0 KB 659 2026-01-11 19:23:49

Tests(0/0):


#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; } }


测评信息: