
数论
liuzhan214
业精于勤!
展开
-
数论Trailing Zeroes (III)light0j1138
Description You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2*…*N. For example, 5! = 120, 120 contains one zero原创 2016-10-26 19:02:22 · 291 阅读 · 0 评论 -
poj2115
A Compiler Mystery: We are given a C-language style for loop of type for (variable = A; variable != B; variable += C)statement;I.e., a loop which starts by setting variable to value A and while varia原创 2016-10-26 20:35:16 · 325 阅读 · 0 评论 -
poj2116
数论 需要细心,模拟过程就可以了,注意给出的字符串有前导0,需要去前导0#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;typedef long long LL;const int maxn = 50;char s1[maxn],s2[maxn]原创 2016-10-27 14:38:09 · 508 阅读 · 0 评论 -
hdu 5924 Mr. Frog’s Problem
题目链接 花了半个小时来画图,最后发现只要把输入的数据正反输出就可以了…#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;typedef long long LL;int main(){ int T,cas = 1; scanf("%原创 2016-10-20 16:43:04 · 473 阅读 · 0 评论