04 2019 档案
摘要:POJ 2253 Frogger题目意思就是求所有路径中最大路径中的最小值。 #include<iostream> #include<cstdio> #include<string.h> #include <utility>//make_pair的头文件 #include<math.h> using
阅读全文
摘要:这些技巧具体用例子题目来讲解 1.poj 3299 大致题意:该题是一个超级大水题,只需理解题意,即给你几个公式,求这三个可以互求的公式里面的数t,d,h,然后它任意给这三个数里面的两个数的字符代表,让你求第三个数的值,最后按照一定格式输出这三个数,需要保留一位小数。 Sample Input Sa
阅读全文
摘要:一.取模运算的性质: (1)(a+b)%c=(a%c+b%c)%c(2)(ab)%c=(a%c)(b%c)%c 快速幂的复杂度分析:o(log n) 快速幂的原理 初稿:https://www.cnblogs.com/Aiahtwo/p/10701402.html 采用位运算的两种工具: &:这里用
阅读全文
该文被密码保护。
摘要:作业:文档形式 3到5页理解 1.理解 2.源代码解释(1到2页) 3.实现效果 项目地址: https://github.com/zhiyishou/polyer Demo:https://zhiyishou.github.io/Polyer [图形学]Delaunay三角剖分算法附C++实现 h
阅读全文
摘要:#include<iostream>#include<algorithm>using namespace std;int a[200005];int b[200005];int c[200005];int n;int solve(int a,int c){ if(a>=0&&c>=0&&a<n&&c
阅读全文
摘要:记录一些之前没见过的代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; #define INF 2000000000ll #define SIZE 100000ll #define pb push_back
阅读全文