锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品久久久久久久97牛牛,品成人欧美大片久久国产欧美... 品成人欧美大片久久国产欧美 ,久久精品亚洲精品国产色婷http://www.shnenglu.com/luyulaile/category/11039.htmlI canzh-cnTue, 14 Jul 2009 09:38:16 GMTTue, 14 Jul 2009 09:38:16 GMT60 joj 2243 Endless Carryhttp://www.shnenglu.com/luyulaile/archive/2009/07/14/90058.htmlluisluisTue, 14 Jul 2009 09:18:00 GMThttp://www.shnenglu.com/luyulaile/archive/2009/07/14/90058.htmlhttp://www.shnenglu.com/luyulaile/comments/90058.htmlhttp://www.shnenglu.com/luyulaile/archive/2009/07/14/90058.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/90058.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/90058.html浣滀負2榪涘埗鐨勫姞娉曪紝浠巏鍔?鍙樻垚k+1鍙兘浼氬嚭鐜拌嫢騫茶繘浣嶃傚1011鍔?灝變細鏈?涓繘浣嶃傜粰瀹歯錛屼粠0寮濮嬩笉鍋滃湴鍔?鐩村埌n錛岃綆楀湪姝よ繃紼嬩腑鎬誨叡浼氭湁澶氬皯嬈¤繘浣嶃?

Input

杈撳叆鐨勬瘡涓琛屾湁鍗曠嫭鐨勪竴涓糿銆俷=0鏍囧織杈撳叆緇撴潫

Output

瀵逛簬杈撳叆鐨勬瘡涓琛岋紝浣跨敤鍗曠嫭涓琛岃緭鍑哄搴旂粨鏋溿?

Sample Input

2
5
10
0

Sample Output

1
3
8
鎬葷粨瑙勫緥錛?br>1錛?                 
2錛?                   
3錛?
4錛?
5錛?
6錛?
7錛?
8錛?
9錛?
10錛?
11錛?
12錛?0
16錛?5
32錛?1
64錛?3
浣犱細鍙戠幇2^n鐨勯兘鏄?^n-1
鍏朵粬13=8+4+1=(8-1)+(4-1)+(1-1),鏈夊灝戜釜2^n,鍒欏噺澶氬皯嬈?銆?br>鐩存帴鏍規嵁浣嶈繍綆楀嵆鍙眰
              



luis 2009-07-14 17:18 鍙戣〃璇勮
]]>
joj 2278 count the squarehttp://www.shnenglu.com/luyulaile/archive/2009/07/03/89170.htmlluisluisFri, 03 Jul 2009 08:41:00 GMThttp://www.shnenglu.com/luyulaile/archive/2009/07/03/89170.htmlhttp://www.shnenglu.com/luyulaile/comments/89170.htmlhttp://www.shnenglu.com/luyulaile/archive/2009/07/03/89170.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/89170.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/89170.htmlThere is chessboard which has N * M squares size of 1 * 1 and small squares can build up to a large one. Can you tell Mr. Guo that how many squares in the chessboard?

For Example, when N = 2 and M = 3, there are 6 squares size of 1 * 1 and 2 squares size of 2 * 2 in the chessboard, so the answer is 8.

Input

There are several lines in the input, each line consist of two positive integers N and M (1 <= N <= 100, 1 <= M <= 100) except the last line which N = 0 and M = 0 implying the end of the input and you should not process it.

Output

Please output the number of the squares for each chessboard in a single line.

Sample Input

1 1
2 3
3 3
0 0

Sample Output

1
8
14

鍚彂錛氫漢鏄庝箞綆楃殑錛屽氨璁╃▼搴忔庝箞綆楋紝涓姝ヤ竴姝ユ帹銆?br>#include<iostream>
using namespace std;
int main()
{
int n,m;
long sum=0;
int i;
while(cin>>n>>m,n)
{
if(n==m)
{
sum=n*(n+1)*(2*n+1)/6;
cout<<sum<<endl;
}
else
{
for(i=0;i<n&&i<m;i++)
sum+=(n-i)*(m-i);
cout<<sum<<endl;
}
sum=0;
}
return 0;
}

luis 2009-07-03 16:41 鍙戣〃璇勮
]]>
Round Up by Six宸у杞寲http://www.shnenglu.com/luyulaile/archive/2009/07/03/89124.htmlluisluisThu, 02 Jul 2009 16:56:00 GMThttp://www.shnenglu.com/luyulaile/archive/2009/07/03/89124.htmlhttp://www.shnenglu.com/luyulaile/comments/89124.htmlhttp://www.shnenglu.com/luyulaile/archive/2009/07/03/89124.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/89124.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/89124.html

In arithmetic we often use the scheme called 'round up by five' to round up a decimal fraction number into a decimal integer number whose fraction part equals to or is bigger than 0.5, otherwise, its fraction part is discarded.

In this problem, you are to implement a similar sheme called 'round up by six'.

Input

The first line of the input is an integer N indicating the number of cases you are to process. Then from the second line there are N lines, each containing a number (may or may not be fractional).

Output

For each number in the input, you are to print the round-up-by-six version of the number in a single line.

Sample Input

2
25.599
0.6

Sample Output

25
1
 
#include<iostream>
#include<cmath>
using namespace std;
int main()
{int n;
cin>>n;
while(n--)
{  double a;
cin>>a;
double b=floor(a);
if(a-b>=0.6)
cout<<b+1<<endl;
else
cout<<b<<endl;
}
return 0;
}


luis 2009-07-03 00:56 鍙戣〃璇勮
]]>
kmp綆楁硶瀹炵幇 鍙?kmp鏀硅繘綆楁硶鐨勫疄鐜扮瑪璁?/title><link>http://www.shnenglu.com/luyulaile/archive/2009/06/30/88890.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Tue, 30 Jun 2009 06:12:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2009/06/30/88890.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/88890.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2009/06/30/88890.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/88890.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/88890.html</trackback:ping><description><![CDATA[<div>鏈枃鏄粨鍚堝垬澶ф湁涓葷紪銆婃暟鎹粨鏋勩嬫墍鍐欑瑪璁幫紝濡傛灉鎯沖涔爇mp.鎺ㄨ崘<a >http://blog.csdn.net/china8848/archive/2008/04/29/2342243.aspx</a><br>涓嬮潰鐨勪及璁℃垜閮界湅涓嶆噦<br>#include<iostream><br>#include<cstdlib><br>#include<string><br>using namespace std;<br>int f[100];<br>void createf(string pat)//find鏁扮粍 <br>{<br> memset(f,0,sizeof(f));<br> int m=pat.size();<br> f[0]=-1;<br> for(int j=1;j<m;j++)<br> {<br>  int i=f[j-1];<br>  while(pat[j]!=pat[i+1]&&i>=0)//鍙p[j]涓巔[i+1]涓嶇瓑錛屽垯閫掓帹璁$畻i<br>  i=f[i]; <br>  if(pat[j]==pat[i+1])<br>  f[j]=i+1;<br>  else<br>  f[j]=-1;<br> }<br>}<br>/*                        宸茬煡f[13]=6;acbacbcacbacb,姹俧[14]acbacbcacbacb<u>a</u>鍒欏厛鍒ゆ柇pat[6+1]鏄惁絳変簬pat[14]錛屼笉絳?br>                                鍐嶅垽鏂?i=f[6]acbacb=3;鍒ゆ柇pat[14]pat[3+1]鐩哥瓑錛屽垯i=3<br>                           鍙緱f[j]=3+1;          <br><br>*/<br>int kmp(string pat,string str)//姹俻at鍦╯tr涓殑絎竴涓尮閰嶇殑璧風偣 <br>{<br> int p=0,s=0;<br> createf(pat); <br> int m=pat.size();<br> int n=str.size();<br> while(p<m&&s<n)<br> {<br>  if(pat[p]==str[s])<br>  {<br>   p++;s++;<br>  }<br>  else<br>  {<br>  if(p==0)s++;<br>  else<br>  p=f[p-1]+1;//s鏃犻渶鍙樺寲,涓句緥錛宎bababababba<br>/*                                                          |<br>                                                             s鎸囧悜a<br>                                                     ababb<br>//                                                           |<br>//                                                           p鎸囧悜b,s鍜宲澶遍厤<br><br>                                                    abababababba<br>//                                                          |<br>                                                            s  s涓嶅彉<br>  鐢變簬ab=ab錛屾棦f[p-1]=2               ababb<br>//     p=f[p-1]+1=3                                |<br>//                                                          p  鍥炲埌f[p-1]+1鐨勪綅緗?<br><br><br>鐩哥瓑錛屽垯s鍜宲閮藉姞1.<br>//<br>*/<br>}<br> }<br>     if(p<m)<br>     return -1;<br>     return s-m;<br>}</div> <p style="COLOR: #000000">  int main()<br>  {<br>  //freopen("s.txt","r",stdin);<br>  //freopen("key.txt","w",stdout);<br>  cout<<kmp("fgfh","abcabfgfdhsfgfhdfdfhfcdab");//榪斿洖鐨勬槸鏁扮粍涓嬫爣錛屼粠0寮濮?<br>  getchar();<br>  //system("PAUSE");<br>  return   0;<br>  }<br><br>鏀硅繘鐨刱mp<br>----------------------浠ヤ笅鏄師kmp鐢熸垚next鍊肩殑綆楁硶---------------------<br>void createf(string pat)//find鏁扮粍 <br>{<br> memset(f,0,sizeof(f));<br> int m=pat.size();<br> f[0]=-1;<br> for(int j=1;j<m;j++)<br> {<br>  int i=f[j-1];<br>  while(pat[j]!=pat[i+1]&&i>=0)//鍙p[j]涓巔[i+1]涓嶇瓑錛屽垯閫掓帹璁$畻i<br>  i=f[i]; <br>  if(pat[j]==pat[i+1])<br>  f[j]=i+1;<br>  else<br>  f[j]=-1;<br> }<br>}<br>/*                        宸茬煡f[13]=6;acbacbcacbacb,姹俧[14]acbacbcacbacb<u>a</u>鍒欏厛鍒ゆ柇pat[6+1]鏄惁絳変簬pat[14]錛屼笉絳?br>                                鍐嶅垽鏂?i=f[6]acbacb=3;鍒ゆ柇pat[14]pat[3+1]鐩哥瓑錛屽垯i=3<br>                           鍙緱f[j]=3+1;          <br><br>*/<br>-------------------浠ヤ笅榪樻槸鏈敼榪沰mp------------<br>void get_next(String T,int &next[])<br>{<br>  i=1;j=0;next[1]=0;<br>  while(i<=T.Length)<br>  {<br>    if(j==0 || T[i]==T[j]){++i;++j; next[i]=j;/**********(2)*/}<br>    else j=next[j];<br>  }<br>}<br><br>--------------------浠ヤ笅鏄敼榪涘瀷----------<br>涓婇潰鐨刦[j]鐩稿綋浜巒ext[]<br> int i,j,len,n;<br>        len=strlen(s);<br>        //KMP鏋勯?br>        i=0,j=-1;<br>        next[0]=-1;<br>        while(i<len)<br>       {<br>            if(j==-1||s[i]==s[j])<br>           {<br>                i++,j++;<br>                if(s[i]!=s[j])<br>                   next[i]=j;                                                                      <br>                else <br>                   next[i]=next[j];<br>            //    printf("next[%d]=%d\n",i,next[i]);<br>            }<br>           else j=next[j];<br>        }<br></p> <img src ="http://www.shnenglu.com/luyulaile/aggbug/88890.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2009-06-30 14:12 <a href="http://www.shnenglu.com/luyulaile/archive/2009/06/30/88890.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>joj 2344 Dissolution of Integerhttp://www.shnenglu.com/luyulaile/archive/2009/06/30/88860.htmlluisluisTue, 30 Jun 2009 02:49:00 GMThttp://www.shnenglu.com/luyulaile/archive/2009/06/30/88860.htmlhttp://www.shnenglu.com/luyulaile/comments/88860.htmlhttp://www.shnenglu.com/luyulaile/archive/2009/06/30/88860.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/88860.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/88860.html

As you known,a positive integer can be written to a form of products of several positive integers(N = x1 * x2 * x3 *.....* xm (xi!=1 (1<=i<=m))).Now, given a positive integer, please tell me how many forms of products.

Input

Input consists of several test cases.Given a positive integer N (2<=N<=200000) in every case.

Output

For each case, you should output how many forms of the products.

Sample Input

12
100
5968

Sample Output

4
9
12


#include<iostream>
#include<cstdlib>
using namespace std;

  int main()
  {
  int a[200001];
  freopen("s.txt","r",stdin);
  freopen("key.txt","w",stdout);
  int i,j,n;
  memset(a,0,sizeof(a));
  a[1]=1;
  for(i=1;i<=200000;i++)
  for(j=1;i*j<=200000;j++)
   a[i*j]+=a[j];
 while(scanf("%d",&n)!=EOF)
  printf("%d\n",a[n]/2);
  //system("PAUSE");
  return   0;
  }

鍚彂錛氱敵璇鋒暟緇勪竴瀹氳澶т竴鍙穉[200001]錛屽惁鍒欐棤娉曟竻絀篴[200000];
鍙戠幇閫掓帹瑙勫緥瑕佷粠鐗圭偣鍜屽嚭鍙戯紝涔樻硶鑷劧鏄箻娉曘?

luis 2009-06-30 10:49 鍙戣〃璇勮
]]>
88久久精品无码一区二区毛片| 91精品国产乱码久久久久久| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 91精品国产高清久久久久久io| 精品午夜久久福利大片| 亚洲国产精品一区二区三区久久| 无码专区久久综合久中文字幕| 97久久天天综合色天天综合色hd| 国产精品美女久久久久AV福利| 婷婷国产天堂久久综合五月| 成人国内精品久久久久影院| 亚洲性久久久影院| 久久精品国产99国产精品澳门| 久久天天躁夜夜躁狠狠躁2022 | 99久久精品免费看国产一区二区三区| 一本色道久久综合狠狠躁| 99久久www免费人成精品 | 中文字幕精品久久久久人妻| 久久婷婷国产麻豆91天堂| 伊人久久大香线蕉综合Av| 久久久久九国产精品| 亚洲午夜精品久久久久久人妖| 国产偷久久久精品专区| 久久无码国产| 久久久久国产视频电影| 国产日韩久久久精品影院首页| 99久久久国产精品免费无卡顿| 久久乐国产综合亚洲精品| 欧美午夜精品久久久久久浪潮| 久久WWW免费人成—看片| 99久久精品国产一区二区三区| 久久棈精品久久久久久噜噜| 久久国产色av免费看| 久久国产AVJUST麻豆| 日本精品久久久久影院日本| 热久久国产欧美一区二区精品| 久久99精品久久久久久野外 | 久久乐国产精品亚洲综合| 狠狠综合久久综合中文88| 久久精品成人免费国产片小草| 国产精品欧美久久久久无广告|