- 博客(25)
- 问答 (1)
- 收藏
- 关注
原创 后勤报修管理系统
项目位置:http://123.57.48.194:9999/login.html 项目由于时间仓促,可能存在很多bug。 管理员账号:123456 123456 普通用户:3932460 123456 维修人员:91283124 123456
2021-06-10 17:55:53
1157
13
原创 Maven创建springmvc时访问controller404错误
1.看是否生产了class文件 2.配置文件少这一段我的也会导致404 <!-- 对模型视图名称的解析,即在模型视图名称添加前后缀(如果最后一个还是表示文件夹,则最后的斜杠不要漏了) 使用JSP--> <!-- 默认的视图解析器 在上边的解析错误时使用 (默认使用html)- --> <bean id="defaultViewResolver" class="org.springframework.web.servlet.view.InternalResourc
2021-03-12 21:28:16
511
原创 druid数据库连接mysql8.0以上Spring xml配置
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
2021-03-07 11:30:57
942
1
原创 IDEA配置Android出现错误
1.把IDEA更新到较新的版本,老版本可能不支持Gradle。 2.Gradle版本兼容的问题,这是我试出的可行版本。 3.Gradle阿里云,加快同步。 4.下载sdk时下载失败,尝试国内镜像。http://mirrors.neusoft.edu.cn/
2021-03-06 12:04:46
630
原创 AOP底层原理
通过JDK动态管理实现。 UserDao package com.company.aop; /** * @author wyl * @date 2021/3/5 20:20 */ public interface UserDao { public int add(int a, int b); public int mul(int a, int b); } UserDaoimpl package com.company.aop; /** * @author wyl * @da
2021-03-05 21:01:37
163
1
原创 基于Python的模拟登录校园无线网
最主要的一个问题就是校园网登录的网站根据你的ipv6变化进行变化,通过python获取ipv6,对网站就行拼接即可。本程序不一定能使用任何电脑,由于处理的ipv6的位置可能不同。 import requests import socket import time if __name__ == '__main__': session = requests.Session() hostname = socket.gethostname() iplist = socket.gethostb
2020-11-29 11:36:21
345
原创 PHP大作业:考试后台管理系统

2020-11-22 20:17:47
1879
24
原创 zzuli 第二次新生赛 2663: 最大的差
题目链接 n <= 1e5 直接用分块优化,时间复杂度O(n^3/2)。不过正解是O(n)的算法,分块达到1e6的数据就不太方便了。 #include<bits/stdc++.h> using namespace std; #define lowbit(x) ((x) & (-x)) typedef long long ll; const int maxn = 1e6 + 7; int a[maxn], block[maxn]; int ans[maxn]; inline in
2020-11-16 19:57:25
228
原创 zzuli第四次javaweb实验
页面较为粗糙,毕竟刚学两个学,也没有进行封装。时间有限。此代码仅供交流学习,严禁抄袭!!!代码可能存在一些bug,dl可以通过评论联系我。 MysqlManger.java package link; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; public class MysqlManager { f.
2020-10-30 20:35:59
563
原创 NC14699 队伍配置
传送门 其实这道题也比较简单,第一次做也没有思路。 dp[i][j][k]表示在cost=i时候,选j个从者,k个概念礼装的最大atk值。 #include <iostream> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <set> #include
2020-10-25 12:42:39
256
原创 zzuli:2580: 落落大方3
传送门 此题的第一个版本,n较小,m较大。考虑dfs。复杂度O(2^n). #include<bits/stdc++.h> using namespace std; double sum=0; int a[20]={0},flag=0; void dfs(int step, double num,int n) { if(flag==1) return; if(step==n) { if(num==sum/2)
2020-10-23 21:32:55
205
原创 zzuli:2140: Mo‘s Algorithm
传送门 #include <iostream> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <set> #include <queue> #include <map> #include <deque> #include
2020-10-22 17:12:03
183
原创 合并回文子串(牛客NC13230)
传送门 递推方程也很容易找到: if (s1[i] == s1[j]) dp[i][j][k][l] |= dp[i+1][j-1][k][l]; if (s2[k] == s2[l]) dp[i][j][k][l] |= dp[i][j][k+1][l-1]; if (s1[j] == s2[k]) dp[i][j][k][l] |= dp[i][j-1][k+1][l]; if (s1[i] == s2[l]) dp[i][j][k][l] |= dp[i+1][j][k][l-1]; 首先枚举长度,
2020-10-22 16:23:30
304
2
原创 2142: Split the Number
看似是搜索,实际是一道思维题。 从大到小分n,肯定能分完。 当前的k个数肯定是最小的。 然后比如:f[4]最多能分成f[4]个数,最少分成1个数。 推论f[i]最多能分成f[i]个数,最少分成1个数。 最后得出一个范围,看k是否在范围内即可。 #include <iostream> //#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #in
2020-10-11 10:18:49
225
原创 The Labyrinth CodeForces - 616C
#include<bits/stdc++.h> using namespace std; int n, m; char s[1004][1004]; int vis[1004][1004]; int pos[4][2] = {{1,0},{0,1},{-1,0},{0,-1}}; int k; int check(int x, int y){ if (x >= 0 && x < n && y >= 0 && y <
2020-10-11 09:35:04
234
2
原创 Another Birthday Present! CodeChef - SHUFFLE
传送门 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <set> #include <queue> #include <map> #include <deque> #include <cstdlib> #include &l
2020-10-04 19:03:36
245
原创 第19次CSP CCF认证 稀疏向量(svector)
题意比较简单就是找u*v的值,在最后n的值较大,不能通过数组下标进行记忆。这也是本题的难点。可以使用二分法或map标记的方法。 二分解法: //#include <bits/stdc++.h> #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #...
2020-09-05 20:27:17
334
原创 D-query SPOJ - DQUERY(莫队算法)
这题的解法并不唯一,在网上看到的主要有主席树和莫队算法两种,但主席树的代码普遍比较长而且较难理解。而莫队算法代码量短而且叫容易理解。莫队算法也是一种暴力的算法,复杂度比纯暴力快了不少,但比主席树慢了一点。 题目大意:在数列a中,找出[L,R]中有多少个不同的数。 //#include <bits/stdc++.h> #include <algorithm> #include <cmath> #include <cstdio> #include <cs
2020-09-04 20:17:03
247
原创 分块算法入门及简单习题
分块算法入门及简单习题 分块算法也算是一种暴力算法,可以解决一些区间问题(数据没有卡分块)。写起来比较简单。随着知识的增长,发现线段树和线段数组也能很快的解决一些区间问题,而且比分块要快。但是分块也有他自己的优势:容易书写,简单易懂,并且能处理一些线段树不好处理的一些问题。 我认为的一套简单易懂的模板: for (int i = 1; i <= n; i ++){ a[i] = read(); block[i] = (i - 1) / sz + 1; v
2020-09-01 15:42:51
471
原创 Unusual Competitions
Unusual Competitions 传送门 #include <bits/stdc++.h> #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <set>...
2020-03-08 17:40:34
187
原创 hdu6708 Windows Of CCPC
hdu6708 Windows Of CCPC 传送门 第一次看到这个题感觉非常高大上,又过了几个月,我又碰见了。发现是一个水题。直接用三维字符数组模拟可以,但是我感觉略微麻烦,我想到了用string,比用三维字符数组更方便。话不多说,代码如下。` #include <bits/stdc++.h> #include <iostream> #include <cstdi...
2020-03-08 17:35:36
239
原创 洛谷P1781
传送门 利用字符串函数进行对比有奇效!!! #include <bits/stdc++.h> const int maxn = 1e4 + 7; using namespace std; int main(){ int n; char str[24][1120]; cin >> n; char max[1110] = ""; // 初始化为...
2020-01-02 20:24:14
271
原创 洛谷P1618
洛谷P1618 暴力即可!!! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e4+100; int main() { int a, b, c; int temp[10] = {0}; int ans1, ans2, ans3; i...
2019-12-31 20:36:49
590
原创 洛谷P1008三连击
洛谷P1008三连击 #include <bits/stdc++.h> const int maxn = 1e3 + 7; using namespace std; int main() { int temp[12] = {0}; for (int i = 192; i <= 329; i++){ int flag = 1; fil...
2019-12-31 20:34:51
225
空空如也
Idea运行安卓时出现错误
2021-03-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅