2007年9月14日

Sylvester construction 11009

摘要: #include using namespace std; int a[64],b[64]; __int64 poww(int x,int y) { __int64 t=1; for(int j=0;jnu)) break; return i; } int cc(__int64 d,__int64 e) {int s,t;... 阅读全文

posted @ 2007-09-14 14:09 xmx 阅读(158) 评论(0) 推荐(0)

zju 2678 Bishops on a Toral Board

摘要: 其实就是求m和n的最大公约数,不过要大数,,可以用Euclid || stein写 #include #include char a[101],b[101]; int divide(int l,int ll); int big(int l,int ll,char a[],char b[]); void mod(int l,int ll); char x[101]; int ma... 阅读全文

posted @ 2007-09-14 00:20 xmx 阅读(319) 评论(0) 推荐(0)

导航