为什么90分,求助大佬们

P3926 SAC E#1 - 一道不可做题 Jelly

注意小于等于和大于等于的界限
by Erina @ 2017-10-10 13:30:58


```cpp #include<cstdio> using namespace std; int main() {long long a,c,p,q,r,x,t; scanf("%lld%lld%lld%lld%lld%lld",&a,&c,&p,&q,&r,&x); t=x; while ((a<c) && (t>=p)) {a++; t-=p;} if ((a==c) && (t>=q)) t-=q; while ((a>=c) && (t>=r)) {a++; t-=r;} printf("%d",a); return 0; } ```
by Erina @ 2017-10-10 13:32:11


可能一开始就大于c度了
by iv_vi @ 2017-10-21 19:48:14


|