题解 | #计算带余除法#
计算带余除法
https://ac.nowcoder.com/acm/contest/18839/1016
#include<iostream> using namespace std; int main() { int a=0; int b=0; cin>>a>>b; cout<<a/b<<" "<<a%b<<endl; return 0; }
计算带余除法
https://ac.nowcoder.com/acm/contest/18839/1016
#include<iostream> using namespace std; int main() { int a=0; int b=0; cin>>a>>b; cout<<a/b<<" "<<a%b<<endl; return 0; }
相关推荐