- 博客(14)
- 收藏
- 关注
原创 hdoj2007 && pow精度问题
题解#include<stdio.h>#include<math.h>#include<string.h>#include<stdlib.h>#include<bits/stdc++.h>using namespace std;int main(){ int m,n; int a[10000]; int res1,res2; while(scanf("%d%d",&m,&n)!=EO.
2021-03-13 15:18:04
93
原创 3.9 字节跳动 朝夕光年 游戏服务器 一面
在线编程a了两道就接到了面试通知。面试官人很好 会引导你回答问题,就算是不知道也没关系。首先是自我介绍,因为我说我的常用语言是c、c++、python。所以面试官先问了我这三种语言的优缺点是什么?申明空间时有什么不同?运行内存、虚内存、磁盘、多级存储http协议、osi七层结构、tcp与ip的报文段有什么内容最后手撕代码是,牛客网上的*题目在二叉树中找到两个节点的最近公共祖先 给定一棵二叉树以及这棵树上的两个节点 o1 和 o2,请找到 o1 和 o2 的最近公共祖先节点。输入第一
2021-03-10 14:36:27
729
原创 3.7(记)字节跳动 春招 游戏服务器开发工程师在线笔试
占个坑第一题数组第二题n个人围成圈,求最大身高差的最小值。题解:先排序,然后选出最大的两个人放在两边连在一起,最小的身高往中间放。第三题老爷爷的指令1 x y 表示x和y可以放在一个书架上2 x y表示x和y放在不同的书架上给出一串指令,求出满足第一条指令时,能够满足的第二条指令的个数。题解:不会做orz…第四题变化的字典。类似于最长上升子序列。看网友们的答案像是采用了图的算法和dp。道行太浅了555就是记录一下这次惨痛的经历。...
2021-03-08 16:01:37
307
原创 hdoj2005 && 闰年计算方法
题解#include<stdio.h>#include<math.h>#include<string.h>#include<stdlib.h>#include<bits/stdc++.h>using namespace std;int main(){ int year,mon,day; int mon_set[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int.
2021-03-07 17:02:10
77
转载 hdoj 题目分类(转载)
整合分类:基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、1076、1089、1090、1091、1092、1093、1094、1095、1096、1097、1098、1106、1108、1157、1163、1164、1170、1194、1196、1197、1201、1202、1205、1219、1234、1235、1236、1248、
2021-03-07 16:27:55
191
原创 hdoj2002 && 除法运算
题解#include<stdio.h>#include<math.h>#include<string.h>#include<stdlib.h>#include<bits/stdc++.h>using namespace std;#define PI 3.1415927int main(){ double r; double result; while (scanf("%lf",&r)!=EOF).
2021-03-07 16:25:22
58
原创 hdoj2000 && scanf函数
题解#include<stdio.h>#include<math.h>#include<string.h>#include<stdlib.h>#include<bits/stdc++.h>using namespace std;int main(){ char a[3],swap; while(scanf("%c%c%c",&a[0],&a[1],&a[2])!=EOF){ .
2021-03-04 15:31:38
88
1
原创 hdoj1001 && 常见的oj错误类型
题解#include<stdio.h>#include<math.h>#include<string.h>#include<stdlib.h>#include<bits/stdc++.h>using namespace std;int main(){ int t; long a,b; scanf("%d",&t); for(int i=1;i<=t;i++){ scan.
2021-02-27 11:37:34
271
原创 hdoj1000 && EOF
题解#include<stdio.h>#include<bits/stdc++.h>using namespace std;int main(){int a,b;while(cin>>a){cin>>b;cout<<a+b<<endl;}return 0;}学习笔记:一、EOFEOF,是End Of File的缩写,存在于文本文件的结尾,表示文件结束。EOF的值为-1。在终端输入数据时,不会产生EOF。.
2020-12-29 15:49:07
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人