主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
119
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
92
阅读数
20169
猴子吃桃 题解:函数很简单
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int a[n]; a[0]=1; ...
P1049
2025年2月3日 15:02
回复 0
|
赞 0
|
浏览 102
旋转矩阵 题解:三种操作,三个函数
#include <bits/stdc++.h> using namespace std; vector<vector<int>> op1(vector<vector<int>>a){ vector<vec...
P1221
2025年2月3日 14:51
回复 0
|
赞 5
|
浏览 164
最大连续子序列 题解:深度分析dp数组的本质及扩展条件
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ if(n==0){break;} int ...
P1334
2025年2月2日 15:36
回复 0
|
赞 3
|
浏览 210
石油储藏 题解:挖掘解决法
#include <bits/stdc++.h> using namespace std; //挖掘方向 vector<vector<int>> direction {{-1, 0}, {-1, 1}, {0, 1}, {1, 1}, {1, ...
P1564
2025年2月2日 14:02
回复 0
|
赞 1
|
浏览 112
01字符串 题解:数学推理,公式同feibo
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int dp[n+1]; dp[0]=1;...
P1479
2025年1月31日 11:46
回复 0
|
赞 1
|
浏览 86
成绩排序 - 华科 题解:自定义排序函数
#include <bits/stdc++.h> using namespace std; struct SC{ string name; int age; int score; SC():name(""),age(0),scor...
P1404
2025年1月31日 10:18
回复 0
|
赞 2
|
浏览 102
采药 题解:经典01背包问题
#include <bits/stdc++.h> using namespace std; int main(){ int t,n; while(cin>>t>>n){ int dp[n+1][t+1]; ...
P1086
2025年1月31日 10:02
回复 0
|
赞 1
|
浏览 133
小偷的背包 题解:详细解释一下适配背包问题
适配背包问题有两种,第一种就是这种,不存在最优结果的适配问题,也就是我们只考虑能否放下的可能性是否存在,但是不考虑价值,第二种就是考虑价值的。 对于第一种的解法,其实很简单,我们只需要利用布尔型的背包解决即可,全部的情况就只有这几种,当前物品对于当前背包大小,能放入,则判定,这时候不需要...
P1123
2025年1月31日 09:45
回复 0
|
赞 0
|
浏览 133
剩下的树 题解:数组存一下
#include <bits/stdc++.h> using namespace std; int main(){ int l,m; while(cin>>l>>m){ int a[l]; ...
P1175
2025年1月31日 09:08
回复 0
|
赞 1
|
浏览 134
矩阵翻转 题解:直接打印
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int a[n][n]; for(int ...
P1134
2025年1月27日 18:03
回复 0
|
赞 1
|
浏览 389
斐波那契数列 题解:dp
#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...
P1111
2025年1月27日 17:58
回复 0
|
赞 3
|
浏览 161
十进制和二进制 题解:手工求模,求乘算模拟
#include <bits/stdc++.h> using namespace std; string decimalToBinary(string decimal) { string binary = ""; while (decim...
P1176
2025年1月27日 17:36
回复 0
|
赞 5
|
浏览 178
字符串排序2 题解:stablesort,大小写同时排序
#include <bits/stdc++.h> using namespace std; bool compare(char c,char b){ if(c>='A'&&c<='Z')c=c-'A'+'a'; if(b&...
P1255
2025年1月27日 15:45
回复 0
|
赞 5
|
浏览 188
猴子报数 题解:约瑟夫问题
#include <bits/stdc++.h> using namespace std; int main(){ int n,p,m; while(cin>>n>>p>>m){ if(n==...
P1081
2025年1月27日 13:30
回复 0
|
赞 5
|
浏览 164
字符串排序3 题解:getchar compare自定义
#include <bits/stdc++.h> using namespace std; bool compare(string a,string b){ return a.size()<b.size(); } int main(){ ...
P1261
2025年1月27日 13:15
回复 0
|
赞 1
|
浏览 153
旋转方阵 题解:方块收缩模拟输出
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<vector<int>>...
P1216
2025年1月27日 13:07
回复 0
|
赞 5
|
浏览 222
最大序列和 题解:dp思路
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<long long>a(n) ; ...
P1172
2025年1月27日 12:46
回复 0
|
赞 3
|
浏览 148
击鼓传花 题解:vector手撕约瑟夫
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<int>a(n); ...
P1018
2025年1月27日 11:38
回复 1
|
赞 2
|
浏览 169
旋转矩阵 - 北航 题解:旋转后判断
#include <bits/stdc++.h> using namespace std; vector<vector<int>> reverseMatrix(vector<vector<int>>a){ int...
P1377
2025年1月27日 11:28
回复 0
|
赞 8
|
浏览 236
大整数加法 题解:struct内部写法
#include <bits/stdc++.h> using namespace std; const int LEN=1001; struct BigInteger{ int data[LEN]; int length; void in...
P1474
2025年1月26日 16:07
回复 1
|
赞 0
|
浏览 163
1
...
3
4
5
6
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!