摘要: n个数,+、-、.号等于0的等式 输出等式和总过的等式#include <iostream>#include <cstdio>#include <string.h>using namespace std;const int MAXN=20;const int MAXM=16;char str[MAXM],opt[MAXN][MAXM];int n,cnt;void dfs(int deep,int num,int pre){ int now,k; if(deep==n) { str[n]='\0'; if(num==0) { if(cnt&l 阅读全文
posted @ 2012-04-13 23:28 shijiwomen 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 注意__int64的设定,关键#include <stdio.h>int main(){ int n,t,s,c; int i,a,b; __int64 sum; int k=1; scanf("%d",&c); while(c--) { scanf("%d%d%d",&n,&t,&s); sum=2*t+s; scanf("%d",&a); for(i=2;i<=n;i++) { scanf("%d",&b); if((b-a)*s>2*t) 阅读全文
posted @ 2012-04-13 10:52 shijiwomen 阅读(277) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;import java.math.BigInteger;public class Main{ /** * @param args */ public static BigInteger jc(BigInteger m) { BigInteger i; BigInteger st=new BigInteger("1"); BigInteger t=new BigInteger("1"); for(i=m;i.compareTo(B... 阅读全文
posted @ 2012-04-13 10:17 shijiwomen 阅读(289) 评论(0) 推荐(0) 编辑