摘要: maven依赖 <!-- 文件上传组件 --> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> spring引入配置文件 <con 阅读全文
posted @ 2020-04-09 13:12 Dorom 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 描述 Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now h 阅读全文
posted @ 2019-10-28 15:32 Dorom 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 描述 You're given a tree with weights of each node, you need to find the maximum subtree of specified size of this tree. Tree DefinitionA tree is a conn 阅读全文
posted @ 2019-10-28 13:07 Dorom 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题目描述 ※ 简单版与困难版的唯一区别是 n,m,q 的数据范围 给一个n×m 的网格,每个格子里有一个数字,非 00 即 11,行从上往下依次编号为 1, 2⋯,n,列从左往右依次编号为 1,2,⋯,m。 给 qq 次操作,每次给定一个以(x1​,y1​) 为左上角,(x2​,y2​) 为右下角的 阅读全文
posted @ 2019-10-26 09:56 Dorom 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f const int N=1e+5; int n,m,tot,sum,rt,ans; struct node{int v,w,next;}e[N<<1]; int 阅读全文
posted @ 2019-10-22 16:10 Dorom 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 描述 机器人要在一个矩形迷宫里行动(不能原地停留,只能走向上/下/左/右),每移动一格花费1个单位时间。迷宫有以下几种元素: 【*】 机器人的起点 【#】 墙。机器人不能走过这些格子 【.】 平地。机器人可以在上面自由行走 【0-9】 宝藏。当机器人走到此处会立刻获得该数字相应的宝藏,宝藏不会消失, 阅读全文
posted @ 2019-10-11 10:38 Dorom 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 描述 在顺利攻破Lord lsp的防线之后,lqr一行人来到了Lord lsp的城堡下方。Lord lsp黑化之后虽然拥有了强大的超能力,能够用意念力制造建筑物,但是智商水平却没怎么增加。现在lqr已经搞清楚黑暗城堡有N个房间 (1≤N≤1000),M条可以制造的双向通道,以及每条通道的长度。lqr 阅读全文
posted @ 2019-10-10 16:12 Dorom 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 描述 The cows have decided on a daring plan to escape from the clutches of Farmer John. They have managed to procure a small inflatable raft, and during 阅读全文
posted @ 2019-10-10 16:07 Dorom 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 描述 There is a matrix only contains uppercase letters. Try to find a word in this matrix. You can go toward four directions (top, bottom, left, right), 阅读全文
posted @ 2019-10-09 20:56 Dorom 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 描述 It was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacati 阅读全文
posted @ 2019-10-09 10:47 Dorom 阅读(145) 评论(0) 推荐(0) 编辑