734B Codeforces
Anton and Digits
Solution in c++
#include <iostream>
using namespace std;
int main()
{
int d2,d3,d5,d6;
cin>>d2>>d3>>d5>>d6;
cout<<256*min(d2,min(d5,d6))+32*min(d2-min(d2,min(d5,d6)),d3)<<"\n";
return 0;
}
My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo
My hobbies is programming ,and web development ,playing chess and writing horror stories.
0 التعليقات:
إرسال تعليق