赞
踩
模拟,注意取模操作和“/”,c和c++/均向下取整
#include<stdio.h> int n,m; int main(){ scanf("%d%d",&m,&n); printf("%d %d\n",m/n,m%n); return 0; }