daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ТЕГЕРЕКТӨӨ
  2. # include <bits/stdc++.h>
  3. using namespace std;
  4. main()
  5. {
  6.    long long n, k;
  7.    cin >> k >> n;
  8.    if(k <= 7){
  9.     cout << k - pow(2,k) + ceil(sqrt(pow(4,k) + pow(2,k) * n));
  10.     return 0;
  11.    }
  12.    else{
  13.     cout << k + (n + 1) / 2;//Формуласы
  14.    }
  15.  
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top