首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
C语言 1044
程序结果
aichitudou
回复 9+
|
赞 0
|
浏览 39.2k
min=-34
C语言 1043
基本输入输出及流程控制
aichitudou
回复 9+
|
赞 0
|
浏览 44.3k
no
P1000
A+B问题 题解:C
hellokitty1679
回复 1
|
赞 96
|
浏览 2.8k
#include<stdio.h> int main(void) { long long A,B; scanf("%lld %lld",&A,&B); &nbs...
P1798
数组排序 题解:isdigit()函数判断该字符串是否为数字字符串
DestinyCares+++
回复 0
|
赞 2
|
浏览 724
#include<iostream> #include<cstring> #include<string> #include<vector> #include<queue> #include<stack> #i...
P1406
守形数 题解:长度判定用求模方法计算
RingoCrystal
回复 0
|
赞 1
|
浏览 319
#include <bits/stdc++.h> using namespace std; bool judge(int x){ int y=x*x; int size=1; int t=x; while(x!=0){ ...
P1307
组队刷题 题解:
chenxx
回复 0
|
赞 12
|
浏览 281
#include<bits/stdc++.h> using namespace std; struct node{ int num; int e; doubl...
P895
正方形数组的数目 是一道经典的用回溯法解决排列组合的问题
123456608
回复 0
|
赞 3
|
浏览 302
//895-正方形数组的数目 #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; ...
P1363
计算两个矩阵的乘积 题解:顺手写了一个通用的
RingoCrystal
回复 0
|
赞 2
|
浏览 267
#include <bits/stdc++.h> using namespace std; // 矩阵乘法函数 vector<vector<int>> matrixMultiply(const vector<vector<int&g...
P1010
排序 题解:
jaygee_
回复 0
|
赞 11
|
浏览 353
快速排序改比较方式 #include <bits/stdc++.h> using namespace std; const int N = 100005; int a[N]; bool cmp(int x, int y) { // 奇数在前,偶数...
中国科学院大学
22中科院计算机考研经验
Deboraetege
回复 0
|
赞 1
|
浏览 8.8k
22计算机考研数一英一408上岸中科院计算所 我是二战的,本科杭电cs科班出身,今年11408考了384,每个人的情况不同,我说的不一定都是对的,也只是我自己的看法,这经验贴只能作为你大概的参考,再根据自身做个调整吧,只要别走弯路就行。主要就讲一讲择校选择、复习规划,还有计算所复试的一些...
P1822
c++
My_opt
回复 0
|
赞 1
|
浏览 4.5k
#include <iostream> using namespace std; const int N = 1e8; int cnt, tmp; int main() { double res = 0; for (int i = 1; i ...
P1566
确定比赛名次 题解:拓扑排序
snake
回复 0
|
赞 22
|
浏览 1.8k
解题思路:拓扑排序裸题。所谓的拓扑排序就是将入度为0的节点编号入队(因题目要求输出编号小的队伍在前面,所以采用最小堆优先队列来维护条件),当队首元素出队时,依次以它为尾的弧的另一端节点入度减1,同样只要有节点的入度减完为0的就其入队,循环直至不存在无前驱的顶点。 当然此题不存在有向环,因...
P1008
0和1的个数 题解:暴力
zxjrheaven
回复 0
|
赞 2
|
浏览 204
#include <bits/stdc++.h> using namespace std; int num[32]={0}; int main() { int n; cin>>...
P1091
促销计算 题解:送分
williams
回复 0
|
赞 14
|
浏览 1.2k
#include <stdio.h> int main(){ double money; scanf("%lf",&money); if(money>=1000&&money<2000) printf("d...
P1476
查找学生信息2 题解:
戴戴砺山河
回复 0
|
赞 3
|
浏览 307
有无大佬帮忙看看,本地没问题,为什么提交的时候,一会过了,一会没过啊? #include <sstream> #include <iostream> #include <unordered_map> using namespace std...
P1547
简单题
aksunlight
回复 0
|
赞 1
|
浏览 9.0k
#include"stdio.h" int main(void){ int n; int tmp, ans = 0; scanf("%d&...
P1715
十进制转二进制 题解:long long 就能过,二进制用string存
RingoCrystal
回复 0
|
赞 4
|
浏览 314
#include <bits/stdc++.h> using namespace std; int main(){ long long x; while(cin>>x){ string ans; whi...
P1891
元数据 题解:
山崎友希
回复 0
|
赞 0
|
浏览 70
#include<stdio.h> #include<string.h> #include<math.h> int main(){//那我问你,10的九次方是多少? //1000000000 确实 这就是10的9次方 //10000...
P1024
二元组整数 题解:单链表+冒泡排序
AiLanKeSi
回复 0
|
赞 2
|
浏览 215
#include <stdio.h> #include <string.h> #include <malloc.h> typedef struct Node{ int a; // 二元数组第一数据...
P1474
服了,输出和答案一点问题都没有啊,就是通不过
零壹
回复 7
|
赞 2
|
浏览 3.2k
为什么呀 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> int main() { char a[1005], b[1005]; while...
P1584
逆序对 题解:直接暴力会超时,借助插入排序算法,虽然最坏仍未O(n^2),但仍比
我要上岸!
回复 0
|
赞 2
|
浏览 1.1k
#include<bits/stdc++.h> using namespace std; int insert_sort(int arr[], int length) { int count = 0; &n...
P1288
Zero-complexity Tran
jzy_new
回复 0
|
赞 4
|
浏览 4.3k
题解 (-1 000 000 000 000 000 ≤ ai ≤ 1 000 000 000 000 000).就要用longlong类型了,长整型的输入输出用cin最保险,因为在win和linux下长整型的scanf、printf表达不同 首先输入每个数字,入栈push,当...
P1717
字符串匹配 - 兰州大学 题解:
promising
回复 0
|
赞 7
|
浏览 860
可以使用include<string.h>解决,strstr() 函数作用:搜索一个字符串在另一个字符串中的第一次出现的位置,若找到所搜索的字符串,则该函数返回第一次匹配的字符串的地址,若未找到所搜索的字符串,则返回NULL。所以我们要用到指针来保存位置。 #include&...
华东师范大学
2020应届跨考华东师范计算机学硕经验分享
wyjoutstanding
回复 0
|
赞 2
|
浏览 9.3k
前言 首先介绍一下本人情况,我本科是就读于合肥工业大学数学学院信息与计算科学专业,也修过计算机的相关课程,算是半跨吧。 此篇经验贴主要是初试内容,复试由于今年疫情影响其实没有很大的参考性,大家如果想了解复试情况建议去看看19年的学长们的帖子,以及cc.malic.xyz这个网站有收...
P1383
查找第K小数 题解:
easymoney
回复 0
|
赞 3
|
浏览 779
#include <stdio.h> #include <iostream> #include <algorithm> #include <string> #include <map> using namespace s...
站内公告
致所有N诺er的一封信
admin
回复 3
|
赞 4
|
浏览 10.1k
亲爱的N诺er,大家好~ 这是一封迟来的道歉信,可能大家也发现了,最近一年N诺都没有人维护了。原因很多,最核心的原因还是因为亏损严重,经营不下去,大家散伙了。 N诺成立也有几年了,实际上N诺的盈利连服务器的费用都不能完全覆盖,...
P1053
偷菜时间表 题解:
orderrr
回复 0
|
赞 1
|
浏览 857
/* 思想: 1、将每种菜的用时换算为分钟 2、将提醒时间加到现在的时间上 3、有可能要第二天了,所以小时数应该在24:00时变为0:00 */ #include...
P1044
阶乘和 题解(小白超易懂,循环做法或者递归):
致敬大佬
回复 0
|
赞 5
|
浏览 927
从y总的求组合数来的,到这道题几乎降维打击 #### 循环做 #include <iostream> #include <algorithm> using namespace std; typedef long long LL; cons...
P1561
重点是建树方法
我才不怕编程
回复 1
|
赞 11
|
浏览 4.5k
#include <bits/stdc++.h> using namespace std; typedef struct node{ char data; struct node *lchi...
P1019
使用哈希,感觉应该最简单了
Tomb
回复 0
|
赞 5
|
浏览 9.7k
#include<bits/stdc++.h> #include<stdio.h> using namespace std; int main(){ char s[1000]; int map[128] ...
P1035
DP优化解法同1123小偷的背包,dp数组大一点就过了
考小研
回复 4
|
赞 3
|
浏览 1.2k
#include<cstdio> #include<cstring> int main() { int S, n; while(scanf("%d%d", &S, &n) != EOF){ int dp[201], w[101]; ...
P1840
南京理工-搬箱子 题解:STL经典问题
RingoCrystal
回复 0
|
赞 3
|
浏览 116
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int>a(n),dp(n,...
P1380
二进制数 题解:
myming
回复 0
|
赞 2
|
浏览 520
#include<bits/stdc++.h> using namespace std; void f(unsigned int x){ char y[1024] = {0}; int i = ...
P1320
统计字符 题解:
wwj0102
回复 0
|
赞 4
|
浏览 172
#include<bits/stdc++.h> using namespace std; int main(){ string s,t; while(getline(cin,s)){ if(s == "#") break; getline(cin,t...
P1387
读懂题,一步一步做,很简单
wwyycc
回复 0
|
赞 2
|
浏览 5.1k
#include<bits/stdc++.h> using namespace std; int main(){ string str,order; int n; while(ge...
综合
无法正确通过题目都是哪些原因造成的?
admin
回复 80
|
赞 1009
|
浏览 223.8k
同学们首先要知道DreamJudge返回的结果分别代表了什么意思 Accepted:答案正确,恭喜你正确通过了这道题目。 Wrong Answer: 答案错误,出现这个错误的原因一般是你的程序实现或思路出现了问题,或者数据范围边界没有考虑到。 Runtime Er...
P1208
2048的游戏 题解:超简单的c语言
dhh390
回复 1
|
赞 5
|
浏览 189
#include <stdio.h> #include <string.h> #include<stdlib.h> #include<math.h> #include<time.h> int main() {  ...
P1544
合并果子 题解:c++ priority_queue<int> 实现
Cookie‘s AE86
回复 0
|
赞 13
|
浏览 865
#include<bits/stdc++.h> using namespace std; int main(){ int n; priority_queue<int, vector<int>,...
P1454
P1454 - 反序数 - C
wugenqiang
回复 0
|
赞 3
|
浏览 11.5k
/*设N是一个四位数,它的9倍恰好是其反序数 (例如:1234的反序数是4321) 求N的值*/ #include <stdio.h> int reverse(int n); int main(){ int i; for(i=1000;i<...
P1557
寻找变化前01序列(easy题)
kas
回复 0
|
赞 5
|
浏览 5.7k
#include<iostream> using namespace std; int main() { int n,size,i,cnt; string str,ans; &nbs...
P1315
二叉树,不过父节点是孩子,两个子节点是父母
lielie
回复 0
|
赞 2
|
浏览 1.4k
用map实现二叉树,使用索引,而不是用指针,这样代码看着比较简洁。但是map是基于红黑树做的,可能相比于直接用指针操作效率会稍微有点影响。 #include <iostream> #include <map> #include <string>...
P1179
密码翻译 题解:暴力,题目有问题,数组得开大点才行
zxjrheaven
回复 0
|
赞 0
|
浏览 86
#include <bits/stdc++.h> using namespace std; int num[800]; int main() { string str; while(ge...
P1704
输出图形 题解:简单循环
RingoCrystal
回复 0
|
赞 4
|
浏览 291
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int k=1; for(int i...
P1031
判断是否是整数 题解:暴力
zxjrheaven
回复 0
|
赞 2
|
浏览 210
#include <bits/stdc++.h> using namespace std; int main() { double a; while(cin>>a) ...
计算机网络
【2025年】408计算机统考真题模拟考试 - 第47题答案笔记
Enzo104
回复 0
|
赞 0
|
浏览 279
P1007
整除 题解:
Candour
回复 0
|
赞 15
|
浏览 1.1k
#include<bits/stdc++.h> using namespace std; int cnt; int main() { for(int i = 100; i <= 1000; i ++) { if(i %...
P1452
c++
My_opt
回复 0
|
赞 5
|
浏览 5.4k
#include <iostream> #include <map> #include <algorithm> using namespace std; const int N = 1010; char x; string s; map...
P1285
最小面积子矩阵 题解:
快乐小土狗
回复 0
|
赞 3
|
浏览 1.2k
可以利用尺取法解决这个问题 #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #define MAX 102 int ...
P1384
矩阵乘法(快速幂)
不知道谁
回复 0
|
赞 11
|
浏览 4.0k
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=11,INF = 0x3f3f3f3f;; typedef pair<int, int> PII;...
P2009
温度转换计算 题解:
G517
回复 0
|
赞 5
|
浏览 582
很基础的一道 #include <stdio.h> int main(void) { double celsius; double fahrenheit; scanf("%lf", &fahrenheit); ...
P1036
三个数的最大值 题解:
活着的传奇
回复 0
|
赞 3
|
浏览 951
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; printf("%d",c>(a>b?a:b)?c:...
P1240
首字母大写 题解:
ccccccyes
回复 0
|
赞 31
|
浏览 2.0k
//老问题:if判定等号是两个 //str.size()-1 <= 数组访问越界了 RE错误 //存在换行,获取所有内容 //单词首的判定 //03/09/24 10:30 //06/09/24 20:18 #include <iost...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
题目难点:数学公式不断化解
4
[置顶]计算机考研择校分析【25考研必读】
5
逻辑很简单,但是实现却要小心多多
6
A+B问题 题解:C
7
1017 幂次方 快速幂模板
8
日期 题解:
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
负二进制 题解: