锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产日产亚洲精品,国产欧美一区二区精品忘忧草,国产日本欧美一区二区http://m.shnenglu.com/wing/category/14709.html騫哥鐨勯緲斺斺旂畝鍗曚笘鐣?/description>zh-cnTue, 14 Sep 2010 07:20:20 GMTTue, 14 Sep 2010 07:20:20 GMT60HDU 1061http://m.shnenglu.com/wing/archive/2010/09/11/126424.html闆粵渚濇ⅵ闆粵渚濇ⅵSat, 11 Sep 2010 14:00:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/11/126424.htmlhttp://m.shnenglu.com/wing/comments/126424.htmlhttp://m.shnenglu.com/wing/archive/2010/09/11/126424.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126424.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126424.html//瑙i鎬濊礬錛氭眰涓涓暟鏈鍙寵竟鐨勪竴浣嶆暟錛屽嵆%10錛?br>//鏁咃細N^N 鐨勬渶鍙寵竟鐨勪竴浣嶆暟鏄? N^N ) % 10,鏍規嵁鍚屼綑瀹氱悊= (N % 10)^N
//閫氳繃瑙傚療鐢?nbsp;1 - 9鐨?nbsp;N 嬈″箓瀹規槗鎵懼嚭鐩稿簲鐨勮寰?
#include <iostream>
#
include <algorithm>
using namespace std;
#include <stdlib.h>

int main ()
{
    int t;
    scanf (
"%d"&t);
    
while ( t -- )
    {
          int n, a;
          scanf (
"%d"&n);
          a 
= n % 10;
          
          
if ( a == 0 )
          printf (
"%d\n", 0);
          
          
else if ( a == 1 )
          printf (
"%d\n"1);
          
          
else if ( a == 5 )
          printf (
"%d\n"5);
          
          
else if ( a == 6 )
          printf (
"%d\n"6);
          
          
else if ( a == 2 )
          {
               
if ( n % 4 == 0 )
               printf (
"%d\n"6);
               
               
else if ( n % 4 == 1 )
               printf (
"%d\n"2);
               
               
else if ( n % 4 == 2 )
               printf (
"%d\n"4);
               
               
else if ( n % 4 == 3 )
               printf (
"%d\n"8);
          }
          
          
else if ( a == 3 )
          {
               
if ( n % 4 == 0 )
               printf (
"%d\n"1);
               
               
else if ( n % 4 == 1 )
               printf (
"%d\n"3);
               
               
else if ( n % 4 == 2 )
               printf (
"%d\n"9);
               
               
else if ( n % 4 == 3 )
               printf (
"%d\n"7);
          }
          
          
else if ( a == 4 )
          {
               
if ( n % 2 == 0 )
               printf (
"%d\n"6);
               
               
else if ( n % 2 == 1 )
               printf (
"%d\n"4);
          }
          
          
else if ( a == 7 )
          {
               
if ( n % 4 == 0 )
               printf (
"%d\n"1);
               
               
else if ( n % 4 == 1 )
               printf (
"%d\n"7);
               
               
else if ( n % 4 == 2 )
               printf (
"%d\n"9);
               
               
else if ( n % 4 == 3 )
               printf (
"%d\n"3);
          }
          
          
else if ( a == 8 )
          {
               
if ( n % 4 == 0 )
               printf (
"%d\n"6);
               
               
else if ( n % 4 == 1 )
               printf (
"%d\n"8);
               
               
else if ( n % 4 == 2 )
               printf (
"%d\n"4);
               
               
else if ( n % 4 == 3 )
               printf (
"%d\n"2);
          }
          
          
else if ( a == 9 )
          {
               
if ( n % 2 == 0 )
               printf (
"%d\n"1);
               
               
else if ( n % 2 == 1 )
               printf (
"%d\n"9);
          }
    }
   system (
"pause");
   
return 0;
}


]]>
HDU 1058http://m.shnenglu.com/wing/archive/2010/09/11/126420.html闆粵渚濇ⅵ闆粵渚濇ⅵSat, 11 Sep 2010 12:56:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/11/126420.htmlhttp://m.shnenglu.com/wing/comments/126420.htmlhttp://m.shnenglu.com/wing/archive/2010/09/11/126420.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126420.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126420.html//閲嶅湪鐞嗚В鏂規硶錛氭瘡嬈℃壘鍒版渶灝忕殑 2 3 5  7 鐨勫洜瀛愭暟錛屼箣鍚庡埄鐢ㄦ墍瀛樻暟鐨勪笅鏍囩殑鍏崇郴鏀瑰彉 
#include <iostream>
using namespace std;

int num[5843];  //瀛樺偍鍓?842涓笐鏁?nbsp;

int find_min ( int a, int b, int c, int d )
{
    int temp = a < b ? a : b;
    int index = c < d ? c : d;
    return temp < index ? temp : index;
}

void solve ( )
{
     int i1, i2, i3, i4, i;
     int h1, h2, h3, h4;
     i1 = i2 = i3 = i4 = 1;
     num[1] = 1;
     for (i = 2; i < 5843; i ++ )
     {
         h1 = num[i1] * 2;                   
         h2 = num[i2] * 3; 
         h3 = num[i3] * 5;
         h4 = num[i4] * 7;
         int min = find_min ( h1, h2, h3, h4 );
         
         num[i] = min;
         
         
         //鏄撻敊鐐癸細榪欓噷涓嶅彲浠ョ敤else if 鍥犱負ti涓彲鑳戒細鏈夌浉鍚岀殑鏈灝忓鹼紝濡傚綋錛歮in = 6 鏃?nbsp;
         if ( min == h1 )
         i1 ++;
         
         if ( min == h2 )
         i2 ++;
         
         if ( min == h3 )
         i3 ++;
         
         if ( min == h4 )
         i4 ++;
     }
}

int main ()
{
    solve ();
    int n;
    while ( scanf ("%d", &n), n )
    {
          if ( n % 100 != 11 && n % 10 == 1 )
            printf ("The %dst humble number is %d.\n", n, num[n]);
          
          else if ( n % 100 != 12 && n % 10 == 2 )
            printf ("The %dnd humble number is %d.\n", n, num[n]);
          
          else if ( n % 100 != 13 && n % 10 == 3 )
            printf ("The %drd humble number is %d.\n", n, num[n]);
          
          else 
            printf ("The %dth humble number is %d.\n", n, num[n]);
    }
    //system ("pause");
    return 0;
}


]]>
HDU 1056http://m.shnenglu.com/wing/archive/2010/09/07/126110.html闆粵渚濇ⅵ闆粵渚濇ⅵTue, 07 Sep 2010 13:04:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/07/126110.htmlhttp://m.shnenglu.com/wing/comments/126110.htmlhttp://m.shnenglu.com/wing/archive/2010/09/07/126110.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126110.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126110.html
//鎬濊礬錛氶鍏堟槸閫氳繃鎵撹〃鎵懼埌褰撻暱搴﹀彇 0.01鍒?.20涔嬮棿鐨勬暟鏃訛紝鏈澶氳澶氬皯寮燾ard錛?br>//鐒跺悗灝嗗紶鏁板瓨鍒發ength涓敤涓嬭〃i琛ㄧず寮犳暟 
#include <iostream>
#include <algorithm>
using namespace std;
#include <stdlib.h>

int main ()
{
    double length[300];
    memset ( length, 0, sizeof(length));
    for ( int i = 1; i <= 300; i ++)
    {
        for (int j = 1; j <= i; j ++)
        {
            length[i] += 1.0 / ( j + 1 );
        } 
        //printf ("%d %.2f\n", i, length[i]);
    }
    
    double n;
    while ( scanf ("%lf", &n) && n != 0.00 )
    {
          for ( int i = 1;i <= 300; i ++ )
          {
              if (  n <= length[i] )
              {
                    printf ("%d card(s)\n", i);
                    break;     
              } 
          }
    }
    system ("pause");
    return 0;
}


]]>
hdu 1048http://m.shnenglu.com/wing/archive/2010/09/07/126076.html闆粵渚濇ⅵ闆粵渚濇ⅵTue, 07 Sep 2010 03:02:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/07/126076.htmlhttp://m.shnenglu.com/wing/comments/126076.htmlhttp://m.shnenglu.com/wing/archive/2010/09/07/126076.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126076.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126076.html鎵浠ュ繀欏誨鍔犱竴涓猻trcmp ( first, ''START'')
#include <iostream>
#
include <algorithm>
using namespace std;

int main ()
{
    char first[
11];
    char last[
8];
    char str[
201];
    
    
while (  scanf ("%s"&first) && strcmp( first, "EDNOFINPUT"&& !strcmp (first, "START") )
    {
         getchar ();
         int len 
= 0;
         
while ( (str[len] = getchar ()) != '\n')
         len 
++;
         
         
for ( int i = 0; i < len; i ++ )
         {
             
if ( str[i] >= 'A' && str[i] <= 'E'
             {
                  printf (
"%c", str[i] + 21);
             }
             
else if ( str[i] >= 'F' && str[i] <= 'Z')
             {
                  printf (
"%c", str[i] - 5);
             }
             
else
             printf (
"%c", str[i]);
         } 
         printf (
"\n");
         scanf (
"%s", last);
    }
   
//system ("pause");
   
return 0;
}


]]>
hdu 1040http://m.shnenglu.com/wing/archive/2010/09/06/126044.html闆粵渚濇ⅵ闆粵渚濇ⅵMon, 06 Sep 2010 13:19:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/06/126044.htmlhttp://m.shnenglu.com/wing/comments/126044.htmlhttp://m.shnenglu.com/wing/archive/2010/09/06/126044.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126044.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126044.html#include <iostream>
#
include <algorithm>
using namespace std;

int main ()
{
    int a[
1005];
    int t;
    scanf ( 
"%d"&t );
    
while ( t -- )
    {
          int n;
          scanf ( 
"%d"&n );
          
for ( int i = 0; i < n; i ++ )
          {
              scanf (
"%d"&a[i]);
          }
          sort ( a, a 
+ n );
          
          printf (
"%d", a[0]);
          
for ( int i = 1; i < n; i ++ )
          {
              printf (
" %d",a[i]);
          }
          printf (
"\n");
    } 
   
//system ("pause");
   
return 0;
}
綆鍗曠殑鎺掑簭棰橈紝鐩存帴鍒╃敤sort榛樿鐨勬帓搴忚鍒欙細鍗囧簭鎺掑垪


]]>
hdu 1021http://m.shnenglu.com/wing/archive/2010/09/06/126043.html闆粵渚濇ⅵ闆粵渚濇ⅵMon, 06 Sep 2010 13:06:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/06/126043.htmlhttp://m.shnenglu.com/wing/comments/126043.htmlhttp://m.shnenglu.com/wing/archive/2010/09/06/126043.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/126043.htmlhttp://m.shnenglu.com/wing/services/trackbacks/126043.html
//鏄劇劧鏁版嵁鑼冨洿闈炲父鐨勫ぇ錛屾祴璇昦[10000]鏃跺凡緇忔棤娉曟紜殑琛ㄧず浜?br>//瑕佺敤鐢ㄧ浉鍏崇殑鐭ヨ瘑榪涜澶勭悊 : ( a + b ) % 3 = ( a % 3 + b % 3% 3
#include <stdio.h>
#
include <stdlib.h>
#
include <string.h>

int a[
1000009];

int main ()
{
    int n;
    a[0] 
= 7 % 3;
    a[
1= 11 % 3;  
    
for ( int i = 2; i < 1000009; i ++ )
    {
        a[i] 
= ( a[i - 1+ a[i - 2] ) % 3;
    }
    
    
while ( scanf ("%d"&n) != EOF )
    {
          
if ( !a[n] )
             printf (
"yes\n");
          
else
           printf (
"no\n");
    }
    
//system ("pause");
    
return 0;
}


]]>
HDU 1017http://m.shnenglu.com/wing/archive/2010/09/04/125868.html闆粵渚濇ⅵ闆粵渚濇ⅵSat, 04 Sep 2010 05:26:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/04/125868.htmlhttp://m.shnenglu.com/wing/comments/125868.htmlhttp://m.shnenglu.com/wing/archive/2010/09/04/125868.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/125868.htmlhttp://m.shnenglu.com/wing/services/trackbacks/125868.html#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main ()
{
          int N;
          scanf ("%d", &N );
          for ( int i = 0; i < N; i ++ )
          {
              //杈撳嚭涔嬮棿瀛樺湪絀鴻 
              if (i)
              printf ("\n");
              
              int m, n;
              int num = 0;    //璁板綍鐪嬭繖鏄鍑犵粍鏁?nbsp;  
              while ( scanf ("%d %d", &n, &m), m || n )           //姘撮涔焀A 浜嗗ソ澶氭灝辨槸榪欓噷閿欎簡
              {
                    num ++; 
                    int count = 0;    //鐢ㄤ簬璁板綍婊¤凍鏉′歡鐨?nbsp;a  b 鏁存暟瀵?nbsp;
                    for ( int a = 1; a < n; a ++ )    //  b 
                    {
                        for ( int b = a + 1; b < n; b ++ )  // a
                        {
                            if ( (a * a + b * b + m) % ( a * b ) == 0 )      
                            count ++;
                        }
                    }
                    printf ("Case %d: %d\n", num, count);
              }
              
          }
 
   //system ("pause");
   return 0;
}


]]>
HDU 1014http://m.shnenglu.com/wing/archive/2010/09/03/125825.html闆粵渚濇ⅵ闆粵渚濇ⅵFri, 03 Sep 2010 12:50:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/03/125825.htmlhttp://m.shnenglu.com/wing/comments/125825.htmlhttp://m.shnenglu.com/wing/archive/2010/09/03/125825.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/125825.htmlhttp://m.shnenglu.com/wing/services/trackbacks/125825.html姘撮錛氬彧鏄牸寮忓ソ瀹規槗閿欑殑錛屽儚閭d釜鏄粠25 琛岃緭鍑猴紝鎴戠殑灝卞彉鎴愪簡26

#include <stdio.h>
#
include <stdlib.h>
#
include <string.h>
#
include <math.h>

int a[
100000];
int main ()
{
    int step, mod;
    
    
while ( scanf ("%d %d"&step, &mod) != EOF )
    {  
          a[0] 
= 0;
          a[
1= ( a[0] + step) % mod;
          int k 
= 1
          
while ( a[k] != 0 )
          {
                k 
++;
                a[k] 
= ( a[k - 1+ step ) % mod;
          }

          
if ( k == mod )
          printf (
"%10d%10d    Good Choice\n", step, mod);
          
else
          printf (
"%10d%10d    Bad Choice\n",step, mod);
          printf (
"\n");
    }
    
//system ("pause");
    
return 0;
}


]]>
HDU 1012http://m.shnenglu.com/wing/archive/2010/09/03/125821.html闆粵渚濇ⅵ闆粵渚濇ⅵFri, 03 Sep 2010 11:15:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/03/125821.htmlhttp://m.shnenglu.com/wing/comments/125821.htmlhttp://m.shnenglu.com/wing/archive/2010/09/03/125821.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/125821.htmlhttp://m.shnenglu.com/wing/services/trackbacks/125821.html#include <stdio.h>
#
include <stdlib.h>
#
include <string.h>
#
include <math.h>

int f ( int n )
{
    int product 
= 1;
    
for ( int i = 1; i <= n; i ++ )
    {
        product 
*= i;
    }
    
return product;
}

int main ()
{
    double a[
10];
    a[0] 
= 1;
    
for ( int i = 1; i < 10; i ++ )
    {
        a[i] 
= 1.0 / f (i);  //姹傞樁灞傜殑鍊掓暟 
    }

    double sum[
10];
    sum[0] 
= 1
    
for ( int i = 1; i < 10; i ++ )
    {
        sum[i] 
= sum[i - 1+ a[i];   //姹傚拰 
    }
    
    
    printf (
"n e\n");
    printf (
"- -----------\n");
    printf (
"0 1\n"); 
    printf (
"1 2\n"); 
    printf (
"2 2.5\n");
    
for ( int i = 3; i < 10; i ++)
    {
        printf (
"%d %.9f\n", i, sum[i]);
    }
    system (
"pause");
   
   
return 0;
}


]]>
HDU 1008http://m.shnenglu.com/wing/archive/2010/09/03/125818.html闆粵渚濇ⅵ闆粵渚濇ⅵFri, 03 Sep 2010 10:37:00 GMThttp://m.shnenglu.com/wing/archive/2010/09/03/125818.htmlhttp://m.shnenglu.com/wing/comments/125818.htmlhttp://m.shnenglu.com/wing/archive/2010/09/03/125818.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/125818.htmlhttp://m.shnenglu.com/wing/services/trackbacks/125818.html#include <stdio.h>
#
include <stdlib.h>
#
include <string.h>
#
include <math.h>
int main ()
{
    int a[
1000];
    int n;
    
while ( scanf ("%d"&n) && n )
    {
          a[0] 
= 0;
          
for ( int i = 1; i <= n; i ++ )
          {
              scanf (
"%d"&a[i]);
          }
          
          int sum 
= 0;
          
for ( int i = 1; i <= n; i ++ )
          {
              
if ( a[i] > a[i - 1] )
              {
                   sum 
+= (a[i] - a[i - 1]) * 6 + 5;
              }
              
else if ( a[i] < a[i - 1])
              {
                   sum 
+= (a[i - 1- a[i]) * 4 + 5;
              }
              
else
              {
                  sum 
+= 5;
              }
          }
          
          printf (
"%d\n", sum);
    }
   system (
"pause");
   
return 0;
}


]]>
HDU 1279http://m.shnenglu.com/wing/archive/2010/08/28/125025.html闆粵渚濇ⅵ闆粵渚濇ⅵSat, 28 Aug 2010 03:27:00 GMThttp://m.shnenglu.com/wing/archive/2010/08/28/125025.htmlhttp://m.shnenglu.com/wing/comments/125025.htmlhttp://m.shnenglu.com/wing/archive/2010/08/28/125025.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/125025.htmlhttp://m.shnenglu.com/wing/services/trackbacks/125025.html鐢╤ash 鎬庝箞鍋氬憿錛?br>

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

int main ()
{
    
int t;
    
int n;
    
while ( scanf ("%d"&t) != EOF )
    
{
          
for ( int i = 0; i < t; i ++ )
          
{
              scanf ( 
"%d"&n );
              
bool flag = 0;
              
int count = 0;
              
while ( n != 1 )
              
{                    
                    
if ( n % 2 == 0 )
                    
{
                         n = n / 2;
                       
                    }
                    else 
if ( n % 2 != 0 )
                    
{
                         count ++;
                         flag = 1;
                         count == 1 ? printf ("%d", n) : printf (" %d", n);
                         n = n * 3 + 1;
                        
                    }
              }

              
if ( !flag )
              printf (
"No number can be output !\n");
              
else
              printf (
"\n");
          }

    }


    
// system ("pause");
     return 0;
}



]]>
hdu 1004http://m.shnenglu.com/wing/archive/2010/08/24/124558.html闆粵渚濇ⅵ闆粵渚濇ⅵTue, 24 Aug 2010 08:46:00 GMThttp://m.shnenglu.com/wing/archive/2010/08/24/124558.htmlhttp://m.shnenglu.com/wing/comments/124558.htmlhttp://m.shnenglu.com/wing/archive/2010/08/24/124558.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/124558.htmlhttp://m.shnenglu.com/wing/services/trackbacks/124558.html
 1#include <stdio.h>
 2#include <stdlib.h>
 3#include <string.h>
 4char code[1001][17];
 5int num[1001];
 6int main ()
 7{
 8  int n;
 9  while (scanf ("%d"&n) != EOF && n != 0)
10  {
11   getchar ();
12   memset (code, 0sizeof (code));
13   memset (num, 0 , sizeof (num));
14  
15   for (int i = 0; i < n; i ++)    //杈撳叆澶勭悊 
16   
17    int j = 0;    
18    while ( (code[i][j] = getchar ()) !=  '\n' )     i 浠h〃榪欐槸絎嚑涓覆
19    j ++;
20   }

21  
22  
23   for (int m = 0; m < n; m  ++)     //鍖歸厤
24   {
25    for (int k = m + 1; k < n; k ++)
26    {
27     if ( !strcmp (code[m], code[k]) )  //鐩哥瓑榪斿洖 0  
28      num[m]++;
29    } 
30   }

31   
32   int max = -1;   int index = 0;
33   for ( int k = 0; k < n; k ++)  //鎵懼埌鍑虹幇嬈℃暟鏈澶氱殑涓嬫爣 
34   
35       if (max < num[k])
36       {
37         max = num[k];
38         index = k;
39       }
           
40   }

41   printf ("%s"code[index]);
42 }

43 //system ("pause"); 
44 return 0;
45}

46


]]>
hdu 1005http://m.shnenglu.com/wing/archive/2010/08/24/124539.html闆粵渚濇ⅵ闆粵渚濇ⅵTue, 24 Aug 2010 06:01:00 GMThttp://m.shnenglu.com/wing/archive/2010/08/24/124539.htmlhttp://m.shnenglu.com/wing/comments/124539.htmlhttp://m.shnenglu.com/wing/archive/2010/08/24/124539.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/124539.htmlhttp://m.shnenglu.com/wing/services/trackbacks/124539.html//鐢ㄩ掑綊鍐欐兂閮戒笉瑕佹兂錛岀粷瀵硅秴鏃訛紝鎵浠ヨ繕搴斿綋鍥炲埌棰樼洰鏈韓鐨勫垎鏋愪笂鏉?br>//姝g‘鎬濊礬鏄細鍥犱負mod7鐨勫叧緋伙紝鑰屼笖f(1)=f(2)=1錛屾墍浠(n)鐨勫兼槸寰幆鍒嗗竷鐨勶紝鑰屼笖涓瀹氫細鍥炲埌f(n-1)=f(n)=1錛?br>//騫朵笖榪樺彲寰楀嚭錛岃繖涓驚鐜笉澶т簬49錛屽洜涓虹浉閭昏繛涓猣鍙湁7縐嶅彇鍊鹼紝榪欐牱f(n-1)鍜宖(n)鍏辨湁49縐嶇粍鍚堛?br>//鎵浠ワ紝鍙鎵懼嚭寰幆鍥犲瓙鍗沖彲錛屽鎵炬柟娉曟鏄牴鎹甪(n-1)=f(n)鍐嶆鍑虹幇鐨勫湴鏂規潵璁$畻
//鍙互棣栧厛涓鴻繖涓鐩啓涓涓祴璇曠殑紼嬪簭璁懼畾涓涓?a   b   n錛坣 姣旇緝灝忔椂錛?nbsp; 鐨勫?nbsp;  鐪嬬湅杈撳嚭瑙勫緥
 1#include <stdio.h>
 2#include <stdlib.h>
 3int f[51];
 4int main ()
 5{
 6    int a, b, n; 
 7    while ( scanf ("%d %d %d"&a , &b, &n) != EOF && a != 0 && b != 0 && n != 0 )
 8    {
 9          f[1= f[2= 1;
10          int i;
11          for (i = 3; i < 51; i ++)
12          {
13              f[i] = (a * f[i - 1+ b * f[i - 2]) % 7;
14              if ( f[i] == 1 &&  f[i - 1== 1 )   //鎵懼埌寰幆鍥犲瓙 i  
15              {
16                   break;
17              }

18          }

19          
20          n = n % (i - 2);
21          if (n == 0)   //鍒氬ソ緇忚繃涓涓驚鐜?nbsp;
22          printf ("%d\n", f[i - 2]);   //寮濮嬫椂錛屾垜鏄洜涓虹湅浜嗘祴璇曠▼搴忥紝鎶婅繖閲岃瀹氫負杈撳嚭 0 榪欑鎯蟲硶鏄敊鐨勶紝澶墖闈簡錛屽洜涓烘暟鎹寖鍥村緢澶?nbsp; 
23          else         
24          printf ("%d\n", f[n]);
25    }

26    //system ("pause");
27    return 0;
28}
 
29
30


]]>
hdu 1555http://m.shnenglu.com/wing/archive/2010/08/24/124533.html闆粵渚濇ⅵ闆粵渚濇ⅵTue, 24 Aug 2010 04:31:00 GMThttp://m.shnenglu.com/wing/archive/2010/08/24/124533.htmlhttp://m.shnenglu.com/wing/comments/124533.htmlhttp://m.shnenglu.com/wing/archive/2010/08/24/124533.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/124533.htmlhttp://m.shnenglu.com/wing/services/trackbacks/124533.htmlAC
 1#include <stdio.h>
 2int main ()
 3{
 4    int m, k; 
 5    while ( scanf ("%d %d"&m, &k) != EOF && m != 0 && k != 0)
 6    {
 7        int days = 0;
 8        while ( m )
 9        {
10            m --;
11            days ++;
12            if (days % k == 0)
13                m ++;
14        }

15
16        printf ("%d\n", days);
17    }

18    return 0;
19}

20


]]>
hdu 1032http://m.shnenglu.com/wing/archive/2010/08/23/124460.html闆粵渚濇ⅵ闆粵渚濇ⅵMon, 23 Aug 2010 11:42:00 GMThttp://m.shnenglu.com/wing/archive/2010/08/23/124460.htmlhttp://m.shnenglu.com/wing/comments/124460.htmlhttp://m.shnenglu.com/wing/archive/2010/08/23/124460.html#Feedback0http://m.shnenglu.com/wing/comments/commentRss/124460.htmlhttp://m.shnenglu.com/wing/services/trackbacks/124460.html鐪嬫潵鍋氶鐩竴瀹氳緇嗗績錛屽皬蹇冮櫡闃?br>鎴戠殑浠g爜錛?
 1#include <stdio.h>
 2#include <stdlib.h>
 3
 4int cylen (int a, int b)
 5{
 6    int max = 0;
 7    for (int i = a; i <= b; i ++)
 8    {
 9        int n = i;
10        int count = 1;
11        while ( n != 1)
12        {
13              count ++;
14              if ( n % 2 == 0)
15              n = n / 2;
16              else
17              n = 3 * n + 1;
18        }

19        
20        if (max < count)
21        max = count;
22    }

23        return max;
24}

25
26int main ()
27{
28    int i, j;
29    while ( scanf ("%d %d"&i, &j) != EOF )
30    
31          int index;
32          if (i > j)
33          {
34                index = i;
35                i = j;
36                j = index;
37                printf ("%d %d %d\n", j, i, cylen (i, j));    
38          }

39          else
40          printf ("%d %d %d\n", i, j, cylen (i, j));    
41    }

42     
43    //system ("pause");
44    return 0;
45}

46
緗戜笂鐨勪唬鐮侊細鐢ㄩ掑綊鍋氱殑錛屼袱涓唬鐮佸鏉傚害瀹屽叏涓鏍?br>
 1# include <stdio.h>
 2#include <stdlib.h>
 3int fun(long  a ,int len)
 4{
 5    if (a ==1)
 6        return len;
 7    else if (a %2 ==0)
 8        return fun(a/2,len+1);
 9    else  return fun(3*a+1,len +1);
10}

11int main()
12{
13    unsigned long  a,b;
14    unsigned long i,max,temp;
15
16    while (scanf("%ld%ld",&a,&b)!=EOF)
17    {
18        printf("%ld %ld ",a,b);
19        if(a>b) {i = a;a=b;b=i;}
20        for (max = 0,i = a; i <= b; i ++)
21        {
22            temp = fun(i,1);
23            if (max < temp)
24                max = temp;
25        }

26        printf("%ld\n",max);
27    }

28    //system ("pause");
29    return 0;
30}

31



]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            激情视频一区二区三区| 亚洲精品综合久久中文字幕| 亚洲一区二区三区在线观看视频| 女女同性女同一区二区三区91| 久久久精品欧美丰满| 久久精品一级爱片| 久久亚洲国产精品日日av夜夜| 久久午夜av| 欧美激情导航| 夜夜嗨av一区二区三区四季av| 亚洲图片在线| 久久精品国产69国产精品亚洲| 麻豆av一区二区三区久久| 欧美成人免费网| 欧美成人一二三| 欧美日韩亚洲一区三区| 国产精品一区一区| 在线精品国产欧美| 亚洲新中文字幕| 久久综合色影院| 99精品国产99久久久久久福利| 欧美亚洲视频在线看网址| 欧美激情一区二区三区在线视频| 国产精品美女久久久浪潮软件 | 免费毛片一区二区三区久久久| 欧美aa国产视频| 一区二区三区高清不卡| 久久国产欧美日韩精品| 欧美日韩一级大片网址| 黄色成人精品网站| 亚洲性感激情| 欧美高清一区二区| 午夜免费在线观看精品视频| 国产精自产拍久久久久久| 亚洲美女黄网| 午夜精品亚洲| 亚洲电影免费观看高清完整版| 女人色偷偷aa久久天堂| 亚洲视频一区在线观看| 欧美成人亚洲成人| 黄色精品一区二区| 欧美一区二区三区免费视| 亚洲三级影院| 久久精品日韩欧美| 国产精品一区久久| 亚洲一区二区av电影| 亚洲国产精品va在线观看黑人| 午夜亚洲福利| 国产精品福利影院| 在线视频精品| 亚洲电影中文字幕| 麻豆精品精华液| 在线观看91久久久久久| 欧美一区在线直播| 亚洲午夜激情网页| 国产精品国产三级国产专播精品人 | 久久精品国产精品亚洲综合 | 日韩亚洲欧美一区| 亚洲第一精品福利| 久久―日本道色综合久久| 好吊色欧美一区二区三区四区| 欧美一区国产在线| 亚洲欧美一区在线| 国产在线视频欧美一区二区三区| 久久se精品一区精品二区| 亚洲欧美国产高清| 国产日韩欧美一区二区三区四区| 欧美在线日韩| 久久9热精品视频| 激情成人在线视频| 久久综合网络一区二区| 欧美专区在线| 亚洲国产合集| 亚洲精品乱码久久久久久日本蜜臀| 欧美成人dvd在线视频| 亚洲精品在线视频| 夜夜嗨av一区二区三区四区| 国产精品永久免费| 久久夜色精品国产欧美乱| 久久午夜影视| 在线亚洲欧美专区二区| 亚洲视频免费在线| 国产在线视频欧美| 91久久国产精品91久久性色| 欧美日韩三级视频| 久久精视频免费在线久久完整在线看| 欧美亚洲网站| 夜夜嗨av色综合久久久综合网| 亚洲精华国产欧美| 牛夜精品久久久久久久99黑人| 亚洲黄色性网站| 久久九九99视频| 99精品国产福利在线观看免费 | 午夜精品在线视频| 亚洲欧美怡红院| 中文日韩在线视频| 久久精品国产v日韩v亚洲| 一区二区三区高清视频在线观看| 一区二区国产在线观看| 91久久视频| 日韩亚洲欧美高清| 亚洲美女中出| 一本色道久久99精品综合| 亚洲一区二区三区久久| 99在线精品免费视频九九视| 日韩亚洲欧美成人| 欧美日本一区二区高清播放视频| 久久视频一区| 国产精品久久久久久av福利软件| 亚洲精品乱码| 一本综合久久| 欧美另类极品videosbest最新版本| 亚洲少妇一区| 亚洲国产三级在线| 欧美激情精品久久久久久久变态 | 一本综合久久| 久久中文在线| 国产日韩亚洲| 久久国产精品久久久久久久久久 | 在线观看国产精品网站| 欧美国产成人在线| 午夜精品在线| 亚洲第一页在线| 亚洲淫性视频| **欧美日韩vr在线| 亚洲视频久久| 亚洲免费一在线| 亚洲精品午夜| 亚洲欧洲日韩综合二区| 欧美日韩国产限制| 亚洲免费在线观看视频| 国产精品亚洲精品| 免费久久99精品国产| 性欧美8khd高清极品| 久久精品视频免费播放| 最新精品在线| 亚洲高清色综合| 欧美日韩国产综合久久| 久久国产福利| 亚洲女女做受ⅹxx高潮| 亚洲欧美变态国产另类| 新片速递亚洲合集欧美合集| 亚洲欧美制服中文字幕| 久久久精品999| 欧美国产亚洲精品久久久8v| 久久精品卡一| 麻豆国产精品777777在线 | 欧美a级大片| 99精品欧美一区二区三区综合在线 | 99国产精品99久久久久久| 欧美国产日韩a欧美在线观看| 欧美一区二区三区四区视频| 亚洲欧美精品中文字幕在线| 99re66热这里只有精品3直播| 黄色成人av网站| 亚洲国产精品激情在线观看| 亚洲国产va精品久久久不卡综合| 久久国产精品高清| 日韩一级黄色片| 免费人成网站在线观看欧美高清| 亚洲欧美日韩中文视频| 亚洲肉体裸体xxxx137| 日韩西西人体444www| 午夜精品剧场| 国产一区欧美| 亚洲午夜伦理| 猛男gaygay欧美视频| 亚洲一级在线| 欧美日韩国产不卡| 影音欧美亚洲| 久久久人人人| 亚洲少妇中出一区| 免费日韩av片| 国产亚洲福利社区一区| 99精品视频免费全部在线| 免费亚洲一区二区| 欧美资源在线| 国产亚洲免费的视频看| 91久久精品国产91性色tv| 久久久久成人网| 欧美jjzz| 欧美日韩国内| 亚洲欧美国产制服动漫| 欧美一区在线直播| 亚洲黄色av一区| 欧美激情亚洲国产| 亚洲午夜久久久久久久久电影院| 亚洲国产精品电影| 国产欧美精品日韩精品| 久久噜噜噜精品国产亚洲综合| 亚洲美女视频网| 国产一区二区三区久久| 亚洲欧美卡通另类91av| 亚洲国产你懂的| 一区二区电影免费观看| 国产精品呻吟| 久久久久高清| 欧美jizz19性欧美| 亚洲国产精品成人久久综合一区| 亚洲另类春色国产|