- 博客(19)
- 资源 (3)
- 收藏
- 关注
原创 AOP方式的函数参数修改
AOP方式的函数参数修改实习时接了一个简单需求,要求在查询数据时,将输入的特定用户Id映射为其他Id,完成参数替换。由于涉及的方法实在是太多了,逐个进行代码改造工作量也比较大。最近实习也接触了spring生态,考虑使用AOP方式解决这个问题。 这里主要使用ProceedingJoinPoint类,该类能返回切点方法的许多信息,包括函数名,参数名列表以及参数列表等。根据函数参数列表是否包含us...
2018-07-07 22:54:56
8574
原创 LeetCode Weekly Contest 51
LeetCode Weekly Contest 51LeetCode Weekly Contest 51Baseball Game题目描述分析Next Closest Time题目描述分析Redundant Connection问题描述分析K Empty Slots题目描述分析682. Baseball Game题目描述You’re now a baseball game p
2017-09-28 11:00:56
413
原创 OPENSTACK Kilo Keystone 安装Internal Server Error (HTTP 500)解决办法
在ubuntu14.04 server中,按k版官方文档安装keystone,在确保keystone.conf正确配置情况下,执行openstack service create \ --name keystone --description "OpenStack Identity" identity出现InternalServerError: Internal Server Error (HT
2016-08-22 13:49:58
7344
1
原创 Libvirt简易安装
在ubuntu14.04下安装Libvirt可直接使用apt-get进行快速自动安装,apt-get 会自动解决依赖关系并做好相应配置。root@tjx-c:~# apt-get install libvirt-bin qemu virt-manager启动virt-mangaer需要用su -命令切换至root而并不是简单su切换,否则会出现D-BUS相关报错。root@tjx-c:~# su
2016-07-07 11:04:01
1119
原创 1050 to the max
To the MaxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 36809 Accepted: 19373DescriptionGiven a two-dimensional array of positive and negative integers,
2013-07-28 18:13:21
532
原创 poj 1992 jack
JackTime Limit : 2000/1000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 2Problem DescriptionWe need to have at least one computer
2013-07-25 22:21:43
1527
原创 Metro
MetroTime Limit : 2000/1000ms (Java/Other) Memory Limit : 8192/4096K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 4Problem DescriptionMany of SKB Kontur programmers like to
2013-07-20 11:26:40
563
原创 一个人的旅行
一个人的旅行Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 16 Accepted Submission(s) : 4Problem Description虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗
2013-07-20 11:14:15
390
原创 命运
命运Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 41 Accepted Submission(s) : 9Problem Description穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yife
2013-07-18 11:19:52
458
原创 poj1836 Alignment
AlignmentTime Limit : 2000/1000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)Total Submission(s) : 11 Accepted Submission(s) : 3Problem DescriptionIn the army, a platoon is compo
2013-07-18 10:42:49
523
原创 Palindrome
PalindromeTime Limit : 6000/3000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 9 Accepted Submission(s) : 3Problem DescriptionA palindrome is a symmetrical
2013-07-18 10:25:55
452
原创 Staircases
StaircasesTime Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/16384K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 5Problem DescriptionOne curious child has a set
2013-07-18 10:19:03
726
原创 K-based Numbers
K-based NumbersTime Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/16384K (Java/Other)Total Submission(s) : 22 Accepted Submission(s) : 14Problem DescriptionLet’s consider K-bas
2013-07-18 10:06:06
540
原创 poj 1207
The 3n + 1 problemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 46858 Accepted: 14768DescriptionProblems in Computer Science are often classified as bel
2013-07-11 15:56:58
498
原创 CF 190C
C. STLTime Limit : 4000/2000ms (Java/Other) Memory Limit : 524288/262144K (Java/Other)Total Submission(s) : 12 Accepted Submission(s) : 3Problem DescriptionVasya used to be an ac
2013-07-11 10:15:21
1070
3
原创 poj 1118
Lining UpTime Limit: 2000MS Memory Limit: 32768KTotal Submissions: 20706 Accepted: 6520Description"How am I ever going to solve this problem?" said the pilot.
2013-07-11 10:11:12
507
原创 poj 1007
DNA SortingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 73949 Accepted: 29577DescriptionOne measure of ``unsortedness'' in a sequence is the number of
2013-07-10 15:41:52
437
原创 poj 1005
I Think I Need a HouseboatTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 78115 Accepted: 33596DescriptionFred Mapper is considering purchasing some land
2013-07-09 23:05:33
405
原创 poj 1003
HangoverTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 89892 Accepted: 43515DescriptionHow far can you make a stack of cards overhang a table? If you h
2013-07-09 18:03:45
394
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人