``` //计算旋转角 double calculateAngle(const EigenVector3d &vectorBefore, const EigenVector3d &vectorAfter) { double ab, a1, b1, cosr; ab = vectorBefore.x( ...
分类:
其他好文 时间:
2021-02-19 13:15:43
阅读次数:
0
1 CF959E 异或和 题目链接:https://codeforces.com/problemset/problem/959/e 2 题目描述 时间限制 \(2s\) | 空间限制 \(256M\) \(Ehab\) 对按位异或运算和特殊图运算感兴趣,\(Mahmoud\) 给了他一个融合了这个两 ...
分类:
其他好文 时间:
2021-02-19 12:54:40
阅读次数:
0
条件运算符 ?: 学的好?有饭吃:去搬砖 X?Y:Z 假如X=ture。那么输出Y,否则输出Z 赋值扩展运算符 += a=a+b 2.-= a=a-b 3.= a=ab 4. /= a=a/b 字符串接符 System out printIn(""+a+b); System out printIn( ...
分类:
其他好文 时间:
2021-02-18 13:56:58
阅读次数:
0
由于今天实在是太自闭了就前来写场已经 AK 的 div.2 的题解了 这场比赛是我的 div.2 首 AK 哦 A 先特判 \(b=1\),强制将 \(b+1\) 否则容易发现答案最大为 \(\log_ab\),所以直接枚举 \(b\) 加了多少次,枚举到 \(30\) 就行了。 B 考虑一个数组 ...
分类:
其他好文 时间:
2021-02-18 13:39:20
阅读次数:
0
Problem Description Kolya loves putting gnomes at the circle table and giving them coins, and Tanya loves studying triplets of gnomes, sitting in the ...
分类:
其他好文 时间:
2021-02-18 13:33:21
阅读次数:
0
题目描述 For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the m ...
分类:
其他好文 时间:
2021-02-18 13:06:04
阅读次数:
0
题目 题目链接:https://www.ybtoj.com.cn/contest/114/problem/2 \(n\leq 100,m\leq 2000,a,b<P\leq 10^{18}\)。 思路 上来就是一堆条件要你求值直接劝退。。。 根据条件三,可以得到对于任意一个环 \(\sum B(v ...
分类:
其他好文 时间:
2021-02-18 13:00:29
阅读次数:
0
正题 题目链接:https://www.ybtoj.com.cn/problem/893 题目大意 给出一张$n$个点$m$条边的无向联通图,每条边正反向各有$A,B,C$三种边权。 保证满足 \(A_{x,y}=-A_{y,x}\ ,\ B_{x,y}=B_{y,x}\ ,\ C_{x,y}=-C ...
分类:
其他好文 时间:
2021-02-18 12:55:29
阅读次数:
0
https://www.acwing.com/problem/content/1143/ \(裸题\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); c ...
分类:
其他好文 时间:
2021-02-17 14:58:39
阅读次数:
0
https://www.acwing.com/problem/content/1144/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-17 14:57:50
阅读次数:
0