锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线看片欧美,久久久www免费人成黑人精品,日韩视频在线观看一区二区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>鐩存帴鏍規(guī)嵁浣嶈繍綆楀嵆鍙眰
              



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 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产一区清纯| 午夜精品久久久久久久久| 亚洲欧美一区二区原创| 一区二区三区免费在线观看| 欧美无砖砖区免费| 欧美专区在线播放| 免费短视频成人日韩| aa国产精品| 欧美一区二区精品| 亚洲人成亚洲人成在线观看| 一区二区三区日韩| 日韩视频二区| 午夜精品免费| 欧美中文字幕视频| 亚洲一区制服诱惑| 欧美成人激情视频| 久久精品在线| 尤物九九久久国产精品的分类| 欧美有码在线观看视频| 国产在线麻豆精品观看| 老司机午夜精品视频在线观看| 欧美阿v一级看视频| 欧美亚洲成人网| 久久综合九色九九| 国内偷自视频区视频综合| 在线免费日韩片| 亚洲日产国产精品| 国产欧美精品va在线观看| 噜噜噜躁狠狠躁狠狠精品视频| 欧美日韩性视频在线| 久久国产乱子精品免费女 | 亚洲欧美视频在线观看视频| 黄色国产精品| 亚洲欧美一区二区原创| 一区二区三区鲁丝不卡| 久久成人在线| 亚洲欧美日韩一区二区三区在线 | 99精品久久免费看蜜臀剧情介绍| 久久成人精品视频| 欧美一级在线亚洲天堂| 欧美日韩1区2区| 亚洲无吗在线| 美日韩免费视频| 欧美亚洲系列| 99re6热只有精品免费观看| 国产视频精品网| 欧美va天堂在线| 在线一区日本视频| 欧美~级网站不卡| 欧美中文字幕在线观看| 亚洲欧美清纯在线制服| 中文精品一区二区三区| 在线观看精品视频| 欧美日韩国产黄| 欧美一区亚洲| 亚洲二区在线观看| 最新日韩中文字幕| 亚洲无毛电影| 老司机67194精品线观看| 亚洲国产裸拍裸体视频在线观看乱了 | 欧美一区二区三区另类| 欧美日韩日日骚| 99riav久久精品riav| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 久久爱91午夜羞羞| 国产三级欧美三级日产三级99| 亚洲欧美电影在线观看| 久久久www| 在线观看日韩精品| 欧美1区视频| 亚洲欧洲一区二区天堂久久| 亚洲美女在线视频| 欧美视频在线观看视频极品| 亚洲天堂av图片| 欧美一区二区三区免费观看视频| 国产精品午夜在线观看| 欧美一区二区三区四区在线 | 欧美三级午夜理伦三级中文幕| 亚洲深夜福利视频| 久久久av网站| 美女久久一区| 日韩视频在线免费| 欧美在线观看一区| 亚洲二区在线| 欧美日韩亚洲在线| 午夜精品亚洲| 鲁鲁狠狠狠7777一区二区| 亚洲人成网在线播放| 国产精品久久午夜夜伦鲁鲁| 欧美呦呦网站| 亚洲精品影院| 久久婷婷国产综合精品青草| 亚洲精品自在在线观看| 国产精品大全| 噜噜噜91成人网| 亚洲一本大道在线| 欧美成人国产va精品日本一级| 中文无字幕一区二区三区| 国内精品美女在线观看| 欧美美女bb生活片| 欧美伊人影院| 夜夜爽99久久国产综合精品女不卡| 午夜精品三级视频福利| 亚洲国产一区二区三区在线播| 欧美亚州在线观看| 欧美高清视频在线 | 一本色道88久久加勒比精品| 亚洲国产专区校园欧美| 欧美在线综合| 久久精品国产99精品国产亚洲性色| 久久久久久久久岛国免费| 久久人人看视频| 在线观看视频一区二区欧美日韩| 宅男噜噜噜66一区二区| 欧美高清自拍一区| 久久夜色精品亚洲噜噜国产mv| 免费成人美女女| 久久精品二区亚洲w码| 蜜臀久久99精品久久久久久9| 国产区亚洲区欧美区| 欧美与黑人午夜性猛交久久久| 久久一区精品| 美国成人直播| 久久综合久色欧美综合狠狠 | 亚洲欧洲一区| 欧美日韩一区二区欧美激情| 国产日韩专区在线| 亚洲欧美乱综合| 亚洲网址在线| 欧美日韩一二三区| 亚洲大片免费看| 尤妮丝一区二区裸体视频| 免费不卡在线视频| 国产视频在线观看一区二区| 午夜电影亚洲| 老司机一区二区三区| 狠狠色综合网站久久久久久久| 欧美一级在线播放| 久久久女女女女999久久| 国模 一区 二区 三区| 久久精品国产99国产精品| 一本一本久久| 欧美日韩二区三区| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲国产成人久久| 国产一区二区三区在线观看视频| 亚洲在线一区二区| 久久中文字幕一区| 亚洲美女性视频| 亚洲人成毛片在线播放| 欧美国产一区二区在线观看| 亚洲第一黄网| 亚洲欧美视频一区| 国内外成人免费激情在线视频| 久久免费99精品久久久久久| 免费视频最近日韩| 亚洲一级免费视频| 欧美不卡一区| 亚洲欧美日韩天堂一区二区| 91久久精品国产91性色tv| 国产精品久久久久影院亚瑟| 久久男人av资源网站| 亚洲影院高清在线| 91久久精品网| 欧美日韩成人综合天天影院| 亚洲一区二区三区在线视频| 黄色日韩网站| 国产日韩视频| 欧美性猛交xxxx免费看久久久| 午夜精品视频在线观看一区二区 | 久久av免费一区| 亚洲久久成人| 久久久国产精品亚洲一区 | 午夜视频一区二区| 91久久久久久久久久久久久| 欧美日韩极品在线观看一区| 亚洲人成绝费网站色www| 亚洲国产裸拍裸体视频在线观看乱了中文| 欧美日韩国产免费| 国产精品xnxxcom| 欧美激情一区在线观看| 欧美日本国产在线| 欧美日韩一区二区三区在线视频| 欧美大片一区| 欧美日韩一级黄| 欧美三级小说| 亚洲精品国精品久久99热| 久久精品在线| 麻豆精品视频| 亚洲美女黄色片| 亚洲一区二区三区在线视频| 在线一区二区视频| 久久动漫亚洲| 老牛影视一区二区三区| 亚洲黄色尤物视频| 日韩一级大片| 亚洲乱码精品一二三四区日韩在线 | 91久久亚洲| 中国成人亚色综合网站| 久久爱另类一区二区小说|