Algorithm °æ (¾«»ªÇø)
·¢ÐÅÈË: sino (²èË®ÏÈÉú), ÐÅÇø: Algorithm
±ê Ìâ: ZSUCPC 2000ÖÐɽͬ־ÃǵÄÌâ½â--µÚÒ»ÊÔµÚÒ»Ìâ
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê08ÔÂ27ÈÕ10:09:54 ÐÇÆÚÒ»), Õ¾ÄÚÐżþ
·¢ÐÅÈË: splutter (´ô×Ó), ÐÅÇø: ACMICPC
±ê Ìâ: [ºÏ¼¯]µÚÒ»ÊÔµÚÒ»Ìâ forgetful
·¢ÐÅÕ¾: ÒÝÏÉʱ¿Õ Yat-sen Channel (Tue Jun 19 05:25:58 2001), Õ¾ÄÚÐżþ
------------------------------------------------------
monster@argo (²»ÔÙ¶éÂ䣬²»ÔÙÍ) ÓÚFri May 11 20:25:13 2001)
Ìáµ½£º
תÐÅÕ¾: argo
¡¾ ÔÚ mk (Öð·ç) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: µÚÒ»Ì⣺ѻ·½Ú£¨repeating cycle£©£¨30·Ö£©
: ÎÊÌâÃèÊö£º
: ÇóÒ»¸ö·ÖÊý¶ÔÓ¦µÄÊ®½øÖÆСÊýµÄÑ»·½Ú¡£ÎÒÃǶ¨ÒåÒ»¸öСÊýµÄÑ»·½ÚÊÇËüµÄµÚÒ»¸ö×î
¶Ì
: µÄÏòÓÒÎÞÏÞÑ»·µÄÊý×Ö´®¡£
: ÏÂÃæÊÇһЩ·ÖÊýµÄÑ»·½Ú£¬Ñ»·½Ú²¿·ÖÓÃÀ¨ºÅÀ¨×¡£¬ÀýÈ磺
: ·ÖÊý Ê®½øÖÆСÊý Ñ»·½Ú Ñ»·½Ú³¤¶È£¨Î»Êý£©
: 1£¯6 0.1(6) 6 1
: 5£¯7 0.(714285) 714285 6
: 1£¯250 0.004(0) 0 1
^^^^^^^^^^^^^^^^^^^^^^^^^
ÕâÀï0ÊDz»Ó¦×÷ΪÎÞÏÞÑ»·½ÚµÄ£¬
³ý·Ç£¬ÌâÒâΪ0.004=0.0040000000000000000000000000000000000000...
: ÊäÈ룺ÊäÈëÎļþµÄÿÐаüº¬Á½¸öÕýÕûÊý£¬µÚÒ»¸öΪ·Ö×Ó£¬µÚ¶þ¸öΪ·Öĸ£¬ËüÃÇÖ®¼äÓÃ
Ò»
: ¡¡¡¡
------------------------------------------------------
mysunshine (ÓêÒ»Ö±ÏÂ) ÓÚFri May 11 20:32:44 2001Ìáµ½£º
ÎÒÏëÌâÒâ¾ÍÊÇÕâÑù¡£
------------------------------------------------------
forgetful (×¼±¸ÀæÊ÷ÖÐ) ÓÚFri May 11 20:33:46 2001Ìáµ½£º
¸ãµàÒ»Ì⣬sigh~£¬×öµÃºÃÂý¡«¡«
#include <iostream.h>
#include <string.h>
#include <fstream.h>
#include <conio.h>
void main()
{
clrscr();
fstream in_file("in.txt",ios::in);
fstream out_file("out.txt",ios::out); //´ò¿ª¶ÁºÍдµÄÎļþ
int a,b,i,j,k,temp1[100],temp2[100];
a=0;b=-1; //¶¨ÒåÑ»·½áÊø·û
in_file>>a>>b;
while(!(a==0&&b==-1))
{
cout<<a<<"\t"<<b;
if(a>=b) a%=b;
temp1[0]=a;
for(i=0;i<50;i++)
{
temp2[i]=temp1[i]/b;
temp1[i+1]=temp1[i]%b*10;
for(j=0;j<=(i+1);j++)
if(temp1[i+1]==temp1[j]) break; //ÅжÏÊÇ·ñ
ÒѾ
úÉúÑ»·
if(j!=i+1) break; //Èç¹ûj=j+1,ÔòûÓвúÉúÑ»·
}
for(k=0;k<(i-j+1);k++) cout<<temp2[j+k];
cout<<"\t"<<(i-j+1)<<endl;
a=0;b=-1;
in_file>>a>>b;
}
}
------------------------------------------------------
forgetful (×¼±¸ÀæÊ÷ÖÐ) ÓÚFri May 11 20:34:22 2001Ìáµ½£º
¼ÈÈ»ÌâÄ¿ÕâÑù¸øµÄ²âÊÔÊý¾Ý£¬ÒªÇóÓ¦¸Ã¾ÍÊÇÕâÑù°É£¿
------------------------------------------------------
menway (ÎÒûÓÐÇ®) ÓÚFri May 11 20:38:28 2001Ìáµ½£º
ÎÒÒ²ÌùÒ»¸ö£¬bp7µÄ£¬×ܹ²31ÐÐ
var
ok:boolean;
a,b,i,j,k:integer;
m,r:array[1..50] of integer;
begin
readln(a,b);write(a div b,'.');
i:=0;a:=a mod b;ok:=false;
while not ok do begin
a:=a*10;
inc(i);
m[i]:=a div b;
r[i]:=a mod b;
a:=r[i];
for j:=1 to i-1 do
if r[j]=r[i] then begin ok:=true;break;end;
if i=50 then break;
end;
if ok then begin
if r[i]=0 then begin inc(i);inc(j);end;
for k:=1 to j-1 do write(m[k]);
write('(');
for k:=j to i-1 do write(m[k]);
writeln(')');
writeln(i-j)
end
else begin
for i:=1 to 50 do write(m[i]);
writeln;
writeln(0);
end;
end.
------------------------------------------------------
Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) ÓÚFri May 11 23:16:28 2001Ìáµ½£º
´íÁË¡£
¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ÎÒÒ²ÌùÒ»¸ö£¬bp7µÄ£¬×ܹ²31ÐÐ
: var
: ok:boolean;
: a,b,i,j,k:integer;
: m,r:array[1..50] of integer;
: begin
: readln(a,b);write(a div b,'.');
: i:=0;a:=a mod b;ok:=false;
: while not ok do begin
: a:=a*10;
: ¡¡¡¡
------------------------------------------------------
menway@argo (ÎÒûÓÐÇ®) ÓÚSat May 12 00:35:09 2001)
¸ø¸öÊý¾Ý°¡£¬¿´¿´´íÔÚÄÇÀï
¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ´íÁË¡£
------------------------------------------------------
forgetful (¼ÌÐø½¡Íü) ÓÚSat May 12 00:39:47 2001Ìáµ½£º
ºÇºÇ£¬²»ºÃÒâ˼£¬Ò»Ê±Êèºö£¬Ìù´íÁË£¬Êä³öд´íÁË
Ó¦¸ÃÊÇÕâÑùµÄ
#include <string.h>
#include <fstream.h>
void main()
{
fstream in_file("in.txt",ios::in);
fstream out_file("out.txt",ios::out); //´ò¿ª¶ÁºÍдµÄÎļþ
int a,b,i,j,k,temp1[100],temp2[100];
a=0;b=-1; //¶¨ÒåÑ»·½áÊø·û
in_file>>a>>b;
while(!(a==0&&b==-1))
{
temp1[0]=a%b;
for(i=0;i<50;i++)
{
temp2[i]=temp1[i]/b;
temp1[i+1]=temp1[i]%b*10;
for(j=0;j<=(i+1);j++)
if(temp1[i+1]==temp1[j]) break; //ÅжÏÊÇ·ñ
ÒѾ
úÉúÑ»·
if(j!=i+1) break; //Èç¹ûj=j+1,ÔòûÓвúÉúÑ»·
}
out_file<<a<<"/"<<b<<"="<<a/b<<".";
for(k=0;k<j;k++) out_file<<temp2[k];
out_file<<"(";
for(k=0;k<(i-j+1);k++) out_file<<temp2[j+k];
out_file<<")";
out_file<<"\t"<<(i-j+1)<<endl;
a=0;b=-1;
in_file>>a>>b;
}
}
------------------------------------------------------
menway@argo (ÎÒûÓÐÇ®) ÓÚSat May 12 00:49:14 2001)
Ìáµ½£º
תÐÅÕ¾: argo
ÎÒÒ²´ò¸ö²¹¶¡£¬ºÇºÇ£¬ÔÀ´µÄ³ÌÐòÊäÈë12 3»òÕß4 2µÈ¿ÉÒÔÕû³ýµÄÊýµÄʱºòÊä³ö²»¶Ô£¬°Ñ
Ô´³ÌÐòµÄµÚ19ÐмÓÒ»¸öand(a[j]<>0)¾ÍÐÐÁË
¸üкóµÄÔ´³ÌÐòÈçÏ£º(thx to Holm)
var
ok:boolean;
a,b,i,j,k:integer;
m,r:array[1..50] of integer;
begin
readln(a,b);write(a div b,'.');
i:=0;a:=a mod b;ok:=false;
while not ok do begin
a:=a*10;
inc(i);
m[i]:=a div b;
r[i]:=a mod b;
a:=r[i];
for j:=1 to i-1 do
if r[j]=r[i] then begin ok:=true;break;end;
if i=50 then break;
end;
if ok then begin
if (r[i]=0)and(m[j]<>0) then begin inc(i);inc(j);end;
for k:=1 to j-1 do write(m[k]);
write('(');
for k:=j to i-1 do write(m[k]);
writeln(')');
writeln(i-j)
end
else begin
for i:=1 to 50 do write(m[i]);
writeln;
writeln(0);
end;
end.
------------------------------------------------------
menway (ÎÒûÓÐÇ®) ÓÚSat May 12 00:55:09 2001Ìáµ½£º
try 11 33,ºÃÏñ²»¶ÔŶ¡£ÄãµÄ³ÌÐòÊä³ö0.03(3)
¡¾ ÔÚ forgetful (¼ÌÐø½¡Íü) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ºÇºÇ£¬²»ºÃÒâ˼£¬Ò»Ê±Êèºö£¬Ìù´íÁË£¬Êä³öд´íÁË
: Ó¦¸ÃÊÇÕâÑùµÄ
: #include <string.h>
: #include <fstream.h>
: void main()
: {
: fstream in_file("in.txt",ios::in);
: fstream out_file("out.txt",ios::out); //´ò¿ª¶ÁºÍдµÄÎļþ
: int a,b,i,j,k,temp1[100],temp2[100];
: a=0;b=-1; //¶¨ÒåÑ»·½áÊø·û
: ¡¡¡¡
------------------------------------------------------
forgetful (¼ÌÐø½¡Íü) ÓÚSat May 12 01:09:08 2001Ìáµ½£º
sigh~,Ì«´ÖÐÄÁË£¬ÍüÁËÈ¥µôÇ°ÃæµÄ0,ллmenwayÌáÐÑ
ÔÙ´òÁËÒ»¸ö50λ¶¼³ö²»ÁËÑ»·ÊýµÄ²¹¶¡
´ó¼Ò¿ÉÒÔÓÃ2/1237ÊÔÊÔ
#include <string.h>
#include <fstream.h>
void main()
{
fstream in_file("in.txt",ios::in);
fstream out_file("out.txt",ios::out); //´ò¿ª¶ÁºÍдµÄÎļþ
int a,b,i,j,k,temp1[100],temp2[100];
a=0;b=-1; //¶¨ÒåÑ»·½áÊø·û
in_file>>a>>b;
while(!(a==0&&b==-1))
{
temp1[0]=a%b;
for(i=0;i<50;i++)
{
temp2[i]=temp1[i]/b;
temp1[i+1]=temp1[i]%b*10;
for(j=0;j<=(i+1);j++)
if(temp1[i+1]==temp1[j]) break; //ÅжÏÊÇ·ñÒѾ²úÉúÑ»·
if(j!=(i+1)) break; //Èç¹ûj=i+1,ÔòûÓвúÉúÑ»·
}
out_file<<a<<"/"<<b<<"="<<a/b<<".";
for(k=1;k<j;k++) out_file<<temp2[k];
if(i!=50)
{
out_file<<"(";
for(k=0;k<(i-j+1);k++) out_file<<temp2[j+k];
out_file<<")";
out_file<<"\t"<<(i-j+1)<<endl;
}
else out_file<<"\t0\n";
a=0;b=-1;
in_file>>a>>b;
}
}
------------------------------------------------------
Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) ÓÚSat May 12 10:58:23 2001Ìáµ½£º
ÕâÑùÕÒÑ»·½Ú£¬Â©¶´¶à¶àµÄ˵¡£
¡¾ ÔÚ menway@argo (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¸ø¸öÊý¾Ý°¡£¬¿´¿´´íÔÚÄÇÀï
: ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ´íÁË¡£
------------------------------------------------------
simontwo (John Active) ÓÚSat May 12 11:22:27 2001)Ìáµ½£º
ÎÒÀ´¾ßÌåµã˵Ã÷°É£º0.110110¡¡
ÄãÈ¥ÊÔÏ°ɣº110/999=0.110110¡¡£¨Æäʵ·´ÀýÓкࣩܶ
ÄãÊä³öµÄ½á¹û£º0.£¨1£©
ÄãÊÇÓÃ×î½üÏàËÆÔÔò£¬ÓÐÖظ´²»´ú±íÊÇÑ»·½ÚµÄ£¡
ËùÒÔ²»¹»È«ÃæÂ
------------------------------------------------------
menway (ÎÒûÓÐÇ®) ÓÚSat May 12 11:27:20 2001Ìáµ½£º
¿ÉÊÇÎÒ²éÕÒµÄÊÇÓàÊý°¡£¬²¢²»ÊÇÔÚÉÌÖвéÕÒ£¬¾ÍÊÇ˵£¬µ±·¢ÏÖµ±Ç°Î»µÄÓàÊýÒÔÇ°³öÏÖ
¹ý£¬¾ÍÈÏΪ³öÏÖÁËÒ»¸öÑ»·½á£¬Ó¦¸ÃÊÇÕýÈ·µÄ°É¡£
Ô´³ÌÐòºÍ±àÒëºóµÄexe¿ÉÒÔµ½ftp://172.16.16.118ÏÂÔØ
¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ÎÒÀ´¾ßÌåµã˵Ã÷°É£º0.110110¡¡
:
: ÄãÈ¥ÊÔÏ°ɣº110/999=0.110110¡¡£¨Æäʵ·´ÀýÓкࣩܶ
: ÄãÊä³öµÄ½á¹û£º0.£¨1£©
:
: ÄãÊÇÓÃ×î½üÏàËÆÔÔò£¬ÓÐÖظ´²»´ú±íÊÇÑ»·½ÚµÄ£¡
:
: ËùÒÔ²»¹»È«ÃæÂ
: ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÕâÑùÕÒÑ»·½Ú£¬Â©¶´¶à¶àµÄ˵¡£
: ¡¡¡¡
------------------------------------------------------
Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) ÓÚSat May 12 11:33:58 2001Ìáµ½£º
ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
ÔÙ¸øÄã³öÒ»µÀÌâ°É£¬ÒÑ֪ѻ·½Ú£¬ÇóÆä·ÖÊý×î¼òʽ£¬Ò²ºÜ¼òµ¥µÄ˵¡£
¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¿ÉÊÇÎÒ²éÕÒµÄÊÇÓàÊý°¡£¬²¢²»ÊÇÔÚÉÌÖвéÕÒ£¬¾ÍÊÇ˵£¬µ±·¢ÏÖµ±Ç°Î»µÄÓàÊýÒÔÇ°³öÏÖ
: ¹ý£¬¾ÍÈÏΪ³öÏÖÁËÒ»¸öÑ»·½á£¬Ó¦¸ÃÊÇÕýÈ·µÄ°É¡£
: Ô´³ÌÐòºÍ±àÒëºóµÄexe¿ÉÒÔµ½ftp://172.16.16.118ÏÂÔØ
: ¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÎÒÀ´¾ßÌåµã˵Ã÷°É£º0.110110¡¡
: : ÄãÈ¥ÊÔÏ°ɣº110/999=0.110110¡¡£¨Æäʵ·´ÀýÓкࣩܶ
------------------------------------------------------
simontwo (John Active) ÓÚSat May 12 11:35:25 2001)Ìáµ½£º
²éÓàÊýÕâÊǸöºÜºÃµÄ°ì·¨£¡Ó¦¸ÃÊǶԵİɣ¬ÎÒÏ룿
²»¿Ï¶¨£¡
¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¿ÉÊÇÎÒ²éÕÒµÄÊÇÓàÊý°¡£¬²¢²»ÊÇÔÚÉÌÖвéÕÒ£¬¾ÍÊÇ˵£¬µ±·¢ÏÖµ±Ç°Î»µÄÓàÊýÒÔÇ°³öÏÖ
: ¹ý£¬¾ÍÈÏΪ³öÏÖÁËÒ»¸öÑ»·½á£¬Ó¦¸ÃÊÇÕýÈ·µÄ°É¡£
:
: Ô´³ÌÐòºÍ±àÒëºóµÄexe¿ÉÒÔµ½ftp://172.16.16.118ÏÂÔØ
:
: ¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÎÒÀ´¾ßÌåµã˵Ã÷°É£º0.110110¡¡
: :
: : ÄãÈ¥ÊÔÏ°ɣº110/999=0.110110¡¡£¨Æäʵ·´ÀýÓкࣩܶ
: : ÄãÊä³öµÄ½á¹û£º0.£¨1£©
: :
: : ÄãÊÇÓÃ×î½üÏàËÆÔÔò£¬ÓÐÖظ´²»´ú±íÊÇÑ»·½ÚµÄ£¡
: :
: : ËùÒÔ²»¹»È«ÃæÂ
: : ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : : ÕâÑùÕÒÑ»·½Ú£¬Â©¶´¶à¶àµÄ˵¡£
: : ¡¡¡¡
:
------------------------------------------------------
simontwo (John Active) ÓÚSat May 12 11:39:46 2001)Ìáµ½£º
飬ÕâÌâºÜ¼òµ¥µÄ°¡£¬
É裺AΪÎÞÏÞÑ»·Ð¡Êý£¬ËüµÄÑ»·½ÚΪ£¨abc¡¡£©ÓÐn¸ö룬
ÄÇôÄã°ÑA=(A*10^n-A)/(10^n-1) È»ºóÑ»·½Ú¸ø¼õµôÁË£¬ÒÔºó¡¡
ÕâÑù¾Í¿ÉÒÔËã³öÀ´ÁË£¡
¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
:
: ÔÙ¸øÄã³öÒ»µÀÌâ°É£¬ÒÑ֪ѻ·½Ú£¬ÇóÆä·ÖÊý×î¼òʽ£¬Ò²ºÜ¼òµ¥µÄ˵¡£
:
: ¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ¿ÉÊÇÎÒ²éÕÒµÄÊÇÓàÊý°¡£¬²¢²»ÊÇÔÚÉÌÖвéÕÒ£¬¾ÍÊÇ˵£¬µ±·¢ÏÖµ±Ç°Î»µÄÓàÊýÒÔÇ°³ö
ÏÖ
: : ¹ý£¬¾ÍÈÏΪ³öÏÖÁËÒ»¸öÑ»·½á£¬Ó¦¸ÃÊÇÕýÈ·µÄ°É¡£
: : Ô´³ÌÐòºÍ±àÒëºóµÄexe¿ÉÒÔµ½ftp://172.16.16.118ÏÂÔØ
: : ¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : : ÎÒÀ´¾ßÌåµã˵Ã÷°É£º0.110110¡¡
: : : ÄãÈ¥ÊÔÏ°ɣº110/999=0.110110¡¡£¨Æäʵ·´ÀýÓкࣩܶ
:
:
------------------------------------------------------
Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) ÓÚSat May 12 11:41:53 2001Ìáµ½£º
¿¼ÂÇÎÊÌâ²»ÍêÕû¡£
¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: 飬ÕâÌâºÜ¼òµ¥µÄ°¡£¬
: É裺AΪÎÞÏÞÑ»·Ð¡Êý£¬ËüµÄÑ»·½ÚΪ£¨abc¡¡£©ÓÐn¸ö룬
: ÄÇôÄã°ÑA=(A*10^n-A)/(10^n-1) È»ºóÑ»·½Ú¸ø¼õµôÁË£¬ÒÔºó¡¡
: ÕâÑù¾Í¿ÉÒÔËã³öÀ´ÁË£¡
: ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
: :
------------------------------------------------------
Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) ÓÚSat May 12 11:42:29 2001Ìáµ½£º
¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: 飬ÕâÌâºÜ¼òµ¥µÄ°¡£¬
~~»¹ÓУ¬¶ÔʦÐÖÓ¦¸Ã×ðÖØÒ»µãŶ
: É裺AΪÎÞÏÞÑ»·Ð¡Êý£¬ËüµÄÑ»·½ÚΪ£¨abc¡¡£©ÓÐn¸ö룬
: ÄÇôÄã°ÑA=(A*10^n-A)/(10^n-1) È»ºóÑ»·½Ú¸ø¼õµôÁË£¬ÒÔºó¡¡
: ÕâÑù¾Í¿ÉÒÔËã³öÀ´ÁË£¡
: ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
: :
------------------------------------------------------
menway (ÎÒûÓÐÇ®) ÓÚSat May 12 11:43:37 2001Ìáµ½£º
¿ÉÊDz»Ò»¶¨Ð¡ÊýµãºóÃæ¾ÍÒ»¶¨¿ªÊ¼Ñ»·°¢¡£
0.A1A2A3...An(An+1An+2...Am)=
A1A2A3...Am - A1A2A3...An
------------------------------------------------------
simontwo (John Active) ÓÚSat May 12 11:48:33 2001)Ìáµ½£º
ÄãÊDz»ÊÇ˵£¬Ñ»·½Ú²»ÊÇÔÚµÚһλ¿ªÊ¼°¡£¿ÆäʵÕâ¸ö£¬Òª¿¿×Ô¼ºÀ£¬
²»ÐèÒª¶à½²ÁË°É£¿ÎҼǵÃСѧµÄʱºò£¬ÀÏʦ¾ÍÊÇÕâô¸úÎÒ½²µÄ
ÆäʵÈç¹û²»ÊǵÚһλµÄ»°£¬¿ÉÒÔÔٳɶà¸ö±ðµÄ10µÄ´Î·½°¡£¿
Õâ¸öÓ¦¸Ã²»ÓöིÀ²£¡ÆäËûµÄÌØÀýÎÒ¾ÍûÓÐÏëµ½£¬Èç¹ûÓУ¬Çë¸æËßÎÒ£¡
¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¿¼ÂÇÎÊÌâ²»ÍêÕû¡£
:
: ¡¾ ÔÚ simontwo (John Active) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : 飬ÕâÌâºÜ¼òµ¥µÄ°¡£¬
: : É裺AΪÎÞÏÞÑ»·Ð¡Êý£¬ËüµÄÑ»·½ÚΪ£¨abc¡¡£©ÓÐn¸ö룬
: : ÄÇôÄã°ÑA=(A*10^n-A)/(10^n-1) È»ºóÑ»·½Ú¸ø¼õµôÁË£¬ÒÔºó¡¡
: : ÕâÑù¾Í¿ÉÒÔËã³öÀ´ÁË£¡
: : ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : : ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
: : :
:
:
------------------------------------------------------
CSLeeman@argo (CS99+ÈçÔÂÓ°) ÓÚSat May 12 11:50:56 2001)
Ìáµ½£º
תÐÅÕ¾: argo
ÏóÕâ¸ö 1/250==0.004(0);
ÄãÄǸö²»ÐÐÁËŶ¡£
¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¿ÉÊDz»Ò»¶¨Ð¡ÊýµãºóÃæ¾ÍÒ»¶¨¿ªÊ¼Ñ»·°¢¡£
: 0.A1A2A3...An(An+1An+2...Am)=
: A1A2A3...Am - A1A2A3...An
: -------------------------------
: 999...9000...0 (m-n¸ö9£¬n¸ö0)
: ÓÃÕâ¸ö¹«Ê½°É¡£È»ºóÔ¼·ÖһϾÍÐÐÁË
: ¡¾ ÔÚ Holmaming (¸ü¼Ó·ç²É¶¯³¯¶Ë) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ÎûÎû£¬¿´´íÁË£¬//sorry¡£ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵġ£
: : ÔÙ¸øÄã³öÒ»µÀÌâ°É£¬ÒÑ֪ѻ·½Ú£¬ÇóÆä·ÖÊý×î¼òʽ£¬Ò²ºÜ¼òµ¥µÄ˵¡£
------------------------------------------------------
menway (ÎÒûÓÐÇ®) ÓÚSat May 12 12:26:59 2001Ìáµ½£º
ft,ʵ¼ÊÉÏ0ÊDz»¿ÉÒÔ×÷Ñ»·½áµÄ£¬Î¥±³ÁËÑ»·Ð¡ÊýµÄ¶¨Òå¡£
+-ÓÐÏÞСÊý£¨¼´ËùνµÄÒÔ0Ϊѻ·½áµÄСÊý£©
|
СÊý-+ +ÎÞÏÞÑ»·Ð¡Êý£¨¿É»¯Îª·ÖÊý£©
| |
+ÎÞÏÞСÊý+
|
+ÎÞÏÞ²»Ñ»·Ð¡Êý£¨Èçpi£¬sqrt(3)µÈÎÞÀíÊý£©
Èç¹ûʵÔÚÒª0×÷Ñ»·½á£¬¾Í¶à¼ÓÒ»ÌõÅжϺÃÁË¡£
if (An+1+...+Am==0)
·ÖÊýΪA1A2...An/10^n£¬È»ºóÔÙÔ¼·Ö
¡¾ ÔÚ CSLeeman@argo (CS99+ÈçÔÂÓ°) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ÏóÕâ¸ö 1/250==0.004(0);
: ÄãÄǸö²»ÐÐÁËŶ¡£
: ¡¾ ÔÚ menway (ÎÒûÓÐÇ®) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ¿ÉÊDz»Ò»¶¨Ð¡ÊýµãºóÃæ¾ÍÒ»¶¨¿ªÊ¼Ñ»·°¢¡£
: : 0.A1A2A3...An(An+1An+2...Am)=
--
ߢȡÉú»îÖÐÿһ¶äÇåеÄÀË»¨,Öǻ۵ÄÀË»¨ ..»ã³ÉÒôÀֵĺ£Ñó.
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: mtlab4.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º209.486ºÁÃë