首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
GENARDING
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
35
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
144
阅读数
7216
机试奥义,能用for循环跑出来继续
#include <bits/stdc++.h> using namespace std; int main() { int L,M; while(cin>>L>>M){ vector<int> t(L+1...
P1175
2025年3月14日 19:14
回复 0
|
赞 2
|
浏览 231
还是那句话,怎么简单怎么来,能ac就行
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int> v(n); for(in...
P1400
2025年3月14日 15:08
回复 0
|
赞 0
|
浏览 185
经典递归,分清辅助,目标的变换即可递归
#include <bits/stdc++.h> using namespace std; int c; void print(char x,char y){ cout<<x<<"-->"<<y; if(c%5==0){ ...
P1082
2025年3月14日 14:40
回复 0
|
赞 12
|
浏览 283
这种题O(n)找到,抓紧下一题
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ if(n==0) break; vector<in...
P1329
2025年3月14日 13:37
回复 0
|
赞 1
|
浏览 159
vector,能快就快,把时间留给难题
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int> a(n); for(...
P1399
2025年3月14日 13:16
回复 0
|
赞 1
|
浏览 135
还是那句话,计试能ac就行
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ int count=0; for(int i=0;...
P1031
2025年3月14日 13:09
回复 0
|
赞 0
|
浏览 175
无须多盐,数列定义好直接加
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; //定义数列 float a[1005]; float b[10...
P1047
2025年3月13日 14:58
回复 0
|
赞 4
|
浏览 233
vector秒了,简简单单
#include<bits/stdc++.h> using namespace std; bool cmp(string a, string b){ if (a.length() != b.length()) { return a.lengt...
P1412
2025年3月13日 11:22
回复 0
|
赞 4
|
浏览 193
在前人的基础上又优化了一下,应该是最简易懂了
#include <bits/stdc++.h> using namespace std; bool compare(char c, char b) { return tolower(c) < tolower(b); // 忽略大小写排序 } int ...
P1255
2025年3月12日 20:57
回复 0
|
赞 7
|
浏览 207
动态规划
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int dp[n+1]; dp[0]=1; dp[1]=1; ...
P1197
2025年3月11日 20:19
回复 0
|
赞 3
|
浏览 339
BFS无权图
#include <bits/stdc++.h> using namespace std; const int MAX=110; char maze[MAX][MAX];//迷宫 int h,w;//迷宫宽和高; int sx,sy;//记录s的坐标 int dx...
P1563
2025年3月11日 19:37
回复 0
|
赞 15
|
浏览 306
最简单的方法
#include <bits/stdc++.h> using namespace std; int reverseNum(int n){ return n/1000+((n/100)%10)*10+((n/10)%10)*100+(n%10)*1000; ...
P1461
2025年3月10日 17:39
回复 0
|
赞 1
|
浏览 237
IP地址 题解:注意0.0.0.0这个地址,80%过不了,找好久
#include <bits/stdc++.h> using namespace std; // 将十进制的字符串转换为十六进制字符串 string convert(string s) { int res = 0; for (int i = 0;...
P1023
2025年3月10日 16:19
回复 0
|
赞 5
|
浏览 270
字符串排序3 题解:使用vector +sort(),此方法适用于多种场景
使用vector +sort(),此方法适用于多种场景,对此不熟悉的可记为这类相关问题的通解 #include <bits/stdc++.h> using namespace std; // 自定义比较函数 bool cmp(const string &...
P1261
2025年3月10日 12:49
回复 0
|
赞 12
|
浏览 265
字符串排序3 题解:
使用vector +sort(),此方法适用于多种场景,对此不熟悉的可记为这类相关问题的通解 #include <bits/stdc++.h> using namespace std; // 自定义比较函数 bool cmp(const string &...
P1261
2025年3月10日 12:37
回复 0
|
赞 3
|
浏览 204
1
2
本科学校:云南财经大学
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!