摘要: 没有经过数据的检验,如果有错误欢迎指正 找规律后可以找到这个。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll inf = 0x3f3f3f3f; const double eps = 1e-6 阅读全文
posted @ 2021-01-26 20:56 WAKBGAN 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-16 00:32 WAKBGAN 阅读(126) 评论(0) 推荐(0) 编辑
摘要: import requests as rq import json def get_translate(word=None): url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule' From_date 阅读全文
posted @ 2019-11-05 09:15 WAKBGAN 阅读(442) 评论(0) 推荐(0) 编辑
摘要: // 计算几何模板 //二维平面 using namespace std; const double eps = 1e-8; const double inf = 1e20; const double pi = acos(-1.0); const int maxp = 1010; //Compare 阅读全文
posted @ 2019-10-22 10:53 WAKBGAN 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 思路:枚举换的位置i,j 然后我们要先判断改序列能否完全匹配 如果可以 那我们就需要把差值最大的位置换过来 然后直接判断就行 阅读全文
posted @ 2019-10-21 09:34 WAKBGAN 阅读(168) 评论(1) 推荐(0) 编辑
摘要: 思路:枚举换的位置i,j 然后我们要先判断改序列能否完全匹配 如果可以 那我们就需要把差值最大的位置换过来 然后直接判断就行 阅读全文
posted @ 2019-10-20 21:21 WAKBGAN 阅读(517) 评论(1) 推荐(0) 编辑
摘要: 思路: 我们需要枚举展开多少条边 然后把上底面的点放到和下底面一个平面 然后算两点之间的距离 注意判断直线与线段是否有交点 #include <bits/stdc++.h> using namespace std; const double eps = 1e-8; const double inf 阅读全文
posted @ 2019-10-20 00:08 WAKBGAN 阅读(363) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/A1616 思路:dp[i][j]表示前i列里面选了情况j有多少种组合方案 #include<bits/stdc++.h> using namespace std; const int N = 2e5+5; typedef long long 阅读全文
posted @ 2019-10-17 20:49 WAKBGAN 阅读(274) 评论(0) 推荐(0) 编辑
摘要: A(模拟): #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; const double eps = 1e-6; const int N = 2e5+7; typedef long long ll; c 阅读全文
posted @ 2019-10-02 17:34 WAKBGAN 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 题意:问有多少种组合方法让每一行每一列最小值都是1 思路:我们可以以行为转移的状态 附加一维限制还有多少列最小值大于1 这样我们就可以不重不漏的按照状态转移 但是复杂度确实不大行(减了两个常数卡过去的...) #include <bits/stdc++.h> using namespace std; 阅读全文
posted @ 2019-09-30 21:05 WAKBGAN 阅读(177) 评论(0) 推荐(0) 编辑