上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
摘要: #includemain(){ float x=2.5,y,x1=2.5,a,b,c,d,max,min; scanf("%f%f%f%f",&a,&b,&c,&d); do { y=x-(a*x*x*x+b*x*x+c*x+d)/(3*a*x*x+2*b*x+... 阅读全文
posted @ 2014-08-10 11:11 2014acm 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ float a,b,c,d,x,y,max,min; max=10; min=-10; scanf("%f%f%f%f",&a,&b,&c,&d); { x=(max+min)/2; y=a*... 阅读全文
posted @ 2014-08-10 11:07 2014acm 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #includeint f(int a[],int low,int high,int x){ int mid; while (lowx) high=mid-1; else if(a[mid]int f(int a[],int low,int high,int x)... 阅读全文
posted @ 2014-08-10 10:46 2014acm 阅读(85) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;int a,b,used[200020];queueq;int ok(int n){ if(n = 0&&used[n]==0) return 1; ... 阅读全文
posted @ 2014-08-10 08:23 2014acm 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;const int N=100;const int M=100;typedef struct //定义迷宫结构 { char c; short int p_row,p_col,step;}Maze; Maze a[N][... 阅读全文
posted @ 2014-08-09 20:03 2014acm 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #include main(){ int k,x,y,n; scanf("%d",&n); while(n--) { scanf("%d",&k); for(x=k+1;xk*(x+y))break; if(x*y==... 阅读全文
posted @ 2014-08-09 19:53 2014acm 阅读(147) 评论(0) 推荐(0) 编辑
摘要: C++:泛型编程stack(括号匹配)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:72 测试通过:39描述假设表达式中包含一种括号:圆括号,其嵌套顺序随意,即(()())或(())等为正确的格式,)(或((... 阅读全文
posted @ 2014-08-09 19:52 2014acm 阅读(1955) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int n,i,j,s,k,a[10000]; scanf("%d",&n); { s=0; k=0; for (j=1;jint main(){ int n,i,j,s; scanf("%d",&n... 阅读全文
posted @ 2014-08-09 19:49 2014acm 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 完数?时间限制:1000 ms | 内存限制:65535 KB 难度:1描述 一个数如果恰好等于不等于它本身的所有因子之和,那么这个数就被称为"完数"。例如,6的因子为1,2,3,而6=1+2+3,因此,6是完数。要求给定一个整数n,请编写程序,确定n是否是完数。输入每组数据输入一个n(1int... 阅读全文
posted @ 2014-08-09 19:48 2014acm 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目96题目信息运行结果本题排行讨论区n-1位数时间限制:3000 ms | 内存限制:65535 KB 难度:1描述 已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。输入第一行为M,表示测试数据组数。接下来M行,每行包含一个测试数据... 阅读全文
posted @ 2014-08-09 19:47 2014acm 阅读(108) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页