Last non-zero Digit in N!(HDU-1066)
原题地址#include<stdio.h>#include<string.h>#include<algorithm>#define maxn 10000using namespace std;char map[100000];int lastdigit(char *buf){ int mod[20]={1,1,2,6,4,2,2,4,2,8,4...
原创
2019-03-24 23:30:09 ·
410 阅读 ·
1 评论