{"id":184556,"date":"2013-06-25T16:39:07","date_gmt":"2013-06-25T12:39:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=184556"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=184556","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041a\u0430\u043a-\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0445\u043e\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0422.\u0435. \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043d\u0430\u0431\u043e\u0440 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u044b\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0432\u0441\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u042f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443-\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0447\u0438\u043a.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0427\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e<\/h5>\n<p>  \u041d\u0430\u0447\u0430\u043b \u044f \u0441 \u043c\u0430\u043b\u043e\u0433\u043e \u2014 \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u0430 <code>python 2.7<\/code> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0447\u0430\u0441\u0442\u043d\u043e\u043c\u0443 \u0434\u0435\u043b\u0438\u043c\u043e\u0435 \u0438 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c. \u041f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c. \u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435 \u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043d\u0430 \u043f\u043e\u0437\u0434\u043d\u0438\u0445 \u044d\u0442\u0430\u043f\u0430\u0445. \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u0436\u0435 \u0443\u043c\u0435\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e 0.428571428571 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u043f\u0443\u0442\u0435\u043c 3\/7.<br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b (\u0441\u043a\u043e\u0440\u0435\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432) \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u043a \u0447\u0438\u0441\u043b\u043e, \u0442\u0430\u043a \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<br \/>  \u041f\u043e\u0437\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0438\u0440\u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430, \u0447\u0442\u043e 0.785398163397 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u0438\u0437 pi\/4.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u044f 4.6:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># -*- coding: cp1251 -*- #Concatenate 3.2.py+2.3.py #========================== #\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0430\u043c\u0438 \u0447\u0438\u0441\u043b\u0430 #\u043a\u0430\u043a \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043b\u0438\u0431\u043e #\u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430. # #\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: #'sqrt(y)','exp(y)','log(y)','log10(y)','y**(1\/3)','y**2','y**3','2**y','log2(y)'  from math import * print ('For example: c=? (0.3752*sqrt(3.0)+exp(2.0))\/cos(pi\/4.0)-2.0**(-2.0)') #print ('Use 0&lt;c&lt;9802' for 'a=range(1,101)') c = float(input ('c=? ')) print 'c =',c #\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438: c1=0 if c&lt;0: #\u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438. \u0423\u0447\u0442\u0435\u043c \u044d\u0442\u043e \u0432 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0430\u0445.     c=-c     c1=-1 #========================== z=0 #\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 integer=[float(i) for i in range(1,101)] i=0 while i&lt;len(integer):     if c==integer[i]:         z=1 #\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440         print 'integer'     i+=1 #==========================  #Add 2.3.py &quot;&quot;&quot; ##all variables: ##a, b, c, d, e, j, i, f, g, h, k, l, m, n, e1, l1 ##aa, bb, cc, dd, ee, jj, ii, ff, gg, hh, kk, ll, mm, nn, ee1, ll1 ##p,q,  ##r &quot;&quot;&quot; #import math #from math import * # #Division #used variables: a, b, c, d, e, j, i, e1. (7 items) (j and i are iteration's variables) #c = float(raw_input('c=? ')) #print ('For example: c=? (0.3752*sqrt(3)+exp(2))\/cos(pi\/4)-2**(-2)') #print ('Use 0&lt;c&lt;9802' for 'a=range(1,100)') #c = input ('c=? ') a=range(1,101) #1.you may change here. 'a=change(1,l1)' or 'a=change(1,1001)' b=a = [float(i) for i in a] i=0 d=1.1 e=[] while i&lt;len(a):     j=0     while j&lt;len(b):          if abs(a[i]\/b[j]-c)&lt; d:             d=abs(a[i]\/b[j]-c)             e.append([a[i],'\/',b[j],'=',a[i]\/b[j],'Error =',d])             e1=a[i]\/b[j]         j+= 1     i+=1 &quot;print e[-1]&quot; #==================== #Complication #used variables: f, g, h, k, l, m, n, l1 (7 items) &quot;h = float(raw_input('h=? '))&quot; h=c f=a #f=range(0,101) #you may stay 'f=range(1,11)' or 'f=range(1,1001)' g=f = [float(n) for n in f] n=0 k=1.1 l=[] while n&lt;len(f):     m=0     while m&lt;len(g):          if abs(f[n]*g[m]-h)&lt; k:             k=abs(f[n]*g[m]-h)             l.append([f[n],'*',g[m],'=',f[n]*g[m],'Error =',k])             l1=f[n]*g[m]         m+= 1     n+=1 &quot;print l[-1]&quot; #================= #Addittion #added variables: aa, bb, cc, dd, ee, jj, ii, ee1 (7 items) &quot;cc = float(raw_input('cc=? '))&quot; cc=c aa=a #aa=range(0,101) #you may stay 'aa=range(1,11)' or 'aa=range(1,1001)' bb=aa = [float(ii) for ii in aa] ii=0 dd=1.1 ee=[] while ii&lt;len(aa):     jj=0     while jj&lt;len(bb):          if abs(aa[ii]+bb[jj]-cc)&lt; dd:             dd=abs(aa[ii]+bb[jj]-cc)             ee.append([aa[ii],'+',bb[jj],'=',aa[ii]+bb[jj],'Error =',dd])             ee1=aa[ii]+bb[jj]         jj+= 1     ii+=1 &quot;print ee[-1]&quot; #================= #subtraction #used variables: ff, gg, hh, kk, ll, mm, nn, ll1 (7 items) &quot;hh = float(raw_input('hh=? '))&quot; hh=c ff=a #ff=range(0,101) #you may stay 'ff=range(1,11)' or 'ff=range(1,1001)' gg=ff = [float(nn) for nn in ff] nn=0 kk=1.1 ll=[] while nn&lt;len(ff):     mm=0     while mm&lt;len(gg):          if abs(ff[nn]-gg[mm]-hh)&lt; kk:             kk=abs(ff[nn]-gg[mm]-hh)             ll.append([ff[nn],'-',gg[mm],'=',ff[nn]-gg[mm],'Error =',kk])             ll1=ff[nn]-gg[mm]         mm+= 1     nn+=1 &quot;print ll[-1]&quot; #================= #comparision. #used variables: p,q #print 'c =',c p=min(d,k,dd,kk) if p==d:     q=e[-1]     #print q if p==k:     q=l[-1]     #print q if p==dd:     q=ee[-1]     #print q if p==kk:     q=ll[-1]     #print q #print q #for 4.0: pp=p qq=q if c1==-1:     qq=['-']+qq #================================================================================= #================================================================================= #Add 3.2.py i=0 a = [float(i) for i in range(1,11)] f=[sqrt(i) for i in a]  g=[exp(i) for i in a] if c==-1:     m=[1.0\/log[i] for i in a] else:     m=[log(i) for i in a] if c==-1:     n=[1.0\/log10(i) for i in a] else:     n=[log10(i) for i in a] p=[i**(1\/3.0) for i in a] q=[i**2.0 for i in a] s=[i**3.0 for i in a] t=[2.0**i for i in a] if c==-1:     u=[1.0\/log(i,2) for i in a] else:     u=[log(i,2) for i in a] v=[(sqrt(5.0)+1.0)\/2.0,pi\/6.0,pi\/4.0,pi\/3.0,pi\/2.0,pi,pi*3\/2.0,pi*2.0,1\/3.0,1\/2.0] #v=[pi*i for i in vpi]  h=a+f+g+m+n+p+q+s+t+u+v i=0 r=10.1 while i &lt;len(h):     if c&gt;0:         if abs(c-h[i])&lt;r:             k=h[i]             b=i             r=abs(c-h[i])         i+=1 #======================================================= if z==0:     if abs(h[b]-c)&lt;=pp:         if 0&lt;=b&lt;=9:             pass             #print 'Integer'         elif 10&lt;=b&lt;=19:             print 'sqrt(y)'         elif 20&lt;=b&lt;=29:             print 'exp(y)'         elif 30&lt;=b&lt;=39:             print 'log(y)'         elif 40&lt;=b&lt;=49:             print 'log10(y)'         elif 50&lt;=b&lt;=59:             print 'y**(1\/3)'         elif 60&lt;=b&lt;=69:             print 'y**2'         elif 70&lt;=b&lt;=79:             print 'y**3'         elif 80&lt;=b&lt;=89:             print '2**y'         elif 90&lt;=b&lt;=99:             print 'log2(y)'         elif b==100:             print 'fi=(sqrt(5)+1)\/2'         elif b==101:             print 'pi\/6'         elif b==102:             print 'pi\/4'         elif b==103:             print 'pi\/3'         elif b==104:             print 'pi\/2'         elif b==105:             print 'pi'         elif b==106:             print '3*pi\/2'         elif b==107:             print '2*pi'         elif b==108:             print '1\/3'         elif b==109:             print '1\/2'                  if 0&lt;=b&lt;=9:             bb=b         elif 10&lt;=b&lt;=99:             bb=b%10         elif 100&lt;=b&lt;=1000:             bb=b%100          if not 100&lt;=b&lt;=109:             print 'y =',bb+1         if c1==-1:             print '-f(y)=','-',h[b]         else:             print 'f(y)=',h[b]         print 'Error=',abs(h[b]-c)     else:         print qq <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432\u0442\u043e\u0440\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u043e\u043d.<br \/>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430 \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 3.69314718056 \u0438\u0441\u043a\u043e\u043c\u044b\u0435 3+log(2)  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0435\u0440\u0441\u0438\u044f 5.1:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># -*- coding: cp1251 -*- #iteration 2 step from math import * #-------------- #This version have MemoryError #0 iteration c = float(input ('c=? ')) #c=1\/sqrt(2) print 'c =',c c1=1 #\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u043d\u0430\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u0435\u043d. if c&lt;0:     c=-c     c1=-1 #\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u043d\u0430\u043a\u0430 - \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439. k=10  #-1 iteration z1=range(1,11) z2=[] z2=[pi,exp(1)] z3=[] z3=[sqrt(2),sqrt(3)] z4=[] z4=[sqrt(2)\/2.0, sqrt(3)\/2.0] z5=[2**(1\/3.0),3**(1\/3.0)] if c&gt;=1:     z6=[log(2),log10(2)] else:     z6=[-log(1\/2.0),-log10(1\/2.0)] z=z1 z234=z2+z3+z4+z5+z6 if c1&gt;=1:    z2345=['pi','exp(1)','sqrt(2)','sqrt(3)','sqrt(2)\/2.0', 'sqrt(3)\/2.0', '2**(1\/3.0)','3**(1\/3.0)','log(2)','log10(2)'] else:    z2345=['pi','exp(1)','sqrt(2)','sqrt(3)','sqrt(2)\/2.0', 'sqrt(3)\/2.0', '2**(1\/3.0)','3**(1\/3.0)','-log(1\/2.0)','-log10(1\/2.0)'] #z=z1+z234 a=z #print len(a)  #0 iteration b=a = [float(i) for i in a] i=0 adivb=[] while i&lt;len(a):     j=0     while j&lt;len(b):          ab=a[i]\/b[j]         adivb.append(ab)         j+= 1     i+=1 #sqrt1=[sqrt(i) for i in a] #exp1=[sqrt(i) for i in a] #print len(adivb) #------------- #1 iteration i=0 adivb1=[] acomplb1=[] asumb1=[] asubb1=[] a1=adivb b1=z234 while i&lt;len(a1):     j=0     while j&lt;len(b1):          ab1=a1[i]\/b1[j] #div         #adivb1.append(ab1)         if abs(ab1-c)&lt;k:             k=abs(ab1-c)             q='\/'             p=j             r=i             g=[a1[i],'\/',z2345[j]] #           g=[a1[i],'\/',b1[j]]         ax1=a1[i]*b1[j] #compl         #acomplb1.append(ax1)         if abs(ax1-c)&lt;k:             k=abs(ax1-c)             q='*'             p=j             r=i             g=[a1[i],'*',z2345[j]] #           g=[a1[i],'*',b1[j]]         ay1=a1[i]+b1[j] #sum         #asumb1.append(ay1)         if abs(ay1-c)&lt;k:             k=abs(ay1-c)             q='+'             p=j             r=i             g=[a1[i],'+',z2345[j]] #           g=[a1[i],'+',b1[j]]         az1=a1[i]-b1[j] #subtraction         #asubb1.append(az1)         if abs(az1-c)&lt;k:             k=abs(az1-c)             q='-'             p=j             r=i             g=[a1[i],'-',z2345[j]] #           g=[a1[i],'-',b1[j]]         j+= 1     i+=1 #print r,k,p,z234[p] print g #----------------------- #aabb=adivb1+acomplb1+asumb1+asubb1 #print len(aabb) #------------------------- #print &quot;----------------------------&quot; &quot;&quot;&quot; i=0 k=10 while i&lt;len(aabb):     if abs(aabb[i]-c)&lt;k:         k=abs(aabb[i]-c)         kk=i     i+=1 #print 'c = ',c #print 'index =',kk #print '\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 =',aabb[kk] #print 'k =',k #error   if kk&gt;9:     bb=(kk)%10  if 0&lt;=kk&lt;=9:     print '1','\/',kk+1 elif 10&lt;=kk&lt;=19:     print '2','\/',bb+1 elif 20&lt;=kk&lt;=29:     print '3','\/',bb+1 elif 30&lt;=kk&lt;=39:     print '4','\/',bb+1 elif 40&lt;=kk&lt;=49:     print '5','\/',bb+1 elif 50&lt;=kk&lt;=59:     print '6','\/',bb+1 elif 60&lt;=kk&lt;=69:     print '7','\/',bb+1 elif 70&lt;=kk&lt;=79:     print '8','\/',bb+1 elif 80&lt;=kk&lt;=89:     print '9','\/',bb+1 elif 90&lt;=kk&lt;=99:     print '10','\/',bb+1 &quot;&quot;&quot; #------- #if c1&gt;=1: #   z234=[pi,exp(1),sqrt(2),sqrt(3),sqrt(2)\/2.0, sqrt(3)\/2.0, 2**(1\/3.0),3**(1\/3.0),log(2),log10(2)] #else: #   z234=[pi,exp(1),sqrt(2),sqrt(3),sqrt(2)\/2.0, sqrt(3)\/2.0, 2**(1\/3.0),3**(1\/3.0),-log(1\/2.0),-log10(1\/2.0)]  &quot;&quot;&quot; #1 iteration if kk&gt;99:     bb=(kk)%100 if 0&lt;=kk&lt;=99:     pass elif 100&lt;=kk&lt;=199:     print '1','\/','(','1','\/',kk+1,')' elif 200&lt;=kk&lt;=299:     print '1','\/','(','2','\/',bb+1,')' elif 300&lt;=kk&lt;=399:     print '1','\/','(','3','\/',bb+1,')' elif 400&lt;=kk&lt;=499:     print '1','\/','(','4','\/',bb+1,')' elif 500&lt;=kk&lt;=599:     print '1','\/','(','5','\/',bb+1,')' elif 600&lt;=kk&lt;=690:     print '1','\/','(','6','\/',bb+1,')' elif 700&lt;=kk&lt;=799:     print '1','\/','(','7','\/',bb+1,')' elif 800&lt;=kk&lt;=899:     print '1','\/','(','8','\/',bb+1,')' elif 900&lt;=kk&lt;=999:     print '1','\/','(','9','\/',bb+1,')' elif 1000&lt;=kk&lt;=1099:     print '1','\/','(','9','\/',bb+1,')' &quot;&quot;&quot;  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043d\u0430 3-\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0438\u0442\u043e\u043d\u0430 \u0443\u0436\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 10.007106781 \u0438\u0441\u043a\u043e\u043c\u044b\u0435 3+sqrt(2)*5 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f. \u041e\u043d\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0443\u0434\u0435\u0441 \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442.<\/p>\n<h5>\u0427\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e<\/h5>\n<p>  1.\u0421\u0435\u0440\u0432\u0438\u0441 \u043d\u0435 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<br \/>  2.\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0442\u044c \u043b\u0438\u043c\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 2 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. <br \/>  3.\u0414\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u0430\u043c\u043e\u043c\u0443 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430 \u2014 \u0442.\u0435. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0435\u0441\u043b\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u0434\u0430\u043d\u043e 6 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0442\u043e \u043d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0438\u0440\u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438. <br \/>  (\u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u044d\u0442\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u2014 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0431\u0449\u0438\u0435 \u0437\u043d\u0430\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u0434\u043b\u0438\u043d\u044b \u0438 \u0448\u0438\u0440\u0438\u043d\u044b \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u043d\u0430\u0442\u044c \u043e \u0443\u0434\u0432\u043e\u0435\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0430. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430-\u0436\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u043d\u0430\u0442\u044c \u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442. \u041b\u0438\u0431\u043e \u043e\u043f\u044f\u0442\u044c-\u0442\u0430\u043a\u0438 \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0430\u0431\u043e\u0440 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442 1 \u0434\u043e 10 \u043f\u043b\u044e\u0441 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0438\u0440\u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.) <br \/>  4.\u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0432\u0441\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u043e\u043d \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439. \u0425\u043e\u0442\u044f \u0442\u0443\u0442 \u0443\u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0430 \u043d\u0435 \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435-\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0447\u0438\u043a\u0443.<\/p>\n<h5>\u0413\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c<\/h5>\n<p>  1.\u041f\u0440\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435, \u0444\u0438\u0437\u0438\u043a\u0435.<br \/>  2.\u0422\u0430\u043c, \u0433\u0434\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0432\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0438 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  \u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043a \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c: <br \/>  1.\u0411\u0443\u0434\u0435\u0442\u0435 \u043b\u0438 \u0432\u044b \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u044b)?<br \/>  2.\u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438?<br \/>  3.\u0417\u043d\u0430\u0435\u0442\u0435 \u043b\u0438 \u0432\u044b \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b?<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e29\/5f4\/37a\/e295f437aad570c40087b5a9f79c02b1.jpg\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/9a5\/b55\/e7e\/9a5b55e7ece3d75c8929da560746f4ec.jpg\" alt=\"image\"\/> \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/184556\/\"> http:\/\/habrahabr.ru\/post\/184556\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041a\u0430\u043a-\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0445\u043e\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0422.\u0435. \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043d\u0430\u0431\u043e\u0440 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u044b\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0432\u0441\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u042f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443-\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0447\u0438\u043a.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-184556","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184556"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184556\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}