#include #include #include #include #include #include #include #include #include #include #include #define LL long long #define inf 1<<29 #define s(a) scanf(%I64d,&a) #define CL(a,b) memset(a,b,sizeof(a)) using namespace std; const int N=200005; __int64 n,m,a,b,c,d; int main() { while(s(n)&&n){ a=1,b=1,c=1,d=1; while(n!=1&&n%2==0){a++,n/=2;} while(n!=1&&n%3==0){b++,n/=3;} while(n!=1&&n%5==0){c++,n/=5;} while(n!=1&&n%7==0){d++,n/=7;} printf(%I64d ,a*b*c*d); } return 0; }
Moving TablesTime Limit:
題面: GalaxyTime Limi
題目:求∑i=1n∑j=1mlcm(i,j)
lua內存洩露 首先第一點,lua中的內存洩露和我們所說的c
推箱子Time Limit: 2000/1000 MS (J
題目A message containing letters