题目:分跳绳
问题描述:学校新买来m根跳绳,每个班分n根,最多可以分给几个班的同学?还剩多少根?
输入&输出:
接下来,直接献上代码:(C++)
#include <iostream>
using namespace std;
int main() {
int m,n;
cin>>m>>n;
cout<<m/n<<" "<<m%n;
return 0;
}
记得点赞+关注哟!
标签:班分,cout,1311,跳绳,namespace,int,include From: https://blog.csdn.net/Darwin1216/article/details/137430099