首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
C语言 1052
程序运行结果
Jackeylove
回复 9+
|
赞 0
|
浏览 25.0k
2,1
P1879
钥匙 题解:简单模拟加前缀和
Y969432769845
回复 0
|
赞 2
|
浏览 205
#include <bits/stdc++.h> using namespace std; int main() { int n, k, door=1, j=1; cin >> n ...
P1067
题解:括号的匹配
mzymzyo
回复 4
|
赞 1
|
浏览 10.2k
这道题很明显用栈来写。 遍历字符串,遇到左括号时,先和栈顶元素判断是否符合括号优先级,不符合直接GG。否则入栈。 遇到右括号时,看和栈顶的括号是否相匹配,是的话弹出栈顶元素,不是的话直接GG。 最后再判断一下栈内元素是否全部弹出,栈内还有括号未匹配,直接GG,否则合法。 ...
P1542
这是第几天? 题解:求助大佬,为什么按注释掉的部分写只有66%
孙某人
回复 8
|
赞 3
|
浏览 914
#include <iostream> using namespace std; int main(){ /*char a[20]; for(int i=0;i<20;i++) a[i]=0; cin >>a; int yea...
P1551
判断二叉树是否对称 题解:
今夕何夕12211
回复 1
|
赞 4
|
浏览 847
求助 显示超时 准确率只有77% #include <stdio.h> #include <string.h> #include <math.h> int check(char a[],int x,int y) { ...
P1091
促销计算 题解:
emperorT
回复 0
|
赞 2
|
浏览 996
#include<bits/stdc++.h> using namespace std; int main(){ float n; while(cin>>n){ if(n<1000){ cout<<"discount=1,pay=...
西南财经大学
2021考研:二本机械二战西南财经大学计算机(第一名)上岸经验贴
zcc
回复 0
|
赞 2
|
浏览 7.1k
个人情况简介: 初试:二战,总分364,政治62,英一53,数一130,408专业课119。初试排名第二。 (值得一提的是:一战数一58,英一74) 复试:面试85,综合排名第一,录取为西南财经大学计算机软件与理论专业(学硕)。 个人学习背景:本科重庆科技学院(二本),...
P1544
合并果子 题解:栈+队列也可以
Śś
回复 0
|
赞 1
|
浏览 703
#include<iostream> #include<stack> #include<queue> #include<algorithm> using namespace std; int Fru[10000+1],n; sta...
P1418
STL解法
Timtam
回复 1
|
赞 2
|
浏览 7.6k
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> v; string s; int max,min; max=0,min=1500; whi...
P1531
求矩阵的鞍点 题解:C
小王桐学
回复 2
|
赞 4
|
浏览 988
#include <stdio.h> int SaddlePoint(int a[][10],int i,int j,int n,int m) { int k; for(k = 0; k < m; k++) //判断a[i][j]是否在行上最大 if...
P3684
n个数的最小公倍数 题解:
望雨天
回复 0
|
赞 5
|
浏览 537
算法思想:从前到后两两求解最小公倍数 求x,y两数的最小公倍数的方法,可以使用c++的库函数__gcd(x,y)先求解出x,y的最大公约数,而最小公倍数=x*y/最大公约数 #include<iostream> #include<algorithm> u...
P1264
二叉树2 题解:修改先序遍历
西电机试专家
回复 0
|
赞 13
|
浏览 455
//还有不到一个月复试,大家一定要上岸啊 #include<bits/stdc++.h> using namespace std; int cnt=0;//(count 是标准库中的一个函数名) //递归三要素:递归终止条件,递归式,递归返回结果 void...
P1031
判断是否是整数(C++)题解:
Candour
回复 0
|
赞 3
|
浏览 809
#include<bits/stdc++.h> using namespace std; double n; int main() { while(cin >> n) { if(n - (int)n == 0) cout <<...
P1091
促销计算 题解:
promising
回复 0
|
赞 2
|
浏览 752
#include<stdio.h> int main() { double count; scanf("%lf",&count);  ...
P1156
简单的题解
lihui_striver
回复 0
|
赞 2
|
浏览 8.5k
#include<bits/stdc++.h> using namespace std; const int maxn=1e3+7; int main(){ int n; while(cin>>n){ int cnt=...
P1363
计算两个矩阵的乘积 题解:
DestinyCares+++
回复 0
|
赞 1
|
浏览 849
#include<iostream> using namespace std; int a[5][5]; int b[5][5]; int c[5][5]; int main() { for (int i = 1; i &l...
P1006
字符串翻转 题解:getline
18919717626
回复 1
|
赞 15
|
浏览 1.1k
#include <iostream> using namespace std; int main(){ string s; getline(cin,s); for(int i = s.size() - 1;i >= 0;i --){ ...
P1307
组队刷题 题解:
chenxx
回复 0
|
赞 12
|
浏览 327
#include<bits/stdc++.h> using namespace std; struct node{ int num; int e; doubl...
P1259
进制转换2 题解:scanf("%x",&x)这样不就好了吗兄弟们
阿灿
回复 0
|
赞 3
|
浏览 385
#include<bits/stdc++.h> using namespace std; int main(){ int x; while(scanf("%x",&x)!=EOF){ cout<<x<<endl; } ...
P1290
日期差值 题解:
emoji
回复 0
|
赞 3
|
浏览 244
#include<stdio.h> const int x[12]={31,28,31,30,31,30,31,31,30,31,30,31}; const int y[12]={31,29,31,30,31,30,31,31,30,31,30,31}; typede...
P1731
最长公共子序列 题解:
ZCD
回复 0
|
赞 7
|
浏览 1.1k
#include<iostream> #include<string> #include<cstring> using namespace std; int dp[1011][1011]; int max(int a, int b) { &nbs...
杭州电子科技大学
杭州电子科技大学网络空间安全学院2025年硕士研究生招生密码专业(145200)
考研小帮手
回复 0
|
赞 0
|
浏览 52
杭州电子科技大学网络空间安全学院2025年硕士研究生招生密码专业(145200)一志愿考生复试名单.pdf
P1004
句子正序解题思路
snake
回复 0
|
赞 5
|
浏览 5.5k
读取的时候使用getline不要使用cin 然后使用c++的string操作可以让代码更简洁 #include <bits/stdc++.h> using namespace std; class Solution { public: strin...
P1399
P1399 解题思路分享
杨德胜
回复 0
|
赞 2
|
浏览 8.6k
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[105]; for(int i=0; i<n; i++) cin&g...
P1472
(1472)此题核心在于问题分解。(已修改)
tyu007
回复 0
|
赞 5
|
浏览 9.1k
结合图例来说明。 输入 3 0 2 2 0 2 0 2 0 2 0 2 2 2 2 0 2 输出 4 0 0 0 4 0 0 0 4 2 0 0 4 2 0 0 由此例可知。 第...
数据结构
【2024年】408计算机统考真题模拟考试 - 第41题答案笔记
admin
回复 0
|
赞 0
|
浏览 107
(1)算法的基本设计思想 拓扑排序是对有向无环图(DAG)的顶点进行排序的一种算法,使得对于图中的任意一条有向边 (u, v),顶点 u 在排序结果中都出现在顶点 v 之前。要判断一个有向图是否存在唯一的拓扑序列,可以按照以下步骤进行: 初始化入度数组:遍历邻接矩阵,统计每个顶点的...
P5132
车厢的重组 题解:
RingoCrystal
回复 0
|
赞 5
|
浏览 481
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { int a[n]; for(int i=0; i<n; i++)ci...
P1623
为什么正确率只有66%哪里错了呀求指正
123456608
回复 2
|
赞 2
|
浏览 241
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ long long res=0; int f=0; int n=s.le...
P1838
括号匹配2 题解:数组模拟
dabaie123
回复 0
|
赞 0
|
浏览 170
#include<bits/stdc++.h> using namespace std; const int N =10005; //数组模拟栈 int main(){ char a[N]={'0'}; &nbs...
P1025
链表合并 题解:
Candour
回复 0
|
赞 4
|
浏览 895
#include<bits/stdc++.h> using namespace std; vector<int> A; int n, m; int main() { cin >> n; for(int i = 0; i &...
P1151
成绩排序 题解:暴力冒泡排序,但只有66%后超时
cc12345
回复 1
|
赞 5
|
浏览 375
#include <bits/stdc++.h> using namespace std; // 定义学生结构体 struct Student { string name; // 学生姓名 int score; // 学生分数 }; ...
P1387
查找 - 北邮 题解:过了,替换长度可能不一样,用到了string的erase函
LHXLLLLL
回复 1
|
赞 7
|
浏览 1.4k
#include<bits/stdc++.h> using namespace std; void reverse(string &s, int begin, int end) { for (int i = begin, j = end; i...
P1476
查找学生信息2 题解:map的基本用法
carrot_huan
回复 0
|
赞 3
|
浏览 305
#include<iostream> #include<map> #include<string> using namespace std; struct Info { string name;  ...
P1947
字符串距离 题解:
必上贵大
回复 0
|
赞 5
|
浏览 289
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; struct Pair { &nb...
P1018
击鼓传花 题解:队列解题
gzulianxisheng
回复 0
|
赞 1
|
浏览 988
#include <bits/stdc++.h> using namespace std; int main(){ queue<int> Q; int n; &nb...
P1885
分解质因数
max39
回复 0
|
赞 6
|
浏览 5.3k
我们直接从 2 开始除,除到他的 sqrt(n) 向下取整即可。这样除出来每一个能除尽的数一定都是质数。 由于每次我们都把遇到能取余的数和他的倍数都除尽了,所以下一个能除尽的一定也是质数(还是进行了筛法)。 同时他成对的约数(大于 sqrt(n) 向下取整 的那个)也提前出现了。 ...
P1881
安全驾驶 题解:最后一辆车走完全程所需时间,等于前面所有车中,最慢的一辆走完其路
兰诺
回复 0
|
赞 3
|
浏览 133
#include<iostream> #include<cstdio> #include<vector> using namespace std; int main(){ double d,tmp1,...
P1261
字符串排序3 题解:C题解
小王桐学
回复 0
|
赞 3
|
浏览 1.1k
无语!!!! #include <stdio.h> #include <string.h> void Sort(char s[][100],int n) { int i,j; char t[100]; for(i = 0; i < ...
P1000
发布一个python解法
admin
回复 0
|
赞 7
|
浏览 12.6k
while True: try: a, b = map(int, input().split()) c = a+b print(c) except: break 仅供大家参考
P1016
字符分类 题解:
小酒
回复 0
|
赞 1
|
浏览 719
1016解题思路 #include <bits/stdc++.h> using namespace std; int main() { char a[105]={0};//输入字符且保存字母 char b[105]={0};//保存数字 j char ...
P1422
进制转换3 题解:思想:m->10->n
中国人民万岁
回复 2
|
赞 3
|
浏览 940
#include <bits/stdc++.h> using namespace std; #define ll long long int val(char x) { if (x >= '0' &&a...
P1909
乘法 题解:注意重复,map标记即可
RingoCrystal
回复 2
|
赞 8
|
浏览 480
#include <bits/stdc++.h> using namespace std; int main() { int n,m,k; while(cin>>n>>m>>k){ int n1=n,m1=m; ...
P1642
字符串区间翻转 题解:ac80的同学应该是没有设置多组输入,这题也没说多组输入啊
damowanghwj
回复 0
|
赞 18
|
浏览 1.3k
#include<bits/stdc++.h> using namespace std; const int N = 1e7+5; int arr[N]; int dp[N]; //char s[N]; int main() { int n...
P1419
stringstream+01背包
sherpahu
回复 0
|
赞 2
|
浏览 8.5k
#include <bits/stdc++.h> using namespace std; bool isNum(string&s){ for(char c:s){ if(!('0'<=c&&c<='9'))r...
P1111
斐波那契数列 题解:dp
RingoCrystal
回复 0
|
赞 8
|
浏览 551
#include <bits/stdc++.h> using namespace std; int main(){ int n; long long a[80]; a[0]=a[1]=1; a[2]=2; for(int...
P1590
快速排序 题解:为什么qsort过不了而sort能过
xjnotywlq
回复 1
|
赞 4
|
浏览 866
c++: #include <bits/stdc++.h> using namespace std; int n, a[100100]; int main() { int n; cin >> n; for (int i = 1; i <...
P1435
一元二次方程 题解:
山崎友希
回复 0
|
赞 2
|
浏览 126
#include<stdio.h> #include<math.h> int main(){ int a,b,c;//一元二次方程的系数 int m; &nb...
杭州电子科技大学
杭州电子科技大学2025年硕士研究生招生考试拟招生计划
考研小帮手
回复 0
|
赞 1
|
浏览 30
根据教育部和浙江省教育考试院相关文件要求,现将2025年硕士研究生拟招生计划公布如下: 说明:拟招生计划会根据一志愿复试以及导师跨学院带指标招生等情况进行适当调整,各专业招生计划以实际招生为准。
P1034
水仙花数 题解:
小酒
回复 0
|
赞 5
|
浏览 993
1034解题思路 #include <bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m) { in...
P1156
质因数个数 题解:递归解法
youzi
回复 0
|
赞 3
|
浏览 240
#include<stdio.h> int Prime(int n){//判定素数 if(n <= 1) return 0;//0和1不是素数 if(n == 2 || n == 3) return 1; &...
重庆大学
2022重庆大学计算机917考研经验贴
Coko.QY
回复 0
|
赞 1
|
浏览 7.4k
前言 首先介绍本人的基本情况,本科就读于211,科班出身,无科研经历。大学里的高数和线代成绩都是中等,考研备考期间才通过的英语四级考试,专业课成绩均90出头。考研报考的是重庆大学计算机专硕最后总分为383分。考研的路途一波三折,最后很荣幸能被重庆大学拟录取,很感谢在考研道路上各位学长学姐...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
题目难点:数学公式不断化解
4
[置顶]计算机考研择校分析【25考研必读】
5
逻辑很简单,但是实现却要小心多多
6
A+B问题 题解:C
7
1017 幂次方 快速幂模板
8
日期 题解:
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
负二进制 题解: