Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
624 B
1
Indexable
#include <bits/stdc++.h>
#include <ctime>
#include <cstdlib>
#include<cmath>

using namespace std;

int main()
{
    int a, b, c, randomnumber; 
    srand(time(0));
    cin >> a >> b >> c; 
    randomnumber = 1+ (rand() % 5) ; 
    cout << "RandomNumber: " <<randomnumber<< endl; 
    cout << "Optimal Value Meemaseed : " << floor(0.1*a + 0.9*c + randomnumber) << endl ;
    cout << "Model Value Meemaseed : " << floor(0.1*a + 0.9*c) << endl;
    cout << "Optimal Value Vussanut : "<< floor(0.15 * a + 0.55 * b - 0.3 * c + randomnumber)<< endl;
    cout << "Model Value Vussanut : "<< floor(0.15 * a + 0.55 * b - 0.3 *c );
}