简单题 #include <cstdio>
using namespace std;int main()
{int t;scanf("%d", &t);while (t--){long long n;scanf("%lld", &n);long long temp = 5;long long ans = 0;while (temp <= n){ans += n / temp;temp *=
传送门:http://poj.org/problem?id=1442 Black Box Time Limit: 1000MSMemory Limit: 10000K Description Our Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box is emp
简单题 View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;long long com(long long n, long long r){if (n - r < r) r = n - r;long long i, j, s = 1;for (i = 0, j =