首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
蓝域小兵
获赞
119
粉丝
6
关注
4
看过 TA
38
男
牛客大学
2025
C++
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑蓝域小兵吗?
发布(20)
评论
刷题
收藏
蓝域小兵
关注TA,不错过内容更新
关注
2021-08-03 14:04
已编辑
牛客大学 C++
为什么C++函数声明中的对参数添加const限定是无效的?
如题,为什么声明中的const无效而只能定义中对函数参数添加const才有效?
0
点赞
评论
收藏
分享
2020-10-18 11:41
已编辑
牛客大学 C++
百度三面后漏接了电话怎么办?
😭😭一天上午鏖战三面,感觉答得还行。然后牛客网说今日面试已结束,我以为百度当天的面试就结束了就去打饭了,结果回寝室发现有一个从北京打来的漏接电话,应该是食堂太吵了没听见。然后下午5点多又有一个辽宁的电话打过来还是漏接了。现在网站上显示流程是面试流程中,也没有收到感谢信。请问是什么情况😂😂,那两个号码打过去打不通的我试过了。请问各位现在该咋搞😂😂😂
投递百度等公司8个岗位
0
点赞
评论
收藏
分享
2020-09-20 23:17
已编辑
牛客大学 C++
有9.15号招银面试收到消息的小伙伴吗?
15号面试的,还没收到消息,不会挂在HR面了吧。。。
投递招商银行·招银网络科技等公司8个岗位
0
点赞
评论
收藏
分享
2020-09-10 20:06
已编辑
牛客大学 C++
携程的简历管理系统是用的啥?
好难用啊我去,还有那个好未来貌似也是同一个管理系统,填所在地和籍贯死活填不对,要不就只能选省,要不就只能选市或者县。
投递携程等公司8个岗位
0
点赞
评论
收藏
分享
2020-09-04 21:20
牛客大学 C++
膜拜前面各位大佬,写一个最简单的辣鸡深度遍历
#include <bits/stdc++.h> using namespace std; int N = 0, M = 0; int pathlen = INT_MAX; vector<vector<bool>> rec; vector<pair<int, int>> pathrec; void dfs(vector<vector<bool>> &maze, \ vector<pair<int, int>> &path, \ pair<int, int> c...
0
点赞
评论
收藏
分享
2020-09-04 20:25
牛客大学 C++
用递归,感觉还行..
#include <bits/stdc++.h> using namespace std; vector<string> other = {"zero","one","two","three","four", \ "five","six","seven","eight","nine",\ "ten","eleven","twelve","thirteen","fourteen",\ "fifteen","sixteen","seventeen","eighteen","ninteen"}; vector<string> ften = {"none","ten...
edmondxu:
2003输出的应该是“two thousand and three”然而这种方法得到的是“two thousand three”虽然测试用例里没有
0
点赞
评论
收藏
分享
2020-09-03 11:30
牛客大学 C++
这种题真的没意思...
不是说简单,是说学不到啥新知识,全靠debug,真的烦。 #include <bits/stdc++.h> using namespace std; int main() { string alb("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); string key; string odata; string albtxt; while (getline(cin,key)) { getline(cin, odata); albtxt = alb; // 处理key bool appeard[26]; memset(appeard, 0, sizeof(appeard)...
0
点赞
评论
收藏
分享
2020-09-03 09:51
牛客大学 C++
纯C,写个快排
#include <stdio.h> #include <string.h> #include <stdlib.h> using namespace std; const int maxnum = 1024; void qs(char d[], int left, int right) { if (left < right) { int a = d[left]; int l = left; int r = right; while (l<r) { while (l<r&&d[r]>a) r--; if (l<r)...
0
点赞
评论
收藏
分享
2020-08-31 17:12
牛客大学 C++
笔试题一定要善用STL,直接用sort函数和lambda表达式排序,用Unique函数去重
#include <bits/stdc++.h> using namespace std; int main() { vector<string> inputI; vector<string> inputR; int nI(0); int nR(0); while(cin>>nI){ inputI.clear(); inputR.clear(); while(nI--){ string t;cin>>t; inputI.push_back(t); } cin>>nR; while(nR--){ string t;cin&g...
0
点赞
评论
收藏
分享
2020-08-25 21:41
牛客大学 C++
利用字符流进行数据读入真的是非常方便
#include<bits/stdc++.h> using namespace std; void vecip2usn(vector<int> ip, unsigned int &rtn) { rtn = 0; // 将点分十进制的ip字符串转换为ip数字 for(int i=0;i<ip.size();i++){ rtn = (rtn<<8)+ip[i]; } } bool judgemask(vector<int> mask) { if(mask.size()!=4) return false; unsigned int mas...
0
点赞
评论
收藏
分享
2020-08-24 00:26
牛客大学 C++
分组背包问题,转化为0-1背包问题
看了各个大佬的分析,终于写出了我自己的代码,其实知道了如何进行状态转移,就基本大差不差 #include <bits/stdc++.h> using namespace std; int main() { // 带条件的0-1背包问题 // 创建dp数组 int N(0), m(0); cin >> N >> m; // N是总预算,相当于背包问题的容量 int tv(0), tp(0), tq(0); //vector<vector<int>> dp(m+1, vector<int>(N/10+1, 0)); vecto...
0
点赞
评论
收藏
分享
2020-08-22 14:46
牛客大学 C++
string比较大小就是按照字典序比较的,所以可以直接使用sort
#include <bits/stdc++.h> using namespace std; int main() { int n; /* bool (*strcompare)(const string &a, const string &b) = [](const string &a, const string &b)->bool{ int i(0); for(;i<a.length()&&i<b.length();i++){ if(a[i]==b[i]) continue; if(a[i]<b[i]) ret...
0
点赞
评论
收藏
分享
2020-08-22 11:07
牛客大学 C++
直接使用map去重复
#include<bits/stdc++.h> using namespace std; int main() { map<int,int> data; int num; int m(0),n(0); while(cin>>num){ while(num--){ cin>>m>>n; data[m]+=n; } for(auto val: data){ cout<<val.first<<' '<<val.second<<endl; } } return 0; }map的key默认对应的v...
0
点赞
评论
收藏
分享
2020-08-21 15:45
牛客大学 C++
直接用STL的set的话就太简单了。。
#include <bits/stdc++.h> using namespace std; int main() { int n(0); while(cin>>n){ set<int> data; while(n--){ int t;cin>>t; data.insert(t); } for(auto val:data) cout<<val<<endl; } }set内部是基于红黑树的,插入时是有序的,因此遍历是按照从小到大遍历的,插入时也会滤去已有的元素,重复元素只保留一个
0
点赞
评论
收藏
分享
2020-08-14 18:00
牛客大学 C++
2020.08.14 在牛客打卡8天!
0
点赞
评论
收藏
分享
1
2
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务