首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
C语言 2052
(简答题)switch语句中的break作用是什么
15860532201
终止本次分支选择执行,防止穿透
数据结构 1022
在图形结构中,每个结点的前驱结点数和后续结点数可以 。
lvyyb
任意多
P1020
最长连续因子 题解:
yauqq
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int len = 0,maxlen = 0,pos = 2; for(int i = 2;...
P1563
迷宫 题解:bfs+queue
Jinx_K
#include <bits/stdc++.h> using namespace std; const int maxn = 105; char mpt[maxn][maxn]; int vis[maxn][maxn]; const int mov[4][2] =...
P1413
N阶楼梯上楼问题 题解:
ZeroQi_404
#include <iostream> using namespace std; int main(){ int n; while(cin >> n){ long long a=1; long long b=2; ...
P1547
统计二进制数中的1的个数 题解: 移位运算
zzzx
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; &nb...
P1197
吃糖果 题解:
2022214449
#include <iostream> #include <bits/stdc++.h> using namespace std; int tangguo(int n){ if(n==1) return 1; if(n==2) return 2; els...
政治
2026年考研思想政治理论考试试题 - 第17题回答
LaJeunesse
bd 评分及理由 本题为多项选择题,标准答案为BD。学生作答为“bd”,与标准答案完全一致。 选项分析: 选项A错误。物质存在的客观性不依赖于人的感知,即使无法直接感知(如暗物质),其客观性依然存在。该观点带有主观唯心主义倾向。 选项B正确。这准确地表述了辩证唯物主义的物质观,即物质是独立...
P1412
大整数排序 C语言题解:大数比较与二维数组冒泡排序
yourgaba233
#include <stdio.h> int getLen(char str[1001]){//获取大数的长度 int len; for(len=0;str[len]!='\0';len++){} ...
P1018
击鼓传花 题解:
lize1317
#include <bits/stdc++.h> using namespace std; struct Node{ int val; Node* next = nullptr; }; int func(Node* head) { Node* ptr_...
P1029
骨牌铺方格 题解:
彻底死去
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring&...
P1217
国名排序 题解:
yauqq
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<string> a(n); for(int i=0;i<n;...
P1126
存下到达每个地点所需时间,如果没有不可达地点而最大所需时间不为t,输出NO
泠灵绫
#include <bits/stdc++.h> using namespace std; typedef struct node { int sx,sy; int step; } node; const int maxn=105; char mpt[...
P1225
谁是你的潜在朋友 题解:map和vector
岸上的乌龟
#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; ma...
P1976
阶梯电费 题解:
HKX9XAS
#include<stdio.h> #include<iostream> using namespace std; int main(){ double n; while(ci...
P1018
击鼓传花 题解:C
HKX9XAS
#include<stdio.h> #include<malloc.h> typedef struct Node{ int numb; struct Node * Next; }N...
P5345
小花狮的扑克 题解:
qasdzxcv
本人代码没啥技术含量,纯枚举,把所有可能情况列举出来然后比大小 #include<bits/stdc++.h> using namespace std; map<string,int> paixingva= { &nb...
P1102
素数判定 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; in...
P1001
01序列 题解:
yauqq
#include<bits/stdc++.h> using namespace std; string tobinary(int x){ if (x == 0) return "0"; string bin = ""; while (x >...
C语言
考研智能组卷(C语言) - 第1题回答
叉叉
B
P1692
Distinct Subsequences 题解:
x1ngchui
#include <cstdio> #include <cstring> #include <vector> #define N 10010 int f[N]; void init() { memset(f, 0x00,...
P1397
字符串连接 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; in...
政治
2026年考研思想政治理论考试试题 - 第34题回答
LaJeunesse
(1)由生产的技术水平所决定的生产资料和劳动力之间的比例,叫作资本的技术构成。从价值形 式上看,资本可分为不变资本和可变资本,这两部分资本价值之间的比例,叫作资本的价值 构成。在资本的技术构成和资本的价值构成之间,存在密切的联系。一般来说,资本的技术 构成决定资本的价值构成,技术构成的变...
P1971
求HSL的值 题解:
yjzhou20
简直是浪费时间的一道题。这道题能有题解吗??浮点数%浮点是不允许的,第一个算出来永远都是29.9。题目就是错的,反复提交多次,每次都是因为题目的问题被拒绝!你们工作人员自己不跑一边代码吗?
P1353
最大公约数 题解:
ZeroQi_404
#include<iostream> using namespace std; int gcb(int a, int b){ if(b==0)return a; return gcb(b,a%b); } int main(){ int m,n; ...
P1197
吃糖果 题解 递归
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; in...
P1176
十进制和二进制 题解:C
头号大鲨鱼
#include<stdio.h> #include<string.h> int is_zero(int *str2, int len){ int a=0; for(int i=0;...
C语言
考研智能组卷(C语言) - 第14题回答
叉叉
D
P1254
字符串排序 题解:
彻底死去
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring&...
政治
2025年考研思想政治理论考试试题 - 第25题回答
LaJeunesse
abc 评分及理由 本题为标准的多项选择题,标准答案为ABC。学生作答为“abc”,对应选项A、B、C。 学生答案与标准答案完全一致,选项选择正确,无多选或漏选。 根据题目打分要求,本题正确应得2分。学生作答中无逻辑错误,思路正确,且未进行额外分析,故无需扣分或加分。 题目总分:2分
P5127
动态查找的问题 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int ...
P1380
二进制数 题解:反转字符串
磊磊公爵
//#pragma GCC optimize(3) #include<bits/stdc++.h> #define rep(i,a,n) for(ll i=a;i<=n;i++) #define per(i,a,n) for(ll i=a;i&g...
P1134
矩阵翻转 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; in...
P1024
题解:二元组整数
mzymzyo
因为答案要从小到大排列,所以先将整个数组排序。再来个二重循环输出。 这题关键是去重,之前已经输出过的一对就不要再输出了,所以创建了一个二维数组记录这对数有没有输出过 #include <bits/stdc++.h> using namespace std; in...
P1240
首字母大写 题解:
Adelaide111
#include <bits/stdc++.h> using namespace std; int main() { string s; while(getline(cin,s)){ int flag=1; fo...
P814
N皇后问题 题解:回溯
快乐小土狗
#include <bits/stdc++.h> // 初始化全局标记数组(N最大10,对角线最大长度20) int col[11] = {0}; // 标记列是否被占用:col[j]=1表示第j列有皇后 int diag1[21] = {0}; // 标记主对角线(...
P2011
字符串替换 题解:
adue
#include<stdio.h> #include<string> #include<string.h> using namespace std; int main(){ char a[1000]; &nb...
P5127
动态查找的问题 题解:
温酒斩赤兔
纯暴力解法,c与c++混用 #include <bits/stdc++.h> using namespace std; int main() { int n; int s[1005]; ...
P1002
数字统计 题解:依旧C++语法
Tyu0871
#include<bits/stdc++.h> using namespace std; int main(){ int l,r; while(cin>>l>>r){ int count = 0; for(i...
浙江工商大学
浙江工商大学计算机科学与技术学院2026年硕士研究生招生复试须知
26考研助手
浙江工商大学计算机科学与技术学院 2026年硕士研究生招生复试须知 各位考生: 欢迎报考浙江工商大学计算机科学与技术学院硕士研究生!为方便考生了解我院复试工作相关安排,做好应考准备,以下内容请考生知悉: 一、复试形式和时间安排 目前,我校硕士研究生招生计划尚未...
P1102
素数判定 题解:
ZeroQi_404
#include <iostream> using namespace std; bool isPrime(int x){ if(x < 2) return false; for(int i = 2; i * i <= x; i++) ...
P1290
日期差值 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { &nbs...
P1019
字母频率 题解:
yauqq
#include<bits/stdc++.h> using namespace std; int main(){ map<char,int> mp; string str; getline(cin, str); int maxc = 0; ...
P2013
求斐波那契数列的第n项 题解:c++、
bro
#include <iostream> using namespace std; int main(){ long long arr[21] = {0}; arr[0] = 1; ar...
P1007
整除 题解:
彻底死去
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { &nbs...
P1737
骑车路线 题解:
太一
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; in...
重庆理工大学
计算机科学与工程学院电子信息(计算机技术)专业2026年硕士研究生招生考试复试考
26考研助手
计算机科学与工程学院电子信息(计算机技术)专业2026年硕士研究生招生考试 复试考生名单公示(全日制) (第一志愿) 一、公示期 2026年3月28日—2026年3月31日。 二、受理单位及电话 公示期内有异议的,请向重庆理工大学研究生院反映,联...
P6666
岛屿数量2 题解:
lize1317
#include <bits/stdc++.h> using namespace std; const int maxn = 305; int dir[4][2] = {0,1,0,-1,1,0,-1,0}; // 方向数组 char mpt[maxn][max...
P5372
教室分配问题 题解:
dddd225
差分 #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; map<int,pair<int,int>> mp; ...
P1053
偷菜时间表 题解:
彻底死去
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring&...
P1048
自由落体 题解:
mlx
#include<iostream> using namespace std; double m,sum; int n; int main() { cin>>m>>n; sum=m; double x;...
P5126
细菌繁殖问题 题解:c++
bro
#include <iostream> #include <algorithm> #include <vector> #include <map> using namespace std; int main(){ &...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
[置顶]计算机考研择校分析【25考研必读】
4
题目难点:数学公式不断化解
5
详细题解(站在巨人的肩膀上)
6
A+B问题 题解:C
7
逻辑很简单,但是实现却要小心多多
8
【25计算机考研】39所985院校录取分数线汇总
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
2048游戏 题解:简洁实现