Skip to content

Commit

Permalink
Create 628_Watching_Movie_at_2x.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rajvikash18113 committed Nov 8, 2024
1 parent e5af080 commit b77c440
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 500 to 1000 difficulty rating/628_Watching_Movie_at_2x.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// https://www.codechef.com/practice/course/logical-problems/DIFF800/problems/MOVIE2X
#include <bits/stdc++.h>
using namespace std;

int main() {
// your code goes here
int x, y;
cin >> x >> y;
cout << x - (y/2) ;
return 0;
}

0 comments on commit b77c440

Please sign in to comment.