腾讯4.18技术研究和数据分析五道a了两道有面试机会吗

求告知#腾讯#
全部评论
我们是同一批题吗,第一题循环链表字典序,第五题打地鼠?
点赞 回复
分享
发布于 2021-04-18 21:59
喷灌,DFS,鞋子这套题,太菜了A了2道半
点赞 回复
分享
发布于 2021-04-18 22:05
阅文集团
校招火热招聘中
官网直投
为什么这个Python不让import numpy啊😭
点赞 回复
分享
发布于 2021-04-18 22:07
那个求点和R的怎么做的呀有没有大佬解释一下,方程全列好了,不知道python有没有联立方程组求解的
点赞 回复
分享
发布于 2021-04-18 22:10
有人能分享第四题 比较字符串的Java程序吗
点赞 回复
分享
发布于 2021-04-18 22:11
第一题采果子100%通过 /*input 3 2 3 6 9 3 9 */ #include <bits> using namespace std; typedef long long ll; inline ll read() { char c = getchar(); ll x = 0, f = 1; while(c < '0' || c > '9') {if(c == '-') f = -1; c = getchar();} while(c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar(); return x * f; } const int inf=0x3f3f3f3f; const int maxn=1e5+50; int w[maxn]; int vis[maxn]; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>w[i]; vis[w[i]]++; } while(m--){ int q; cin>>q; bool f=0; for(int i=1;i<=n;i++){ if(vis[w[i]+q]){ f=1; cout<</bits>
点赞 回复
分享
发布于 2021-04-18 22:15
灌溉这个一直是80 求大佬指导一下 /*input 1 1 0 1.6 0 */ #include <bits> using namespace std; typedef long long ll; const int inf=0x3f3f3f3f; const int maxn=1e5+50; int main(){ double r1,x1,y1,x3,y3; cin>>r1>>x1>>y1>>x3>>y3; double d=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)); double r2=0.5*(r1+d); double x2,y2; if(x1==x3) { x2=x1; y2=y3+r2/d*(y1-y3); } else if(y1==y3){ y2=y1; x2=x3+r2/d*(x1-x3); } else { x2=x3+r2/d*(x1-x3); y2=y3+r2/d*(y1-y3); } printf("%.8f %.8f %.8f\n",x2,y2,r2); return 0; }</bits>
点赞 回复
分享
发布于 2021-04-18 22:16

相关推荐

点赞 1 评论
分享
牛客网
牛客企业服务