主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
C语言 1427
若调用一个函数,且此函数中没有 return 语句,则该函数返回_____。
浅水
回复 9+
|
赞 0
|
浏览 5.8k
一个不确定的值
C语言 1059
程序运行结果
moon401
回复 9+
|
赞 0
|
浏览 19.7k
852
操作系统
【2024年】408计算机统考真题模拟考试 - 第46题答案笔记
仿佛面壁
回复 0
|
赞 0
|
浏览 248
计算机系统中的进程之间往往需要相互协作以完成一个任务,在某网络系统中缓冲区B用于存放一个数据分组,对B的操作有C1、C2和C3。将一个数据分组写入B中,C2从B中读出一个数据分组,C3对B中的数据分组进行修改。要求B为空时才能执行C1,B非空时才能执行C2和C3。请回答下列问题。 (1)...
重庆大学
众里寻他千百度-2019重大专硕考研记
紫霞仙子
回复 0
|
赞 1
|
浏览 10.2k
复试结束了快十天了,坐在家里窗前,楼下传来阵阵小学里追追赶赶的嬉闹声。总想着考研结束后写点什么,那就写一点吧!首先,和大家简单自我介绍一下:我是二营长的炮灰,如果大家比较关注群的话,应该对这个沙雕ID有印象(毕竟作为一个群里大水车- -!)。我第一次考研时还是一个潜水的萌新,造化弄...
湖南大学
2021湖大计算机专硕上岸经验分享
2722302697
回复 0
|
赞 3
|
浏览 5.5k
2021湖大计算机专硕上岸经验分享,专业第三 前言:考研其实说难也不难,只要没碰巧选到大热门,剩下的就是坚持两个字。 先说一下我自己情况:一战湖大10月-12月底,时间不足+打游戏,300+,凉透。二战厦大7月-12月底,间歇性努力+打游戏,280+,凉透。工作一年后,三战4月-12月...
P1387
查找 - 北邮 题解:暴力,拼尽全力终于战胜
zxjrheaven
回复 0
|
赞 1
|
浏览 99
#include <bits/stdc++.h> using namespace std; string fanzhuan(string str,char a,char b,int c) { char str2[c]={0}; &...
贵州大学
贵州大学2025年计算机科学与技术学院(贵州保密学院)硕士研究生复试名单
考研小帮手
回复 0
|
赞 1
|
浏览 47
单位代码 单位名称 考生编号 姓名 政治理论/管理类联考 外国语 业务课1 业务课2 初试总分 复试专业代码 复试专业名称 备注 116 ...
P1404
成绩排序 - 华科 题解:
carrot_huan
回复 0
|
赞 1
|
浏览 854
#include<bits/stdc++.h> using namespace std; typedef struct Grade { string name; int year, grade; ...
厦门大学
2022厦门大学双非上岸人工智能系经验分享
whyqaq
回复 2
|
赞 2
|
浏览 7.4k
22已经上岸,前些天出的拟录取名单,因为有事拖沓了一段时间,来填个坑,所以来论坛这里分享一下个人的经验,之前在备考阶段,看了不少历年学长学姐的经验贴,受益匪浅,不过厦大这两年经验贴挺少的,希望自己也能够尽献绵薄之力,给大家提供一个参考。 先介绍一下个人情况吧,我本科双非,这次能考上厦...
计算机网络
【2010年】408计算机统考真题模拟考试 - 第47题答案笔记
kkkklin
回复 0
|
赞 0
|
浏览 188
(1)如果甲乙同时开始发数据,则双方的数据会在链路中间发生冲突,甲乙都会在一个单向传播时延后收到冲突。如果在甲发送的数据到达乙的时候乙刚好开始发送数据,则乙会立即检测到冲突,但甲会在从开始发送数据后两个单向传播时延后收到冲突,即一个RTT后。 单向传播时延=2km / 200000km/...
P1062
杨辉三角形 题解:建二维数组表,根据规律加和
AiLanKeSi
回复 0
|
赞 2
|
浏览 150
#include <iostream> using namespace std; int triangle[20][20]; int main() { for(int i = 0;i<20;i++) ...
P1341
还是畅通工程 题解:暴力
zxjrheaven
回复 0
|
赞 0
|
浏览 4
#include <bits/stdc++.h> using namespace std; //思路:最小生成树,直接k算法贪心了,记得要用并查集 int fd[105]; int find(int n) { if(fd[n]=...
P1264
二叉树2 题解:
钟馨雨
回复 0
|
赞 1
|
浏览 810
#include <bits/stdc++.h> using namespace std; int main(){ int m,n; while(cin>>m>>n){ &...
P1032
变位词 题解:c-排序直接比较大小
小王桐学
回复 0
|
赞 12
|
浏览 805
#include <stdio.h> #include <string.h> void Sort(char *s) { int i,j; char c; for(i = 0; i < strlen(s)-1; i++) for(j ...
P1195
1195 字符串(是不是只有50通过)c++
莫小七
回复 0
|
赞 5
|
浏览 9.0k
#include<iostream> #include<cstring> #include<string> #include<vector> using namespace std; int main() { int n...
P1458
火车票订购(c++)
My_opt
回复 0
|
赞 5
|
浏览 5.7k
#include <iostream> using namespace std; const int N = 1e5 + 10; int n, m, a, b, k; int p[N]; bool insert(int a, int b, int c) ...
P1840
南京理工-搬箱子 题解:最长递增子序列
camling
回复 0
|
赞 3
|
浏览 415
#include <bits/stdc++.h> using namespace std; const int N = 1e3 + 10; int s[N],dp[N]; int longSeq(int s[],int n){ for(int i = 0...
P1001
01序列 题解:笨蛋小美的做法
西电机试专家
回复 0
|
赞 1
|
浏览 128
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f; for(a=0;a&...
P1040
利润提成 题解:C/C++
hellokitty1679
回复 0
|
赞 22
|
浏览 964
#include<bits/stdc++.h> using namespace std; int main(void) { int l; scanf("%d",&l);...
P1079
排列生成
ims
回复 0
|
赞 1
|
浏览 9.0k
解题思路:使用C++标准库中next_permutation()算法获取每次的排列,但是此算法不包括序列本身,需要你手动输出序列。还有就是,使用C++中cout输出会超时,改成C语言的printf函数输出。 // 题目描述 // Time Limit: 1000 ms // Memo...
P1438
复数相加(c++)
A1120161820
回复 0
|
赞 2
|
浏览 7.4k
#include<iostream> using namespace std; class complex{ private: int a, b; public: complex(){} complex(int aa, int bb):a(aa),b(bb)...
P1098
前缀字符串 :用前缀树做的,WA,不知道为什么
sheep276
回复 2
|
赞 6
|
浏览 186
#include <bits/stdc++.h> using namespace std; struct node { int num; node*next[26]; }; void init...
P1446
日期累加 题解:c语言,注意一下坑就行
dhh390
回复 0
|
赞 2
|
浏览 45
#include <stdio.h> #include <string.h> #include<stdlib.h> #include<math.h> int main() { int n; &n...
P1041
C++
光明守护神
回复 0
|
赞 3
|
浏览 811
#include<iostream> using namespace std; int main() { int a, b; cin >> a >> b; int a0 = a, b0 = b; if (a > b) ...
P1014
加密算法 题解:简单
16696033405
回复 0
|
赞 0
|
浏览 10
#include<stdio.h> #include<string.h> #include<ctype.h> #define MAX 1000 int main(){ char s[MAX]; &...
贵州大学
贵州大学2025年硕士研究生复试录取工作办法
考研小帮手
回复 0
|
赞 1
|
浏览 37
为做好我校2025年硕士研究生复试录取工作,根据教育部《关于做好2025年全国硕士研究生复试录取工作的通知》文件精神,特制定本办法。 一、工作原则 (一)坚持“综合评价、择优录取”的原则。落实立德树人根本任务,牢固树立“考试招生育人...
P1134
矩阵翻转 题解:打印
阿灿
回复 0
|
赞 3
|
浏览 104
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,j; int sn[100][100]; cin>>n; for(i=0;i<n;i++){ for(j...
P1532
字符串编辑距离 题解:暴力,有一说一这题真不好想,之前没做过的话考场很难想出来
zxjrheaven
回复 0
|
赞 0
|
浏览 5
#include <bits/stdc++.h> using namespace std; int main() { string str1, str2; cin >> str1 >> st...
P1023
IP地址 题解:新手易懂方法+易错总结
孙某人
回复 1
|
赞 25
|
浏览 1.4k
一开始不知道ip地址什么意思,看了个题解的解释以及易错点,一遍过的。 因为水平比较菜代码看着多,好多都基本一样复制粘贴加改一点的 思路: 1.合法的ip地址就是 数字1.数字2.数字3.数字4 &n...
P4356
二叉树的深度 题解:骗分法,过60%
kbgimf
回复 0
|
赞 6
|
浏览 474
#include<bits/stdc++.h> using namespace std; char s[1010]; int main(){ while(scanf("%s",s)!=EOF){ &nb...
P1740
是(四)素数 题解:素数筛时限不过解决办法
RingoCrystal
回复 0
|
赞 4
|
浏览 194
#include <bits/stdc++.h> using namespace std; /* bool contians4(int x){ while(x!=0){ if(x%10==4)return true; x/...
P1012
字符移动 题解:
MEGURI
回复 0
|
赞 10
|
浏览 456
#include<stdio.h> int main() { int i = 0; int j = 0; int k = 0; &n...
P2011
字符串替换 题解:find+replace
阿灿
回复 0
|
赞 2
|
浏览 119
#include<bits/stdc++.h> using namespace std; int main(){ string str; int flag=0; cin>>str; transform(str.begin(), str.end()...
P1624
ZIG-ZAG最长交替子序列 非dp
itachiabc
回复 0
|
赞 8
|
浏览 9.9k
把输入序列看成波, 所有元素都在区间[a,a+L]内,子序列的频率<=主序列的频率(震荡次数/L) 证明: 已存在某序列seq[n],n>=2, 在任意位置加入第n+1个元素k,设k左右元素分别为l,r且l<=r 若(l<=k<=r || k<l...
P1628
奇怪的题目
sherpahu
回复 0
|
赞 6
|
浏览 8.1k
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; while(cin>>n>>m){ if(n==1&&m==1)puts(...
P1309
欧拉回路 题解:连通且度数均为偶数
RingoCrystal
回复 0
|
赞 3
|
浏览 127
#include <bits/stdc++.h> using namespace std; const int MAXN = 1000; // 最大节点数 // 并查集数据结构,用于判断图是否连通 struct UnionFind { int pare...
P1318
火星A+B,真的迷
1603
回复 0
|
赞 2
|
浏览 9.1k
#include<cstdio> #include<string.h> #include<string> #include<algorithm> using namespace std; const int N = 50; int...
P1905
整数排序 题解:重定义比较或者直接重定义一个结构
RingoCrystal
回复 0
|
赞 1
|
浏览 123
#include <bits/stdc++.h> using namespace std; struct newInt{ int a; newInt():a(0){}; newInt(int a):a(a){}; int getl...
P1319
DreamJudge1319_并查集
陌上花i
回复 0
|
赞 2
|
浏览 7.0k
并查集可以看作一棵棵树组成的森林 每棵树实际都为图的一个连通图 已知,有N个点,那么把所有点都连通的最少边为 N-1 由于这些树内部都是连通的,可以把这些树看成一个新的点,最后看有几个点,假设为M,那么最少需要M-1条边能把整个图变成一个连通图 程序的关键点:find()...
P1010
排序 题解:采用冒泡排序将奇数分在左边,偶数在右边,然后找到奇偶分界点,后sta
cc12345
回复 0
|
赞 3
|
浏览 124
#include<bits/stdc++.h> using namespace std; bool cmp_up(int a,int b) { return a<b; } int main(){ int count; cin>>count; ...
P1563
迷宫 题解:
zcq107
回复 0
|
赞 14
|
浏览 381
注意每次输入都要对两个数组进行初始化操作memset,同时可以防止数组越界。 #include<bits/stdc++.h> using namespace std; const int N = 105; char g[N][N]; int d[N][N]; ...
P1338
特殊的排序规则
gallopzhang
回复 0
|
赞 3
|
浏览 5.3k
利用空格分别输入学号、姓名与成绩信息,编写比较函数实现排序规则: 1. 当C=1时,直接根据学号排序 2. 当C=2时,如果姓名相同,则根据学号排序;否则根据姓名排序 3. 当C=3时,如果成绩相同,则根据学号排序;否则根据成绩排序 #include <bits/...
P1091
Accepted答案-打折(C)
大白
回复 0
|
赞 4
|
浏览 12.0k
答案已通过,Accepted 我的算法思想如下: 黑色部分:折扣计算主体,if-else if 结构。 红色部分:数据输出部分,价格是4000时,不能输出4000.00,这个地方很容易出错。 代码如下: #include<stdio.h> int...
P1072
题解:相当于只有上下两个方向的迷宫问题
shirellen
回复 0
|
赞 4
|
浏览 1.2k
#include <iostream> #include<vector> #include <string> #include <algorithm> #include <queue> #includ...
P5247
最少纸币兑换数 题解:
admin
回复 0
|
赞 0
|
浏览 33
注意n的范围,有的同学可能第一眼认为是背包问题,然后发现超时,仔细看给的数是可以贪心的。
P1254
字符串排序 题解:sort秒杀
shiv15832
回复 0
|
赞 5
|
浏览 130
唯一需要注意的点在于:如果要用ls记录字符串的长度,字符串应定义为char s[50]而不是string类型,因为strlen()是c的函数,string是c++类型,二者不兼容。我认为不需要死记硬背,只要有点印象,看见编译报错能改对就可以了。参考别人的题解还有别的解决方案,只要类型一一对应就...
北京师范大学
22年北师计算机考研经验帖
cccccc
回复 0
|
赞 4
|
浏览 6.5k
我一战二战的时候走了很多弯路,当时就很希望能多一点经验帖,备考时也有各种感悟,因此大着胆子写个经验帖,希望大家能有所受益 ~ 1、基本情况: 初试成绩365分,其中政治72分,英语75分,数学122分,专业课95分。 本科双一流学校,电子信息类,跨考,学过C和数据结构但是编程只会MA...
P1027
学会使用字符串的find()
Keeshpku
回复 0
|
赞 2
|
浏览 3.3k
#include<bits/stdc++.h> using namespace std; int main(){ char x[120]; while(fgets(x,120,stdin) != NULL){ &nb...
中国科学院大学
2019中科院网络中心考研经验分享
CarlRepsy
回复 0
|
赞 1
|
浏览 12.3k
26号出的录取结果,到现在已经四五天了。本来觉得自己在考研中也没有总结出普遍适用的经验,但是想了想把自己整个过程写一写,大家在里面挑有用的看,也是很有意义的。 关于择校。一开始我就只在北京的学校里选,后来发现这些学校要不难度太大,要不...
P1156
质因数个数 题解:
18829636306
回复 0
|
赞 2
|
浏览 176
#include <bits/stdc++.h> using namespace std; int main() { long long int n; while (cin >> n) { ...
P1833
质数的个数 题解:素数筛
RingoCrystal
回复 0
|
赞 0
|
浏览 59
#include <bits/stdc++.h> using namespace std; const int N = 1e7+5; int main() { int a[N]={0}; for(int i=2;i*i<=N;i++){ ...
P1240
首字母大写 题解:
shiv15832
回复 0
|
赞 19
|
浏览 159
其实很简单的题目,定义一个bool flag表示当前位置需不需要转换大写,默认是需要,因为开头字母需要大写,转换之后flag置否,因为转换后不管是后面是什么都不需要大写(空格,标点,字母,数字),这题比较坑爹的一点是数字后面的字母不需要大写,比如4am不要转4Am,单独加一条判断就行了,如果不...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
题目难点:数学公式不断化解
4
逻辑很简单,但是实现却要小心多多
5
[置顶]计算机考研择校分析【25考研必读】
6
1017 幂次方 快速幂模板
7
A+B问题 题解:C
8
负二进制 题解:
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
日期 题解: