模拟题,按题意来模拟分糖的过程就行了。 #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,ans; cin>>a>>b>>c