Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest May 28th, 2018 59 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. {
  5.     if(lewy<=prawy)/2)
  6.     {
  7.         int srodek=(lewy+prawy)/2;
  8.         if(T[srodek]==szukana) return srodek;
  9.         if(T[srodek]<szukana) return szukaj(T,srodek+1,prawy,szukana);
  10.         return szukaj(T,lewy,srodek-1,szukana);
  11.     }
  12.     return -1;
  13. }
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