| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66554 | 李明择 | 11整数的除法 | C++ | Wrong Answer | 1 MS | 272 KB | 317 | 2024-03-09 13:58:59 |
# include<iostream> # include<cmath> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b && a%b==0){ cout<<a/b; } else if(a<b && b%a==0){ cout<<b/a; } else if(a>b && a%b!=0){ cout<<a/b<<' '<<a%b; } else if(b>a && b%a!=0){ cout<<b/a<<' '<<b%a; } return 0; }
------Input------
99 33
------Answer-----
3 0
------Your output-----
3