首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
Candour
天天原神启动不训练,考研还想上岸?
关注
发消息
文章
0
题解
117
发帖
0
笔记
12
Ta的粉丝
69
关注数
2
粉丝数
69
获赞数
849
阅读数
96944
骑车路线(模拟) 题解:
#include<iostream> #include<algorithm> #include<limits.h> #include<cmath> #include<cstring> #include<vector...
P1737
2025年3月19日 16:43
回复 0
|
赞 1
|
浏览 143
股票交易(常规暴力和贪心) 题解:
常规 O(N^2): #include<bits/stdc++.h> using namespace std; const int N = 1e4 + 10; int n, a[N]; int main() { cin >> n; ...
P1979
2025年3月12日 14:49
回复 0
|
赞 8
|
浏览 370
最大公约数和最小公倍数 题解:
#include<bits/stdc++.h> using namespace std; int n, m; int main() { cin >> n >> m; cout << __gcd(...
P1041
2024年4月28日 23:16
回复 1
|
赞 12
|
浏览 861
二进制数字翻转(py)题解:
t = int(input()) while t > 0 : a = int(input()) a = "{:032b}".format(a) b = a[::-1] b = int(b, 2) print(b) t -=...
P1487
2025年2月25日 20:59
回复 0
|
赞 2
|
浏览 244
非素数个数(线性筛+前缀和)题解:
#include<bits/stdc++.h> using namespace std; const int N = 1e7 + 10; int l, r; int primes[N], cnt, s[N]; bool st[N]; void get...
P1701
2025年2月23日 16:22
回复 0
|
赞 8
|
浏览 479
完数 题解:
#include<bits/stdc++.h> using namespace std; int n; int main() { cin >> n; vector<int> a; for(int i = 2; i <...
P1046
2025年2月20日 18:08
回复 0
|
赞 0
|
浏览 307
变位词 (哈希表)题解:
#include<bits/stdc++.h> using namespace std; int n; unordered_map<char, int> h; bool check(string a, string b) { for(int ...
P1032
2025年1月25日 16:24
回复 0
|
赞 4
|
浏览 411
石油储藏 (dfs)题解:
#include<bits/stdc++.h> using namespace std; const int N = 110; char g[N][N]; bool st[N][N]; int n, m, cnt; void dfs(int x, int y...
P1564
2025年1月21日 16:51
回复 0
|
赞 4
|
浏览 342
找最小数(sort函数) 题解:
#include<bits/stdc++.h> using namespace std; typedef pair<int, int> PII; const int N = 1010; PII s[N]; int n; bool cmp(PII ...
P1374
2025年1月19日 15:31
回复 0
|
赞 4
|
浏览 437
成绩排序(函数sort) - 华科 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int n; struct student{ string name; int age; int score; }s[...
P1404
2025年1月18日 15:40
回复 0
|
赞 5
|
浏览 335
采药(01背包) 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int t[N], w[N], dp[N]; int T, m; int main() { cin >> T &...
P1086
2025年1月17日 17:00
回复 0
|
赞 3
|
浏览 423
最短路 (朴素Dijkstra)题解:
稠密图用朴素Dijkstra算法,用链式前向星存储图 #include<bits/stdc++.h> using namespace std; const int N = 110; int g[N][N]; int dist[N]; boo...
P1565
2025年1月13日 15:59
回复 0
|
赞 9
|
浏览 424
剩下的树(差分) 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1e4 + 10; int n, m; int b[N]; int main() { while(cin >> n) ...
P1175
2025年1月11日 15:07
回复 0
|
赞 5
|
浏览 561
字符串排序3(C++) 题解:
#include<bits/stdc++.h> using namespace std; int n; bool cmp(string a, string b) { return a.size() < b.size(); } int ma...
P1261
2024年5月29日 19:51
回复 1
|
赞 8
|
浏览 1.1k
Coincidence 题解:
#include<bits/stdc++.h> using namespace std; const int N = 110; char str1[N], str2[N]; int dp[N][N]; int main() { //dp[i][j]表示两...
P1293
2024年8月18日 12:45
回复 0
|
赞 9
|
浏览 635
二叉树(北京邮电大学)(传统建树) 题解:
#include<bits/stdc++.h> using namespace std; typedef struct Tree{ char val; Tree *left, *right; }Tree; Tree *build(string...
P1561
2024年8月18日 12:06
回复 0
|
赞 6
|
浏览 715
判断二叉树是否对称 (指针建树)题解:
#include<bits/stdc++.h> using namespace std; string data; // 定义二叉树节点 typedef struct Tree { char val; Tree *left...
P1551
2024年8月13日 12:31
回复 0
|
赞 11
|
浏览 902
水仙花数 题解:
#include <bits/stdc++.h> using namespace std; int n, m; bool cheak(int x) { int a = x / 100; int b = (x / 10) % 10; int c = x...
P1034
2024年4月25日 23:31
回复 1
|
赞 13
|
浏览 1.3k
猴子吃桃(C/C++动态规划) 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int n; int dp[N]; //定义:第n + 1 - i天剩的桃子 int main() { dp[1...
P1049
2024年7月15日 19:57
回复 0
|
赞 1
|
浏览 721
小偷的背包(01背包) 题解:
把重量看成体积 #include<bits/stdc++.h> using namespace std; const int N = 1010; int dp[N], v[N]; int n, s; int main() { cin ...
P1123
2024年7月14日 19:03
回复 0
|
赞 6
|
浏览 667
1
2
3
...
6
本科学校:星穹铁道职业技术学院
目标学校:贵州大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!