第四题(https://ac.nowcoder.com/acm/contest/67238/D)

思路 第四题单纯就是判断平均分配的数量和剩下的数量孰大孰小,用if语句分别输出即可 代码

#include<iostream>
using namespace std;
int main(){
 long long a=1,b=1;
    cin>>a;
    cin>>b;
    if(a/b>a%b){
     cout<<"niuniu eats less than others";   
}
    if(a/b<a%b){
      cout<<"niuniu eats more than others";  
}
    if(a/b==a%b){
        cout<<"same";
}
}