ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1607. Taxi

wa #4
Posted by Unfeeling 30 Jun 2013 18:12
#include <iostream>

using namespace std;

int main()
{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
        for (int i=0;a<c;i++)
        {
            a+=b;
            c=c-d;
        }
        cout<<a;
}


what's the problem??? help me please
Re: wa #4
Posted by EasonWong 10 Oct 2017 07:33
same program as me !just debug with this test data:60 100 300 1


Edited by author 10.10.2017 07:40