摘要: 找父物体: transform.parent.gameObject 距上次渲染帧的时间:Time.deltaTime; 受缩放影响的游戏运行时间:Time.time; 受缩放影响的游戏运行时间:Time.unscaledTime; 实际运行时间:Time.realtimeSinceStartup; 阅读全文
posted @ 2020-06-14 22:05 Faker_fan 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<iostream> #include<vector> #include<queue> using namespace std; typedef long long ll; const int maxn=3e5+10, mod = 998244353 阅读全文
posted @ 2020-06-01 15:12 Faker_fan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: ll result_len,result[maxn],level=0,trans[maxn]; ll quick(ll a,ll b,ll m) { ll ans=1; while(b>0) { if(b&1) ans=ans*a%m; a=a*a%m; b>>=1; } return ans; } 阅读全文
posted @ 2020-06-01 12:27 Faker_fan 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 有障碍, ***。。 。。。。 求回路数量 #include <cstdio> #include <cstring> #include <iostream> #include <cmath> using namespace std; typedef long long LL; const int L 阅读全文
posted @ 2020-06-01 11:44 Faker_fan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: // `计算几何模板` const double eps = 1e-8; const double inf = 1e20; const double pi = acos(-1.0); const int maxp = 1010; //`Compares a double to zero` int s 阅读全文
posted @ 2020-06-01 00:41 Faker_fan 阅读(88) 评论(0) 推荐(0) 编辑
摘要: poj3352 #include<cstdio> #include<cstring> #include<vector> #include<algorithm> using namespace std; const int maxn=1000+10; int n,m; vector<int> G[ma 阅读全文
posted @ 2020-05-31 12:37 Faker_fan 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<sstream> #include<fstream> #include<vector> #include<list> #include<deque> #include<queue> #include<stack> #include<map> # 阅读全文
posted @ 2020-05-23 20:06 Faker_fan 阅读(307) 评论(0) 推荐(0) 编辑
摘要: ios::sync_with_stdio(false); 阅读全文
posted @ 2020-05-11 15:09 Faker_fan 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <cmath> #include <stack> #include <queue> #in 阅读全文
posted @ 2020-05-08 13:49 Faker_fan 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 给你二维平面上一些旅馆,每个都有一个价格p,然后询问距离一个点,价格不高于p的旅店最近的是哪一个? 首先如果考虑可修改的话,大家很明显可以想到可以kd-tree解决对吧,就是按价格排序,然后逐步插入。但是这么做常数太大了,不说要排序好几次,还要承担树重构的一个常数,这题还是卡的很好的,至 阅读全文
posted @ 2020-05-05 14:15 Faker_fan 阅读(159) 评论(0) 推荐(0) 编辑