首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
时光的尽头会是什么
获赞
20
粉丝
2
关注
0
看过 TA
16
男
门头沟学院
2022
C++
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑时光的尽头会是什么吗?
发布(5)
刷题
时光的尽头会是什么
2022-03-10 11:45
C++
网易互娱游戏研发工程师一二面面经
一面 90min 1.30min编程题 给定数组输出第k小子序列和 2.自我介绍 3.讲一下编程题思路 #include<bits/stdc++.h> using namespace std; int check(vector<int> & nums,int x){ int l=0,num=0,ls=0; for(int i=0;i<nums.size();i++){ ls=ls+nums[i]; while(ls>x){ ls-=nums[l]; l++; } num+=i-l+1; } ...
投递网易互娱等公司7个岗位 >
0
点赞
评论
收藏
转发
时光的尽头会是什么
2021-08-07 11:05
C++
2021-08-07
在牛客打卡1天,今天学习:刷题 4 道/代码提交 9 次
每日监督打卡
0
点赞
评论
收藏
转发
时光的尽头会是什么
2021-08-07 10:59
C++
题解 | #迷宫寻宝-研发#
先计算每个宝箱到所有点的最短距离,然后从起点开始搜索每次搜索前先遍历所有宝箱的位置,选定一个符合要求的宝箱后开始搜索,如果搜索完所有宝箱,返回步数,否则返回-1 #include<bits/stdc++.h> using namespace std; struct node { int x,y,t; }A[10]; char mp[55][55]; bool book[55][55]; int dp[55][55][10];//记录宝箱到每个点的最短距离 int m,n; int tx[4] = {0,1,0,-1}; int ty[4] = {1,0,-1,0}; ...
0
点赞
评论
收藏
转发
时光的尽头会是什么
2021-08-06 20:07
C++
题解 | #十字斩-研发#
递归 #include<bits/stdc++.h> using namespace std; struct node { int t,id,w; }a[100005]; int k; int sum[100005]; int temp; int dfs(int l) { int r = l+1; while(a[l].id != a[r].id) { sum[l] += dfs(r); r = temp; } sum[l] = (a[r].t - a[l].t) - sum[l]; tem...
0
点赞
评论
收藏
转发
时光的尽头会是什么
2021-08-06 18:01
C++
题解 | #十字斩-研发#
#include<bits/stdc++.h> using namespace std; int a[505][505]; int h[505]; int l[505]; int hh[505]; int ll[505]; int main() { int n; cin >> n; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { cin >> a[i][j]; h...
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务