- 博客(40)
- 资源 (5)
- 收藏
- 关注
原创 JavaSE 第二次学习随笔(一)
Java是一种区分大小写的强类型准动态语言 动态语言,是指程序在运行时可以改变其结构:新的函数可以被引进,已有的函数可以被删除等在结构上的变化,类型的检查是在运行时做的,优点为方便阅读,清晰明了,缺点为不方便调试;(比如 : JavaScript Ruby Python OC) 静态类型语言的类型判断是在运行前判断(如编译阶段),比如 C#, Java, C, C++就是静态类型语言,...
2018-08-09 17:05:13
258
转载 使用欧拉筛解决素数计算问题
转自: http://www.cnblogs.com/A-S-KirigiriKyoko/articles/6034572.html 我们知道当一个数为素数的时候,它的倍数肯定不是素数。所以我们可以从2开始通过乘积筛掉所有的合数。 将所有合数标记,保证不被重复筛除,时间复杂度为O(n)。public class Main { public static void main...
2018-08-01 13:13:50
475
原创 我的Hibernate学习
以下博客均为引用, 侵删Hibernate初级 HQL和SQL的区别 https://blog.youkuaiyun.com/aaa1117a8w5s6d/article/details/7757097 Hibernate的hql查询语句总结 http://www.cnblogs.com/xiaoluo501395377/p/3376256.html HQL中的hibernate Transf...
2018-04-16 21:36:18
271
转载 pageScope、requestScope、sessionScope、applicationScope的区别
https://www.cnblogs.com/qianbaidu/p/6006459.html1、区别:1.page指当前页面有效。在一个jsp页面里有效2.request 指在一次请求的全过程中有效,即从http请求到服务器处理结束,返回响应的整个过程,存放在HttpServletRequest对象中。在这个过程中可以使用forward方式跳转多个jsp
2017-11-14 16:56:17
1906
原创 My jdbc 错误
jdbc mysql插入数据提示Parameter index out of range (1 > number of parameters, which is 0).
2017-11-12 21:07:53
266
原创 mysql_old_wrong
DELIMITER $create trigger auto_post_person_pointafter insert on post for each rowbeginupdate person set point = point+10 where person_id = new.person_id;end$DELIMITER $... ...$ 这个不写会报错:m
2017-11-07 16:26:08
313
原创 如何查找(复制or下载)自己需要的文档(包括度娘的)
如何查找(复制or下载)自己需要的文档(包括度娘的)一.文档搜寻方法http://www.wenkuxiazai.com(免费下载)http://doc.guandang.net(免费下载)http://www.1mpi.com(免费查看)http://www.sodocs.net(免费查看)http://m.difanguoji.com(免费查看)以上全都不需要翻
2017-07-02 00:31:27
1115
原创 谈一谈如何远程访问MySQL(腾讯云,云主机)
连接MySQL (其他的sql 基本相同套路)腾讯云不管怎么设置端口和MySQL权限以及监听端口就是不能连接?远程访问MySQL数据库的几个关键点端口设置数据库权限设置数据库的监听端口设置
2017-05-05 23:11:33
3619
原创 Java开发学生管理系统
Java 学生管理系统使用JDBC了链接本地MySQL 数据库,因此在没有建立好数据库的情况下没法成功运行(数据库部分, Java界面部分, JDBC部分)
2017-05-03 16:18:59
1803
3
转载 JAVA使用JDBC连接,修改MySQL数据库(比较乱)
前言什么是JDBC准备工作MySQL安装配置和基础学习JDBC基本操作1定义记录的类可选2连接的获取3insert4update5select6delete代码分析javasql 接口 Connectionjavasql 接口 PreparedStatementjavasql 接口 ResultSet
2017-04-30 22:46:24
1302
原创 凑算式-蓝桥-全排列
凑算式 B DEFA + --- + ------- = 10 C GHI (如果显示有问题,可以参见【图1.jpg】) 这个算式中A~I代表1~9的数字,不同的字母代表不同的数字。 比如:6+8/3+952/714 就是一种解法,
2017-03-23 20:48:34
538
原创 蓝桥杯的训练-表达式计算
#include #include #include #include #include #include #include using namespace std;char prior[7][7] ={ '>', '>', '', '>', '>', '>', '', '>', '>', '>', '>', '>', '', '>', '>',
2017-02-09 18:24:39
655
原创 Bank Simulation Program银行管理系统C++ :)
设计并实现简单的银行存取款系统,系统主界面包括登录和注册两个选项,选择登录,提示用户输入银行帐号和密码,验证通过后进入主界面,主界面包括:存款、取款、查询余额、历史记录、修改密码等功能。注册功能让用户输入账号和密码,在注册时要验证账号是否已经存在。所有数据能够保存在文件中,退出系统后再次运行系统,之前注册的用户和存款信息都存在。#incl
2017-01-20 19:49:10
1338
原创 数据结构-循环队列
//克服假溢出现象#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define true 1#define false 0#d
2017-01-02 22:13:27
436
原创 数据结构-顺序栈
#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEAS
2017-01-02 22:11:15
425
原创 数据结构-顺序表
#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typedef int status;typed
2017-01-02 22:10:03
618
原创 数据结构-二分查找(Binary Search)
#include #include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define true 1#define false 0#d
2017-01-02 22:08:24
644
原创 数据结构-二叉树(Binary Tree)
#include #include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define true 1#define false 0#d
2017-01-02 22:05:32
566
原创 数据结构-多项式计算(栈实现)
#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define true 1#define false 0#define OK 1
2017-01-02 22:02:41
1565
原创 数据结构-模式匹配串算法(KMP)
#include#include#include#include#include#includeusing namespace std;void getnext(char *t, int *next, int lent){ int i = 0, j = -1; next[0] = -1; while (i < lent) if (j ==
2017-01-02 21:54:40
565
原创 数据结构-哈夫曼(Huffman)
#include #include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define MAX 0xcf
2017-01-02 21:47:36
520
原创 数据结构-队列(Queue)
#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define TRUE 1#define FALSE 0#define true 1#define false 0#define OK 1
2017-01-02 21:34:25
336
原创 数据结构-单链表(Linked List)
#include #include #define LIST_INIT_SIZE 10#define LISTINCREMENT 100#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typedef int status;
2017-01-02 21:31:29
520
原创 行列式计算
#include #include #include using namespace std;int main(){ int n=0; int a[50]= {0}; int b[50][50]= {0}; int sum =0,x; cout<< "\t\t\t\t\t行列式计算\n请输入阶数:"; cin >> n
2016-09-02 14:22:10
756
原创 CodeForces 651B
#include #include using namespace std;int a[1005], n, temp, maxk;int main(){ scanf("%d", &n); for(int i = 0; i < n; i++) { scanf("%d",&temp); maxk = max(maxk,++a[temp]); } printf("%d\n"
2016-06-20 08:43:11
401
原创 UVA - 201-Squares
#include #include #include #include #include #include using namespace std;int h[12][12],v[12][12];int s[10] = {0};int m,n;int cnt=1;void found(int x,int y){ for(int ce=0 ; ce<min(m-x,
2016-06-11 20:45:37
474
原创 UVA-253-Cube painting
DescriptionWe have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are numbered
2016-06-10 10:48:23
496
原创 常用自写函数[更新ing]
1.求最大公约数;int gcd ( int x , int y){ return y == 0 ? x : gcd( y , x % y );}
2016-02-24 15:57:22
423
原创 A Bug's Life(削弱版食物链)
DescriptionBackground Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of t
2016-02-24 15:21:51
682
原创 The Suspects
DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best s
2016-02-24 15:17:51
325
原创 Find The Multiple
DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than
2016-02-22 21:00:42
629
1
原创 二叉树(dfs)
样例输入:5 //下面n行每行有两个数2 3 //第i行的两个数,代表编号为i的节点所连接的两个左右儿子的编号。4 50 0 // 0 表示无0 00 0 样例输出:2 3 #include#include#define inf -1using namespace
2016-02-22 19:13:10
474
原创 Lake Counting(dfs)
DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 Each square contains either water ('W') or dry land ('.')
2016-02-22 19:08:52
570
原创 经典dfs(depth-first search)
DFS主要在于参数的改变;样例输入:n=4 //给定n个数字a={1,2,4,7} //输入n个数据k=15 //目标数字样例输出:No题意:给定的数字在不重复使用的前提下能否达到目标,能输出Yes,否输出No#include#includeusing namesp
2016-02-22 19:07:13
566
原创 喝啤酒(预防老年痴呆的深度搜索)
每瓶啤酒2元,2个空酒瓶或4个瓶盖可换1瓶啤酒。10元最多可喝多少瓶啤酒?#include#includeusing namespace std;int dfs(int p, int g, int ans){ if(p < 2 && g < 4) return ans; int ret1 = 0; int ret2 = 0; if(p >= 2) r
2016-02-22 18:51:03
849
转载 C语言的位运算的优势 !
位运算加速技巧1. 如果乘上一个2的倍数数值,可以改用左移运算(Left Shift) 加速 300%x = x * 2;x = x * 64;//改为:x = x 1x = x 62. 如果除上一个 2 的倍数数值,可以改用右移运算加速 350%x = x / 2;x = x / 64;//改为:x = x >> 1;// 2 = 21
2016-02-22 15:13:51
502
原创 Oil Deposits
DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid
2016-02-22 14:57:48
497
原创 Catch That Cow
DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point
2016-02-22 14:55:10
489
原创 迷宫问题
迷宫问题Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程
2016-02-21 21:33:21
562
原创 Dungeon Master(逃脱大师)-BFS
Dungeon MasterDescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It tak
2016-02-21 16:49:41
817
守望先锋主题有视频资源版 java EE项目(包括mysql代码)
2018-01-13
jseclpise-1.8
2017-09-21
Java开发学生管理系统-project
2017-05-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人