主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
搜索
全 部
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P1393
矩阵转置 题解:
lenny
VIP
回复 1
|
赞 0
|
浏览 819
这题只需要用到swap()函数即可,输入矩阵之后直接使用swap()函数进行交换即可,最后注意输出结果 #include <bits/stdc++.h> using namespace std; const int N = 1000; int main() { ...
P1810
求众数 题解:
月溅星河
VIP
回复 0
|
赞 0
|
浏览 584
#include <bits/stdc++.h> int main(){ int n[100]; int m;//输入的次数 scanf("%d",&m); int i=0; while(i<m){ scanf("%d", &...
P1001
(直接bitset格式化输出一行解决
Hhhhhq
回复 5
|
赞 5
|
浏览 13.3k
就是个输出0-64的二进制,直接调bitset一行解决(他不香嘛 #include<cstdio> #include<iostream> #include<bitset> using namespace std; int main(){ &n...
P1292
字母统计 题解:
Apricityxx
回复 0
|
赞 0
|
浏览 683
using namespace std; int main(){ int ans[30]={0}; string x; while(cin>>x){ &n...
P1703
最大子串和 题解:
月溅星河
VIP
回复 0
|
赞 0
|
浏览 804
#include<bits/stdc++.h> using namespace std; const int maxn=110; int a[maxn]; int dp[maxn],ansp,ansq,ans; void DP(int n) { int...
P1084
陶陶摘苹果 题解:
Pure
回复 0
|
赞 1
|
浏览 523
#include <stdio.h> #include <stdlib.h> int main() { int appleh[10], benchh, taoh, bentaoh, i; benchh = 30; //板凳的高度 ...
我要提问
共同体里的数组
Lobji
回复 1
|
赞 0
|
浏览 459
大佬们这是什么意思这个程序里的这个数组U[2]。 #include<stdio.h> union utype{ int i; float f; }U[2]; ...
P1722
身份证校验 题解:
Apricityxx
回复 0
|
赞 1
|
浏览 835
// // 身份证校验.cpp // Algorithm // // Created by Apricity on 2023/10/26. /*身份证号的校验身份证号码共18位,最后一位是校验位。A[18] : aaaaaabb...
P1012
字符移动 题解:
Apricityxx
回复 0
|
赞 1
|
浏览 741
// // 字符移动.cpp // Algorithm // // Created by Apricity on 2023/10/25. // #include<iostream> #...
P1493
连续合数段 题解:
Pure
回复 0
|
赞 1
|
浏览 633
#include<bits/stdc++.h> int a[1000005]; int count1 = 0; int maxn = 1, tag = 0; //判断合数 bool judge(int n) { for (int i = 2; i &...
P1259
进制转换2 题解:
黄东龙
VIP
回复 0
|
赞 0
|
浏览 765
考研北大第67天 离散课前答题 #include<iostream> #include<stdio.h> #include<string.h> using namespace std; int num16to1...
P1454
反序数 题解:
黄东龙
VIP
回复 0
|
赞 1
|
浏览 931
//冲击北大的第60天 #include<iostream> #include<stdio.h> #include<string.h> #include<algorithm> #include<stack> ...
P1054
塑身菜单 题解:
Pure
回复 0
|
赞 0
|
浏览 696
#include <iostream> using namespace std; int main() { int i,s=0,k; struct menu { char name[100]; int hot; }a[15]={ {...
学习交流
一道关于图的度的选择题
LukeSu
回复 2
|
赞 1
|
浏览 688
D项哪里错了呢?顶点的度比就是它的入度+出度么?
P1285
最小面积子矩阵 题解:
快乐小土狗
回复 0
|
赞 0
|
浏览 551
可以利用尺取法解决这个问题 #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #define MAX 102 int ...
湖北大学
湖北大学计算机复试总结
考研小助手
回复 0
|
赞 0
|
浏览 121
复试解读 复试分为线下复试和线上复试两种。(前两年都是线上复试,按照疫情的情况来说,如果明年二三月份情况没有得到缓解,大概率还是线上复试) 线下复试: 面试: 分为A.B两个房间 房间A:英文自我介绍,抽一题英文提问,并用英文回答。例如:介绍你学过的专业课。 ...
综合
2024年专业课改考信息汇总 -- 持续更新中
admin
SVIP
回复 2
|
赞 7
|
浏览 9.9k
福建工程学院 为进一步做好学科及研究生培养工作,经福建工程学院计算机科学与数学学院党政联席会议研究,我院拟对2024年“计算机技术”专业硕士研究生招生考试初试科目进行如下调整: 原“数据结构和C语言程序设计”更改为“4...
P1181
中位数 题解:
黄东龙
VIP
回复 0
|
赞 0
|
浏览 588
简单题只需要使用简单排序加上求取中位数就可以做到直接下标访问中位数 唯一考虑:奇数长和偶数长的中位数切入点不一样 #include<iostream> #include<stdio.h> #include<string.h>...
P1179
密码翻译 题解:
黄东龙
VIP
回复 2
|
赞 0
|
浏览 678
我自己写的考研第一个题解:使用isalpha函数判断后再加入其他分支情况,题并不难但并未AC : #include<iostream> #include<stdio.h> #include<string.h> #include<algori...
P1180
最简真分数 题解:
黄东龙
VIP
回复 0
|
赞 0
|
浏览 526
这道题需要借助gcd思想,寻找2起步的公因子k,看看会不会同时满足 if(a[i]%k==0&&a[j]%k==0) 是变量记号flag==1; 则不计数 不然sum++;最开始使用简单排序 基准数 比较数思想 超出规定时间: 随机取两个数 代码表...
P1240
首字母大写 题解:
dcsy
回复 2
|
赞 0
|
浏览 727
60%通过率。看的脑袋发昏,帮帮孩子吧,好心人 #include<stdio.h> int main(){ char str[100]; fgets(str, sizeof(str), stdin); int i = 0,k = 0; ...
精彩爆料
考研预报名马上开始了,热门地区的考点需要抢~
考研日报
VIP
回复 1
|
赞 2
|
浏览 2.6k
快要预报名了,大家有没有一丝丝紧张感呢? 这篇文章会跟大家详细说明:报名时间、需要抢的报考点、不同类型考生的报名问题、一些报名注意事项等。 一、报名时间 首先,24考研的预报名时间是从2023年9月24日到27日,每天9:00-22:00,一共持续...
P1057
数字模式的识别 题解:
月溅星河
VIP
回复 0
|
赞 0
|
浏览 481
#include<iostream> #include<stack> #include<cstring> using namespace std; #define INF 0x3f3f3f3f int main() { int n;...
操作系统
解决死锁的4种基本方法
Titi
回复 0
|
赞 1
|
浏览 1.0k
解决死锁的4种基本方法 预防死锁 避免死锁 检测死锁 解除死锁 预防死锁 通过设置一些限制条件,去破坏产生死锁的必要条件 1)互斥条件:指进程对所分配到的资源进行排它性使用,即在一段时间内某资源只...
我要提问
【C语言】为什么一直答案错误,明明运行的结果都一模一样
卫谡
回复 1
|
赞 1
|
浏览 616
P1415
找位置 题解:
玛奇朵呀
回复 3
|
赞 0
|
浏览 482
请问是哪里出了问题呢?在本地运行测试的时候结果正确 #include<stdio.h> #include<string.h> #define N 1000 void main(){ char a[N]; ...
P1082
Hanoi塔问题 题解:递归
月溅星河
VIP
回复 0
|
赞 1
|
浏览 1.0k
Hanoi问题绝对是一个理解递归的好题,对一个将N个圆盘从A移动到C的问题,我们可以将它分解成三步 将其上的N-1个圆盘从A移动到B。 将第N个圆盘从A移动到C。 将B上的N-1个圆盘移动到C。 每次移动都有一个起点S,一个终点T,还有一个中介M,另外还有想要移动的盘子的数目cnt...
备考心情
1
陈诚
回复 0
|
赞 0
|
浏览 499
1
P1910
Minimum_Sum 题解:
AidenP
SVIP
回复 0
|
赞 0
|
浏览 505
可持久化线段树模版题 根据下标建立主席树,每次查询区间中间的数所处的位置,然后区间求和 #include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e5 ...
综合
机试训练--Day19
teardrop
VIP
回复 0
|
赞 0
|
浏览 668
把之前pat做过的部分题再练习一下: 1.电话账单 电话账单 2.银行排队 银行排队 3.求平均值 求平均值 4.家产 家产 5.弹出序列 弹出序列 ...
1
...
56
57
58
59
60
...
296
我要提问
近期热门
1
N诺成就值出炉,帮你一眼识别大神
2
机试如何才能快速提高?
3
[置顶]计算机考研择校分析【25考研必读】
4
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
5
1377旋转矩阵
6
ip地址(C)
7
简单易懂
8
C++递归解法,有注释
9
1017 幂次方 快速幂模板
10
计算机考研复试笔记——操作系统篇