自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小时的枫的博客

一个计科生

  • 博客(105)
  • 收藏
  • 关注

原创 docker安装owncloud

docker安装owncloudownCloud是一个自由且开源的个人云存储解决方案因为偶尔会有文件想要备份或者共享所以就自己搭建了一下ownCloud,这里记录下搭建过程安装数据库我们要先安装数据库,我这里选择mysql 用docker来安装acm@acm-Lenovo:~/acmcloud$ sudo docker pull registry.docker-cn.com/lib...

2018-10-24 18:45:39 2586

原创 ACM刷题之hdu————Kingdom of Black and White

    Kingdom of Black and WhiteTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4395    Accepted Submission(s): 1315Problem DescriptionIn the King...

2018-04-25 19:31:01 400

原创 ACM刷题之hdu————Covering

CoveringTime Limit: 5000/2500 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1446    Accepted Submission(s): 589Problem DescriptionBob's school has a big playground,...

2018-04-24 19:59:14 369

原创 ACM刷题之POJ————Pots

PotsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20922 Accepted: 8916 Special JudgeDescriptionYou are given two pots, having the volume of A and B liters respectively. The following opera...

2018-04-24 18:30:20 581

原创 ACM刷题之POJ————River Hopscotch

River HopscotchTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 17988 Accepted: 7516DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefu...

2018-04-17 21:37:45 433

原创 ACM刷题之codeforces————Producing Snow

Producing Snowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice likes snow a lot! Unfortunately, this year's winter is already over, and she ca...

2018-04-17 18:37:33 331

原创 ACM刷题之codeforces————Taxes

Taxestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr. Funt now lives in a country with a very specific tax laws. The total income of mr. Funt d...

2018-04-17 18:33:26 228

原创 ACM刷题之POJ————Drying

DryingTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 20641 Accepted: 5202DescriptionIt is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is no...

2018-04-13 08:56:32 460

原创 ACM刷题之codeforces————Merge Equals

Merge Equalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers. While there are at least two equal elemen...

2018-04-12 14:15:33 484 2

原创 ACM刷题之Codeforces————Make a Square

Make a Squaretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a positive integer nn, written without leading zeroes (for example, the...

2018-04-11 21:38:35 735

原创 ACM刷题之codeforce————Table Tennis

Table Tennistime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputn people are standing in a line to play table tennis. At first, the first two players ...

2018-02-21 13:43:56 436

原创 ACM刷题之codeforce————Nikita and string

Nikita and stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Nikita found the string containing letters "a" and "b" only.Nikita thinks...

2018-02-18 23:31:53 340

原创 ACM刷题之codeforce————Divisiblity of Differences

Divisiblity of Differencestime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputYou are given a multiset of n integers. You should select exactly k of th...

2018-02-18 18:58:48 318

原创 ACM刷题之codeforce————Dijkstra?

Dijkstra?time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputYou are given a weighted undirected graph. The vert

2018-01-29 23:44:49 857

原创 ACM刷题之codeforce————Race Against Time

Race Against Timetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHave you ever tried to explain to the coo

2017-10-05 20:13:52 554

原创 ACM刷题之codeforce————Arpa and a research in Mexican wave

A. Arpa and a research in Mexican wavetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputArpa is researching t

2017-09-05 22:19:17 415

原创 关于另一个博客的一些说明

最近自己搭建了另一个博客 我的博客接下来的写博客重心也应该会转移到那个博客上我准备把两个博客分为两个侧重点csdn主要用来记录一些和acm有关的内容,偶尔更新一些干货我的博客来记录一些专业技术的东西希望大家多多支持

2017-07-30 14:12:18 330

原创 ACM刷题之hdu————KazaQ's Socks

KazaQ's SocksTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0    Accepted Submission(s): 0Problem DescriptionKazaQ wears sock

2017-07-25 18:43:13 396

原创 SpringBoot定时任务

定时任务是一个后台经常要用到的功能首先我们要在SpringBoot里配置pom.xml文件1234<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId></dependency&gt...

2017-07-23 14:16:31 2009

原创 SpringBoot邮箱注册验证

注册功能是一个网站的基本功能刚刚实现了用邮箱来注册并验证的程序这里记录下有了上篇SpringBoot发送邮件的基础,我们就可以完成一个简单的邮箱注册功能了首先我们要在SpringBoot里配置pom.xml文件12345678910111213141516171819<dependency> <groupId>mysql</groupId> <arti...

2017-07-23 14:15:45 8133 2

原创 SpringBoot发送邮件

最近把算打注册邮箱验证弄一下学习了下如何用SpringBoot发送邮件首先我们要在SpringBoot里配置pom.xml文件1234<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactI...

2017-07-23 14:14:08 723 3

原创 在Tomcat上部署Vue.js项目

接着上次的图书管理系统修改完问题后把SpringBoot成功部署到了服务器上测试了下api接口,能正常访问那么下面就是在服务器上部署前端的vue.js了这里的话我们要明确一点vue.js是一个前端的框架,所以部署的时候并不需要node.js之类的服务器 像本地的1npm run Dev只是用来调试用

2017-07-17 15:22:06 37594 6

原创 JPA里自定义SQL查询的一些问题

接着上次的图书管理系统还书的时候不仅要在还书的数据表添加新纪录还要去把借书表中对应的内容删除但是因为前端我写的时候只返回了book_id和client_id所以在还书的Service里还要根据这两个id去查出对应的借书记录,并删掉这里可以用Spring data 里的自定义查询来实现自定义查询以及Spring data JPA的使用方法可以在这里 有相关的介

2017-07-17 15:20:49 3039 1

原创 MySql的保留字段的问题

今天打算把短学期实践的时候写的图书管理系统的后台用SpringBoot实现一下一开始很顺利但是在写插入一本书的数据的时候出现了问题以下是报错信息的部分截取12SQL Error: 1064, SQLState: 42000You have an error in your SQL syntax; check the manual that corresponds to your MariaDB s...

2017-07-17 15:19:25 878

原创 关于Spring数据库连接

之前短学期数据库实践,和同学用SpringMVC + mybatis 做了个图书管理系统的后台用vue.js与ElementUI做前端在合作的时候,我们采用的是GitHub 来进行代码同步协作但是在中间遇到了一个小插曲我在调试的时候,发现我通过前端向后台数据库插入和更新数据的时候,中文字符都会变成???一开始我认为是前端传输的时候Header里的格式问题但是用postman来调试还是没用后来我打开...

2017-07-12 14:08:42 327

原创 服务器运行打包的jar

写了个简单的SpringBoot的demo打包成jar文件部署到服务器通常的做法是进入jar文件目录输入命令1java -jar demo2.jar虽然这样确实能跑起来,但是这不是常驻后台的一旦你关闭ssh窗口,服务也就停止了下面介绍常驻后台的方法用Linux里的nohup 命令例如这里我们可以这样做1nohup java -jar demo2.jar >test.out &解释下n...

2017-07-10 17:36:13 3498

原创 关于SpringBoot部署上的一些坑

最近打算把之前写的一个SpringBoot的小demo部署到自己的腾讯云上但是中间断断续续踩了很多坑,所以来写个博客,来记录下第一个坑war包的部署在IDEA里打包成war包后,我高高兴兴的把它扔到了服务器的Tomcat上但是却没有用,我以为是环境问题于是我把打包的war包扔到了本地的Tomcat上还是没有用我查看了本地Tomcat的日志

2017-07-10 09:46:04 8779 1

原创 2015ACM/ICPC亚洲区长春站————House Building

Almost Sorted ArrayTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 4461    Accepted Submission(s): 1104Problem DescriptionWe a

2017-05-21 15:32:25 738

原创 ACM刷题之EOJ————黑心啤酒厂

黑心啤酒厂Time limit per test: 1.0 secondsTime limit all tests: 1.0 secondsMemory limit: 256 megabytesAccept / Submit: 1001 / 3217黑心啤酒厂为了让大家买啤酒,会把一瓶酒设计成恰好能倒七杯。由于聚会时经常会有大家一起干杯这样的事情,干杯之前又要给每个人都

2017-05-12 20:22:12 750

原创 IDEA里构建SpringBoot项目

最近在学SpringBoot,所以来写一些教程,帮助自己更好的学习,也给刚入门的人一点帮助。好,下面进入正题。首先打开IDEA,我们,点击new project会出现如下界面我们选择我在图里标记的 Spring Initializr  ,然后点击Next会出现下图所示我们可以修改项目名,这里我的项目名是demo

2017-05-11 18:24:01 558

原创 ACM刷题之ZOJ————Let's Chat

Let's ChatTime Limit: 1 Second      Memory Limit: 65536 KBACM (ACMers' Chatting Messenger) is a famous instant messaging software developed by Marjar Technology Company. To attract more users,

2017-05-11 17:53:12 634

原创 ACM刷题之codeforces————Simple Robot

Simple Robottime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSaMer is building a simple robot that can move

2017-04-16 20:10:32 863 1

原创 ACM刷题之codeforces————Cinema

Cinematime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRami and K of his friends are going to watch a movie

2017-04-16 20:09:09 951

原创 ACM刷题之codeforces————Ya Rajaie and Books

Ya Rajaie and Bookstime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr. Ya Rajaie has N books and wants t

2017-04-16 20:07:15 587

原创 ACM刷题之codeforces————The Little Match Girl

The Little Match Girltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputUsing at most 7 matchsticks, you can d

2017-04-16 20:05:40 772

原创 ACM刷题之ZOJ————Java Beans

Java BeansTime Limit: 2 Seconds      Memory Limit: 65536 KBThere are N little kids sitting in a circle, each of them are carrying some java beans in their hand. Their teacher want to select M 

2017-04-16 19:57:56 785

原创 ACM刷题之ZOJ————Hard to Play

Hard to PlayTime Limit: 2 Seconds      Memory Limit: 65536 KBMightyHorse is playing a music game called osu!.After playing for several months, MightyHorse discovered the way of calculati

2017-04-16 19:56:53 692

原创 ACM刷题之ZOJ————Density of Power Network

Density of Power NetworkTime Limit: 2 Seconds      Memory Limit: 65536 KBThe vast power system is the most complicated man-made system and the greatest engineering innovation in the 20th centu

2017-04-16 19:55:27 419

原创 ACM刷题之ZOJ————Break Standard Weight

Break Standard WeightTime Limit: 2 Seconds      Memory Limit: 65536 KBThe balance was the first mass measuring instrument invented. In its traditional form, it consists of a pivoted horizontal

2017-04-16 19:54:04 264

原创 ACM刷题之ZOJ————Convert QWERTY to Dvorak

Convert QWERTY to DvorakTime Limit: 2 Seconds      Memory Limit: 65536 KBEdward, a poor copy typist, is a user of the Dvorak Layout. But now he has only a QWERTY Keyboard with a broken Caps

2017-04-16 19:49:11 533

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除