10 条题解
- 1
信息
- ID
- 308
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 6
- 标签
- 递交数
- 1536
- 已通过
- 426
- 上传者
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
cout<<n/m<<" "<<n-((n/m)*m);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y,num,sum;
cin>>x>>y;
num = x%y;
sum = x/y;
cout << sum << " " << num;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a , b;
cin >> a >> b;
cout << a / b << " " << a % b;
return 0;
}
a = input().split()
b = int(a[1])
a = int(a[0])
print(a // b , a % b)
至于吗……
#include <bits/stdc++.h> using namespace std; int m, n; int main() { cin >> m >> n; cout << m / n << " " << m % n; return 0; }
#include <iostream>//hetao3097453
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
cout << a / b << " " << a % b << endl;
return 0;
}