Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by NguyenHuyDuc ( 6 years ago )
#include <iostream>
#include <cmath>
using namespace std;
int x1;
int x2;
int x3;
int x4;
int taxi()
{
int s;
int y1;
int y2;
int y3;
int y4;
if (x1%4==0)
y1= x1/4 ;
if (x1%4!=0)
y1= x1/4 + 1;
if (x2%2==0)
y2= x2/2 ;
if (x2%2!=0)
y2= x2/2 +1;
y3= x3;
y4= x4;
s= y1 + y2 + y3 + y4;
return s;
}
int main()
{
cin>>x1>>x2>>x3>>x4;
cout << taxi();
return 0;
}
Revise this Paste