上一页 1 2 3 4 5 6 7 8 ··· 30 下一页
摘要: 初速度:\(v = \sqrt{\cfrac{2 * E}{m}};\) 竖直速度:\(v_y = v \,sin(ans) = g * t\) 水平距离:\(s = v_x * 2t = v \, cos(ans) * 2t = \cfrac{2Esin(2ans)}{mg}\) #include 阅读全文
posted @ 2022-04-21 11:07 Xxaj5 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 100; int tr[N]; int main() { int n; cin >> n; memset(tr, -1, sizeof(tr)); for (int i = 1; 阅读全文
posted @ 2022-04-21 10:22 Xxaj5 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; using pii = pair<int, int>; const int N = 300; vector<pair<int, int>> g[N]; int have[N]; int pre[N]; int 阅读全文
posted @ 2022-04-21 10:22 Xxaj5 阅读(25) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; using pii = pair<int, int>; using ll = long long; const int N = 1E5 + 10; ll stk[N]; ll top; ll x[N], y[ 阅读全文
posted @ 2022-04-20 17:01 Xxaj5 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; using pii = pair<int, int>; const int N = 10010; vector<int> G[N]; bool st[N]; int dist[N]; int res = 1e 阅读全文
posted @ 2022-04-20 15:46 Xxaj5 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 550; using pii = pair<int, int>; struct Node{ int v, length, time; }; vector<Node> g[N]; i 阅读全文
posted @ 2022-04-20 15:22 Xxaj5 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; using pii = pair<int, int>; const int N = 1210, M = 15; int n, m, k, ds; unordered_map<string, int> var; 阅读全文
posted @ 2022-04-19 16:16 Xxaj5 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; bool vis[1300][130][70]; int dx[5] = {-1, 0, 1, 0, 0}, dy[5] = {0, 1, 0, -1, 0}; int 阅读全文
posted @ 2022-04-19 09:07 Xxaj5 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int f[N]; bool havef[N]; int Size[N]; int find(int x) { if (x != f[x]) f[x] = find(f 阅读全文
posted @ 2022-04-19 08:31 Xxaj5 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1E5 + 10; int tr[N]; stack<int> stk; int lowbit(int x) { return x & -x; } void add(int x, 阅读全文
posted @ 2022-04-19 08:10 Xxaj5 阅读(27) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 30 下一页