Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- //#include <string>
- //#include <vector>
- //#include <cmath>
- //#define n 3
- using namespace std;
- int main()
- {
- //ifstream cin("input.txt");
- long n, m;
- cin>>n>>m;
- if (n>m)
- cout<<m;
- else
- cout<<min(n*2, m);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement