注意:C++代码,非C++选手无需继续看。
警示后人 Warning!:
注意先把 xxx 或者 yyy 转成 double 类型然后在用 floor 函数求结果,示例代码(请勿抄袭):
double
floor
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; cout<<floor(double(x)/y); return 0; }