Watching Movies at 2x Solution || Codechef February Lunchtime 2022

      

Watching Movies at 2x Solution 

Codechef February Lunchtime 2022
Problem Code : MOVIE2X

Solution :

#include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long int
using namespace std;

void solve()
{
    ll x, y;
    cin >> x >> y;
    cout << (y / 2) + (x - y) << "\n";
}

int main()
{
    solve();
}

Comments