http://www.cppblog.com/LeoW/archive/2012/03/08/167427.htmlView Code #include<stdio.h>#include<string.h>#include<math.h>#define lld __int64int main(){ int i, j, cas; int n; scanf("%d", &cas); while(cas--) { scanf("%d", &n); double sum1 = n*log10(n*1.0); l Read More
posted @ 2012-10-29 22:03 To be an ACMan Views(107) Comments(0) Diggs(0)
http://www.cnblogs.com/183zyz/archive/2011/04/12/2013372.htmlView Code #include<stdio.h>#include<string.h>int f(int x){ int i, sum = 1; for(i = 1; i <= x; i++) sum *= 10; return sum;}int gcd(int a, int b){ return b ? gcd(b, a%b) : a;}int main(){ int i, j, cas; char s[33]; ... Read More
posted @ 2012-10-29 22:02 To be an ACMan Views(196) Comments(0) Diggs(0)