首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
我要提问
中南大学1673士兵排阵
哈哈宝宝游泳
回复 4
|
赞 0
|
浏览 1.6k
这个答案里的对坐标x统一都-i是什么意思啊,为啥要对x这样处理排序之后就是最少步数啊,求大佬解答 #include<bits/stdc++.h> using namespace std; //看完题我们会发现,其实y轴我们可以不考虑,而x轴是散乱的,如何将它们统一呢...
我要提问
模考
qwertasd
回复 1
|
赞 0
|
浏览 1.5k
为什么报名了模拟考试里面只有一个题目
我要提问
1565 最短路
yanmo
回复 1
|
赞 0
|
浏览 1.5k
struct Edge{ int u,v,w; Edge(int u, int v, int w):u(u),v(v),w(w){};//这一行是啥意思? };
我要提问
复旦大学机试:解一元一次方程
yusheng
回复 4
|
赞 0
|
浏览 1.4k
#include<bits/stdc++.h> using namespace std; int hh(string s)//统计x的系数 { int ans=0; for(int i...
我要提问
求解答为何第一个代码运行第二次输入直接结束了
我爱陈少熙
回复 4
|
赞 0
|
浏览 1.8k
已知这些整数的绝对值都小于100,每组整数的数量不少于1个,不大于20个。 输入格式 首先输入K(不小于2,不大于20)。每一行输入一组数据(至少有一组数据),每组至少有一个数据,在有多个数据时,两个数据之间有1到3个空格。最后一行输入100,标志输入的结束。 输出格式 ...
我要提问
确定比赛名次 只有50%
DestinyCares+++
回复 1
|
赞 0
|
浏览 1.6k
#include<iostream> #include<cstring> #include<string> #include<queue> #include<vector> using namespace std; c...
我要提问
简单背包问题 这是什么错误
DestinyCares+++
回复 1
|
赞 0
|
浏览 1.7k
#include<iostream> #include<string> #include<cstring> using namespace std; int main() { int s, n; &nbs...
我要提问
湖南大学猴子报数
哈哈宝宝游泳
回复 4
|
赞 0
|
浏览 1.7k
为什么这段代码输入n时用cin输入只有输入第一组数据的时候有输出但是从第二组开始就卡住了,但是换成scanf输入n他就能ac啊,求大佬解答 #include<iostream> #include<vector> #include<al...
我要提问
判断三角形类别 只有50%
DestinyCares+++
回复 1
|
赞 0
|
浏览 1.6k
#include<iostream> #include<cstring> #include<algorithm> using namespace std; /*double length(int x1, int y1, int x2, int y...
我要提问
求三角形的面积 为什么wrong
DestinyCares+++
回复 2
|
赞 0
|
浏览 2.1k
#include<bits/stdc++.h> using namespace std; double length(int x1,int y1,int x2,int y2) { double ans = 0; &nbs...
我要提问
中南大学机试真题爬楼梯
哈哈宝宝游泳
回复 1
|
赞 0
|
浏览 1.4k
为什么这段代码dp数组必须在main函数外面定义才行,如果我定义到main函数里面程序就什么都不会执行就直接结束了,还有如果用scanf输入就会出现输出超限的错误但是改成cin输入就ac了,这两个问题是为啥啊,求大佬解答 #include<iostream> #incl...
我要提问
1248:为咋子最后两个数被替换成0了呀
我爱陈少熙
回复 1
|
赞 0
|
浏览 1.9k
#include <stdio.h> #include<stdlib.h> #include<string.h> int cmpa(const void *a,const void *b) { return ...
我要提问
C语言中浮点类型数据不包括哪个部分()
八千
回复 1
|
赞 0
|
浏览 1.4k
C语言中浮点类型数据不包括哪个部分() A. 符号位 B. 指数位 C. 尾数部分 D. 小数 我在网上看怎么什么答案都有
我要提问
中南 最大连续子序列 为什么错误
DestinyCares+++
回复 2
|
赞 0
|
浏览 1.6k
#include<iostream> #include<climits> #include<cstdio> &n...
我要提问
删除最大最小数 75%?
DestinyCares+++
回复 14
|
赞 0
|
浏览 1.7k
#include<iostream> #include<cstring> #include<algorithm> #include<vector> #include<queue> using namespace std; ...
我要提问
当 b 无穷大的时候,函数func返回值最近接的选项是()
八千
回复 1
|
赞 0
|
浏览 1.8k
float func(float a, int b) { float m=1, n=1; int i; for (i=1; i <b; i ++) { m*= a/i; ...
我要提问
西北工业大学--杨辉三角为:wrong question
DestinyCares+++
回复 2
|
赞 0
|
浏览 1.9k
#include<iostream> #include<cstring> using namespace std; const int maxn = 1005; int a[maxn][maxn]; int main() { &nbs...
我要提问
复旦大学二叉搜索树
yusheng
回复 3
|
赞 0
|
浏览 1.7k
复旦大学机试题 二叉搜索树 #include using namespace std; struct node{ int val; node *left,*right; &nb...
我要提问
我爱陈少熙
回复 2
|
赞 0
|
浏览 1.8k
我要提问
如果c为字符型变量,判断c是否为空格不能使用_______.(假设已知空格ASC
八千
回复 2
|
赞 0
|
浏览 1.5k
如果c为字符型变量,判断c是否为空格不能使用_______.(假设已知空格ASCII码为32) A) if(c=='32') B) if(c==32) ...
我要提问
1097负二进制的问题,
我爱陈少熙
回复 0
|
赞 0
|
浏览 1.6k
一开始是无限循环,后来输出结果是正确结果的逆序(输出顺序没错),现在直接输出错误答案了,请指导一下哪里出错了 #include<stdio.h> #include<stdlib.h> #include<string.h> int main() ...
我要提问
输出0和1的个数,整形int 输入15 输出0的个数为28,1的个数为4,为什
寥寥楠
回复 4
|
赞 0
|
浏览 1.5k
#include<stdio.h> int main(){ int n=0; int one=0; int zero=0; scanf("%d&q...
我要提问
判读素数,是素数输出,不是素数输出大于他的第一个素数,代码通过率80%看不出来哪
寥寥楠
回复 2
|
赞 0
|
浏览 1.7k
#include<stdio.h> #include<stdbool.h> bool judge(int n){ for(int i=2;i<n;i++){ &nb...
我要提问
下面程序段的运行结果是( )
八千
回复 4
|
赞 0
|
浏览 1.3k
下面程序段的运行结果是( ) int i=O, a[]={3,4,5,4,3}; do{ a[i]++; }while(a[++i]<5); for(i=0;i<5;i++) printf(“%d”,a[i]) ;
我要提问
1091 促销计算 为什么测试不通过
acv
回复 2
|
赞 0
|
浏览 895
某百货公司为了促销,采用购物打折的优惠方法,每位顾客一次购物:在1000元以上者,按9.5折优惠;在2000以上者,按9折优惠;在3000以上者,按8.5折优惠;在5000以上者,按8折优惠;编写程序,购物款数,计算并输出优惠价。 #include using na...
我要提问
括号匹配 为什么一个个样例输入判断正确 5个一起就错误
DestinyCares+++
回复 12
|
赞 0
|
浏览 895
#include<iostream> #include<stack> #include<string> using namespace std; int priority(char c) { if (c =...
我要提问
1161 二叉树遍历
yanmo
回复 1
|
赞 0
|
浏览 662
#include<bits/stdc++.h> using namespace std; typedef struct node{ int data; struct node* lchild; struct node* rchild; }*Bitree; ...
我要提问
1071 幂次方
yanmo
回复 1
|
赞 0
|
浏览 842
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll x,n; cin>>x>>n; int mod=233333; ll...
我要提问
1102 素数判定
yanmo
回复 2
|
赞 0
|
浏览 633
#include<bits/stdc++.h> using namespace std; //线性素数筛选,prime[0]存储素数个数 const int maxn=1000000+5; int prime[maxn]; void getprime(){ ...
我要提问
简单计算器 为什么runtime(python)
DestinyCares+++
回复 4
|
赞 0
|
浏览 673
while True: a=input() if a=="0": break  ...
我要提问
括号匹配南理工 为什么错误
DestinyCares+++
回复 1
|
赞 0
|
浏览 717
#include<iostream> #include<cstring> #include<stack> #include<cstdio> using namespace std; int main() {  ...
我要提问
1312 畅通工程
yanmo
回复 1
|
赞 0
|
浏览 567
//普里姆算法 #include<bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f //定义无穷大 const int maxn=100+5; int mpt[maxn][maxn];//邻接矩阵 ...
我要提问
杨辉三角形 西北工业大学 为什么wrong question
DestinyCares+++
回复 1
|
赞 0
|
浏览 558
#include<iostream> #include<cstring> using namespace std; const int maxn = 25; int a[maxn][maxn]; int main() { ...
我要提问
软工判断题为什么是错的
我爱陈少熙
回复 2
|
赞 0
|
浏览 626
多态性增强了软件的灵活性和重用性,允许用更为明确、易懂的方式去建立通用软件,多态性和继承性相结合使软件具有更广泛的重用性和可扩充性。(×)
我要提问
打印日期
promising
回复 2
|
赞 0
|
浏览 970
打印日期这个题,为啥前面几个测试用例都对,后面三个不对啊,如果不输前面几个,后面三个输出就没有问题 #include int main() { int m,n; int i=1;  ...
我要提问
川大计算机复试贴
muff
回复 1
|
赞 0
|
浏览 424
川大计算机复试C语言可以用C++写吗
我要提问
1564 石油
yanmo
回复 1
|
赞 0
|
浏览 619
为什么不能直接用x和y? void dfs(int x,int y){//从m[x][y]出发遍历属于同一石油块的pocket visit[x][y]=1; for(int i=0;i<8;i++){/...
我要提问
幂次方 为什么错误
DestinyCares+++
回复 4
|
赞 0
|
浏览 749
#include<iostream> #include<cstring> using namespace std; int fast(int a,int b,int mod) { long long answer = 1...
我要提问
高分篇的喝饮料问题(1478)
我爱陈少熙
回复 1
|
赞 1
|
浏览 1.1k
商店里有 n 中饮料,第 i 种饮料有 mi 毫升,价格为 wi。小明现在手里有 x 元,他想吃尽量多的饮料,于是向你寻求帮助,怎么样买才能吃的最多。请注意,每一种饮料都可以只买一部分。 我运行的结果跟书上不一样,就想测试排序是否出错,但是结果显示有误,请问是cmp函...
我要提问
1563 迷宫 const
yanmo
回复 4
|
赞 0
|
浏览 662
为什么第六行必须要用const定义? //将结构体作为队列的元素 //广度优先搜索 #include<bits/stdc++.h> using namespace std; const int maxn=100+5; char M[maxn]...
我要提问
1289 runtime error?
DestinyCares+++
回复 1
|
赞 0
|
浏览 507
#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include<vector> using namespace std; ...
我要提问
请各位大佬帮我看看哪里出错了-1375
LJC27
回复 1
|
赞 0
|
浏览 484
#include<bits/stdc++.h> #include<algorithm> #include<cmath> using namespace std; bool prime(int n) { int flag = ...
我要提问
1344 为什么输入什么 输出的都是0 0
DestinyCares+++
回复 3
|
赞 0
|
浏览 821
#include<iostream> #include<string> #include<climits> #include<vector> #include<queue> using namespace std; c...
我要提问
q.top()
yanmo
回复 3
|
赞 0
|
浏览 945
priority_queue<int,vector<int>,greater<int>> q; int weight+=q.top(); 第二行语法有问题吗?
我要提问
高分篇里面的成绩排序(编号1151)的问题
我爱陈少熙
回复 6
|
赞 0
|
浏览 824
我用的c语言编写的结构体排序,为什么最后运行的结果成绩无法输出呀。 #include <stdio.h> #include<stdlib.h> #include<string.h> struct stu { ...
我要提问
1010 排序
yanmo
回复 2
|
赞 0
|
浏览 749
为什么runtime error了呀? #include<bits/stdc++.h> using namespace std; int main(){ int n; ci...
我要提问
1380二进制串
yanmo
回复 1
|
赞 0
|
浏览 659
#include<bits/stdc++.h> using namespace std; int main(){ unsigned int n; while(cin>>n){ string s; //定义字符串存储转换后的二进制串 int ...
我要提问
单词替换 只有75%
DestinyCares+++
回复 0
|
赞 0
|
浏览 571
#include<iostream> #include<string> using namespace std; int main() { string str, a, b; wh...
我要提问
单词替换
DestinyCares+++
回复 0
|
赞 0
|
浏览 535
#include<iostream> #include<string> using namespace std; int main() { string str, a, b; wh...
我要提问
删除字符串 编译错误
DestinyCares+++
回复 0
|
赞 0
|
浏览 616
#include<bits/stdc++.h> using namespace std; int main() { char s[105]; string t = "gzu&quo...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
题目难点:数学公式不断化解
4
[置顶]计算机考研择校分析【25考研必读】
5
逻辑很简单,但是实现却要小心多多
6
A+B问题 题解:C
7
1017 幂次方 快速幂模板
8
日期 题解:
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
负二进制 题解: