你万万想不到,Long Long 就能存下的数据 #include <iostream> #include <cstdio> #include <cstdlib> #include <map> using namespace std; typedef long long ll; map<char,int>mp; int main() { string s; while(cin>>s){ int max1=-1; int max2=-1…
#include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; ; char str[maxn]; int a[maxn]; int main() { int n, i, j, ans, t, tt, ttt, mod; scanf("%s", str); n = strlen(str); ans = ; j =…
问n! 转化成k进制后的位数和尾数的0的个数.[UVA 10061 How many zeros and how many digits?] Given a decimal integer number you will have to find out how many trailing zeros will be there in its factorial in a given number system and also you will have to find how many di…