本以为可以用 #include<iostream> #include<string> using namespace std; #define max 10000000 int f1[max]; int main() { int n, a; cin >> n;//测试 个数 while (n--) { cin >> a; memset(f1, 0,
//此法不行,超时 #include<stdio.h> #include<string.h> #define M 60000000 int a[M]; int main() { int s; scanf("%d",&s); while(s--) { int n,i,j,m,c,t; scanf("%d",&n); memset(a,0,sizeof(a)); a[0]=1;
因为有个组合公式 所以转了,再慢慢领悟。 Big Number Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6291 Accepted Submission(s): 2836 Problem
原题 There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in