Saleh127

codeforces 519C.cpp

Jun 3rd, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define pi acos(-1)
  6. int main()
  7. {
  8. ll a,c,d=0,e,f,i,j,k,l;
  9. cin>>a>>c;
  10. e=(a+c)/3;
  11. d=min(a,min(c,e));
  12. cout<<d<<endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment