摘要: 3____计算几何 Triangle Naive and Silly Muggles 3.1____叉积判断点线关系 TOYS #include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include < 阅读全文
posted @ 2021-04-22 21:59 Hoppz 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1____Servlet初步 IJ Servlet 初始化博客推荐 1.1____虚拟网页映射设置 一般初始地址我们设置为 localhost:8081/ 在/ 之后的就是我们设置的虚拟地址,或者是直接地址 http://localhost:63342/test1/web/index.html?_i 阅读全文
posted @ 2021-04-22 00:16 Hoppz 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 图像处理 灰度反转 公式 设 \(g(x,y)\) 为转换图像对应的 \(x,y\) 处的值, \(f(x,y)\) 为原灰度图像的值,L为灰度级数(一般为256) \(g(x,y) = L - 1 - f(x,y)\) matlab实现 clc; close all; clear all; imG 阅读全文
posted @ 2021-04-08 21:13 Hoppz 阅读(1493) 评论(0) 推荐(0) 编辑
摘要: 图像处理(一) 彩色图片转灰度图片 三种实现方式 最大值法 \(imMax = max( im(i,j,1),im(i,j,2),im(i,j,3) )\) 平均法 \(imEva = \frac{im(i,j,1)}{3} + \frac{im(i,j,2)}{3} + \frac{im(i,j, 阅读全文
posted @ 2021-04-08 20:54 Hoppz 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: A.Puzzle From the Future #include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while(t--){ int n; cin >> n; string s; cin >> s; 阅读全文
posted @ 2021-01-26 00:34 Hoppz 阅读(48) 评论(0) 推荐(0) 编辑
摘要: A - Biorhythms 题目链接 #include <iostream> #include <cstring> #include <algorithm> #include <cstdio> using namespace std; int main() { int cnt = 1; while 阅读全文
posted @ 2021-01-14 15:00 Hoppz 阅读(61) 评论(0) 推荐(0) 编辑
摘要: A - Perfect Cubes 题目链接 还是想的hash去重出问题了2333开始用(i+k+j) * 13去重,但是忘了有多个(i+j+k)的可能,最后发现 -i * 13 + j *3 + k * 1-可以用这种去重,后面队友说可以直接线性做, --也坑了一次,最后代码如下 #include 阅读全文
posted @ 2021-01-14 13:56 Hoppz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 今天acwing里有个题,我还是还以为是完全二叉树,结果我队内dalao一说,原来是线性dp,刚好又是计蒜客的题,那就正好补一下计蒜客的题吧。 捡水果 题目链接 #include <bits/stdc++.h> using namespace std; int a[1004][1003]; int 阅读全文
posted @ 2021-01-10 17:08 Hoppz 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 2017省赛A组 1题 题目链接 #include <bits/stdc++.h> using namespace std; /* 蓝桥杯2017A_1 算法:DFS */ void file() { #ifdef ONLINE_JUDGE #else freopen( "d:/workProgra 阅读全文
posted @ 2021-01-08 20:19 Hoppz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: K.K Co-prime Permutation 一个重要的知识点 gcd(1,x) = 1; gcd(x,x-1) = 1; #include <bits/stdc++.h> using namespace std; int a[1000005]; void sovle() { int n,k; 阅读全文
posted @ 2020-12-21 00:53 Hoppz 阅读(112) 评论(0) 推荐(0) 编辑