主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
搜索
全 部
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P1292
字母统计 题解:
红毛舒肤佳
回复 0
|
赞 0
|
浏览 202
#include <bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; int a[26...
P1473
字符棱形 题解:照着输出
1935569240
回复 0
|
赞 0
|
浏览 179
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int n; &nbs...
P1013
判断素数 题解:0和1不是素数
光明守护神
回复 0
|
赞 0
|
浏览 154
.
P1396
二叉排序树 - 华科 题解:简单代码如下:
1935569240
回复 0
|
赞 0
|
浏览 164
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { int data; &...
P1317
二叉搜索树 题解:代码如下:请参考
1935569240
回复 0
|
赞 0
|
浏览 194
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { char data; ...
P1411
二叉排序树2 题解:简单代码如下:
1935569240
回复 0
|
赞 0
|
浏览 202
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { int data; &...
P1818
是否存在环 题解:
Westbrook0Wzh10
回复 0
|
赞 0
|
浏览 217
#include <stdio.h> #include <stdbool.h> #define MAX_NODES 1000 typedef struct { int dest; struct N...
P1152
约数的个数 题解:认真分析,最好用sqrt,还要考虑例如6*6这种情况
孙某人
回复 0
|
赞 0
|
浏览 128
#include <iostream> #include <math.h> #include <algorithm> #include <string.h> using namespace std; int main(){ ...
P1015
单链表 题解:
熹微
回复 3
|
赞 0
|
浏览 265
兄弟们,为什么我这个再编译器下运行是可以的,而再平台上运行时,一直说运行时错误,这个原因是什么呢? #include<stdio.h> #include<stdlib.h> typedef struct Node { int El...
P1392
杨辉三角形 - 西北工业大学 题解:
easymoney
回复 0
|
赞 0
|
浏览 173
#include <stdio.h> int main() { //初始化数组 int a[200][200] = { 0 }; int n; scanf...
P1018
击鼓传花 题解:
熹微
回复 1
|
赞 0
|
浏览 250
C语言 循环数组 模拟循环链表 大家可以参考参考 #include<stdio.h> int Fac(int x,int a[],int n){ for(int i = 0;i<=n;i++) &n...
P1018
击鼓传花 题解:模拟过程即可
1935569240
回复 0
|
赞 0
|
浏览 304
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { int data; &...
P1473
字符棱形 题解:
easymoney
回复 0
|
赞 0
|
浏览 187
#include <stdio.h> int main() { int n; scanf("%d",&n); for (int i ...
P1018
击鼓传花 题解:
zhangan
回复 0
|
赞 0
|
浏览 111
#include <stdio.h> #include <stdlib.h> typedef struct lnode { // 定义结构体 int data; struct lnode* next; ...
P1401
二叉树遍历2 题解:简单递归建树方法如下:
1935569240
回复 0
|
赞 0
|
浏览 375
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { char ch; &n...
P1394
统计单词 题解:通过率只有80%,求大佬指点一下哪里错了
18237466773
回复 2
|
赞 0
|
浏览 235
#include<stdio.h> #include<string.h> int main(){ char string[105]; while(gets(string)){ &nbs...
P1561
二叉树(北京邮电大学) 题解:简单代码来了哦
1935569240
回复 0
|
赞 0
|
浏览 339
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { char ch; &n...
P4967
进制转换问题 题解:
lingdongyang
回复 0
|
赞 0
|
浏览 190
#include<stdio.h> int main(){ int n; scanf("%d", &n); int s[105]; int cnt = 0; while (n) { s[cnt] = n % 2...
P1334
最大连续子序列 题解:有点麻烦
damowanghwj
回复 0
|
赞 0
|
浏览 184
#include<cstdio> #include <iostream> #include<string> #include<algorithm> #include<vector> #include<climits...
P5126
细菌繁殖问题 题解:
阿达v吧
回复 0
|
赞 1
|
浏览 175
#include<cstdio> #include<iostream> using namespace std; /*观察图形发现图形关于中间数量最多的*对称,因此可以只需观察图形的一半, 每一行*会比上一行多2,可知等差数列an=2*n-1,an的前n项和...
P2018
三角形判定 题解:
lingdongyang
回复 0
|
赞 0
|
浏览 299
#include<stdio.h> int main() { int x = 0; scanf("%d", &x); while (x--) { int a, b, c; scanf("%d%d%d", &a, &b, &...
P1211
矩形相交 题解:对角线
snake
VIP
回复 0
|
赞 0
|
浏览 92
这个题有个容易忽略的点是对角线上的两个点 所以可能是主对角线也可能是副对角线,各种情况需要考虑周全
P5105
集合中的相同元素 题解:
阿达v吧
回复 0
|
赞 0
|
浏览 192
#include<cstdio> #include<iostream> #include<vector> #include<algorithm> using namespace std; const int Maxn=51; ...
P1211
看测试数据输出一样,但是0%通过,不知道为什么
N诺子言
回复 2
|
赞 0
|
浏览 7.1k
#include<bits/stdc++.h> #define MAXINT 32767 using namespace std; typedef long long ll; int main() { int x1,y1,x2,y2,x3,y3,x4,y...
P1016
字符分类 题解:c++实现
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 88
#include<bits/stdc++.h> using namespace std; int main(){ string s; string number; string alph; string other; c...
P1383
查找第K小数 题解:
promising
VIP
回复 0
|
赞 0
|
浏览 204
#include<stdio.h> int main() { int n,k; int i,j,t; int a[1000]; &...
P3502
密码的翻译 题解:
阿达v吧
回复 0
|
赞 0
|
浏览 158
#include<cstdio> #include<iostream> #include<string> using namespace std; string getstr(string str){ for(int...
P1388
查找1 题解:
promising
VIP
回复 0
|
赞 1
|
浏览 209
暴力解法 #include<stdio.h> int main() { int n,m; int i,j; int a[100]; &nb...
P4356
二叉树的深度 题解:
阿达v吧
回复 0
|
赞 1
|
浏览 378
#include<cstdio> #include<iostream> #include<cmath> using namespace std; typedef struct BiNode{ char data; ...
P3684
n个数的最小公倍数 题解:
阿达v吧
回复 0
|
赞 0
|
浏览 245
#include<cstdio> #include<iostream> using namespace std; //辗转相除法求最大公约数 int GCD(int a,int b){ if(b==0){ &nb...
1
...
33
34
35
36
37
...
296
我要提问
近期热门
1
N诺成就值出炉,帮你一眼识别大神
2
机试如何才能快速提高?
3
[置顶]计算机考研择校分析【25考研必读】
4
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
5
1377旋转矩阵
6
ip地址(C)
7
简单易懂
8
C++递归解法,有注释
9
1017 幂次方 快速幂模板
10
计算机考研复试笔记——操作系统篇