|
|
back to boardDiscussion of Problem 1607. Taxiwhy WA#4 Here's my code: #include <cstdio> using namespace std; unsigned long long int a,b,c,d,s,h; int main() {
//Read Data scanf("%d%d%d%d",&a,&b,&c,&d);
//Calculate s=c-a; s/=b+d; a+=s*b; c-=s*d; if (c-a>=b) a+=b;
//Write Data printf("%d\n",a);
//End return 0; } * Posted by Брэнд 9 Mar 2008 16:37 2 1 1 1 Answer 2. Re: * Posted by esger 26 Mar 2008 18:22 it works correctly |
|
|