主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
119
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
92
阅读数
20056
大整数乘法 题解:高精度乘高精度 转 高精度乘低精度
#include <bits/stdc++.h> using namespace std; const int LEN = 1000; int a[LEN],b[LEN],c[LEN]; void clear(int a[]){ for(int i...
P1475
2025年2月7日 11:15
回复 0
|
赞 1
|
浏览 99
二进制数字翻转 题解:他这个翻转啊,就是字符串的reverse,不是01翻
#include <bits/stdc++.h> using namespace std; string intToBinary(int x){ string s; while(x!=0){ s.push_back(x%2+'0')...
P1487
2025年2月7日 10:39
回复 0
|
赞 1
|
浏览 116
Coincidence 题解:最长子序列
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>>b){ int n=a.size(),m...
P1293
2025年2月6日 11:25
回复 0
|
赞 0
|
浏览 69
生化武器 题解:DFS深搜思路,好写
#include <bits/stdc++.h> using namespace std; void dfs(int x, int y, int step, vector<vector<char>>& a, vector<vecto...
P1126
2025年2月6日 10:33
回复 0
|
赞 2
|
浏览 129
遍历链表 题解:按要求解答
#include <bits/stdc++.h> using namespace std; struct node { int val; struct node* next; node(int val) : val(val), next(n...
P1405
2025年2月5日 17:17
回复 0
|
赞 1
|
浏览 107
拦截导弹 题解:最大增长子序列取同且仅计算个数问题
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ std::vector<int> a(n),b(...
P1256
2025年2月5日 16:50
回复 0
|
赞 0
|
浏览 77
最大上升子序列和 题解:最长子序列和求解
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ std::vector<int> a(n),b(...
P1257
2025年2月5日 16:38
回复 0
|
赞 0
|
浏览 100
二叉树叶结点的个数 题解:先序生成规则解释
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; struct tnode* left,* right; tnode(char val):val(va...
P4777
2025年2月5日 15:36
回复 0
|
赞 0
|
浏览 83
动态查找的问题 题解:利用set
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ set<int>a; while(n--){ ...
P5127
2025年2月5日 15:20
回复 0
|
赞 0
|
浏览 70
分离字符串 题解:插入思路
#include <bits/stdc++.h> using namespace std; int main(){ string s; while(getline(cin,s)){ string a,b,c; for(auto x:s){...
P3503
2025年2月5日 15:12
回复 0
|
赞 0
|
浏览 71
打印杨辉三角形 题解:dp方式
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ std::vector<vector<int&g...
P4922
2025年2月5日 15:06
回复 0
|
赞 0
|
浏览 116
求三角形面积 题解:亲测答案一致,不知道为什么过不去验证
#include <bits/stdc++.h> using namespace std; struct triEdge{ int x1,y1; int x2,y2; double length; triEdge():x1(0),...
P5111
2025年2月5日 14:41
回复 0
|
赞 1
|
浏览 150
二叉树的先序序列 题解:利用后续创建,先序输出
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; struct tnode* left,* right; tnode(char val):val(va...
P4355
2025年2月5日 14:29
回复 0
|
赞 0
|
浏览 56
二叉搜索树 题解:效率不是很高,但是好理解
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; tnode *left,*right; tnode():val(' '),left(nullptr)...
P1317
2025年2月4日 14:35
回复 0
|
赞 1
|
浏览 96
二叉树(北京邮电大学) 题解:先序建树,中序递归锁定
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; tnode *left,*right; tnode():val(' '),left(nullptr)...
P1561
2025年2月4日 14:10
回复 0
|
赞 0
|
浏览 110
二叉树遍历2 题解:利用先序建树
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; tnode *left,*right; tnode():val(' '),left(nullptr)...
P1401
2025年2月4日 14:04
回复 0
|
赞 1
|
浏览 122
谁是你的潜在朋友 题解:map vector联合
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; while(cin>>n>>m){ map<int,std::vec...
P1225
2025年2月3日 16:31
回复 0
|
赞 0
|
浏览 93
完数 题解:平方范围下判断,同时存储
#include <bits/stdc++.h> using namespace std; bool isPerfectNumber(int num,vector<int>&a) { vector<int>b; if ...
P1046
2025年2月3日 15:38
回复 0
|
赞 1
|
浏览 128
找最小数 题解:自定义比大小,利用cpp机制
#include <bits/stdc++.h> using namespace std; struct newInt{ int x,y; newInt():x(0),y(0){} newInt(int x,int y):x(x),y(y)...
P1374
2025年2月3日 15:23
回复 0
|
赞 0
|
浏览 99
最大公约数 题解:__gcd(int x,int y)
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; while(cin>>a>>b){ cout<<__gcd(a...
P1353
2025年2月3日 15:07
回复 0
|
赞 0
|
浏览 122
1
2
3
4
5
6
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!