- 博客(15)
- 资源 (6)
- 收藏
- 关注
原创 JS 中 location.href 的用法
Jsp 中 常用到js来跳转页面; 整理了一下js location.href 的用法Javascript中的location.href有很多种用法,主要如下: self.location.href="/url" 当前页面打开URL页面 ocation.href="/url" 当前页面打开URL页面 windows.location.href="/url" 当前页面打开URL页面...
2018-10-30 19:16:06 21004
原创 C++ 连接数据库MySQL (迷的操作..) (Codeblocks(32位) + MySQL(64位)
导语:C++ 连接数据库MySQL.我的本机环境是 MySQL(64位) 安装的 Codeblocks 是(32位的) 因为 不兼容的原因. 所以 一直出现各种错误.经过各种尝试, 终于连接成功. 解决方案: 安装 MinGW64 位的编译器. 一般默认的 编译器是MinGW32 位的.需要的前置环境:如果你的Codeblocks 是 64 位的 , ...
2018-10-18 11:09:19 1365 1
原创 POJ -2391 Ombrophobic Bovines (二分+Floyd+网络流)
Ombrophobic BovinesTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 21425 Accepted: 4593 DescriptionFJ's cows really hate getting wet so much that the mere thought of...
2018-10-17 15:27:01 169
原创 nowcoder (牛客)Wannafly挑战赛26 B: 冥土追魂 (思维)
链接:https://www.nowcoder.com/acm/contest/212/B来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 524288K,其他语言1048576K64bit IO Format: %lld题目描述有一天 Misaka 和 Kuroko 在玩一个关于冥土追魂的游戏....Misaka和Kuroko在一个 n x m 的...
2018-10-14 10:28:18 274
原创 Educational Codeforces Round 52 (Rated for Div. 2) C: Make It Equal(思维)
C. Make It Equaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a toy building consisting of nn towers. Each tower cons...
2018-10-12 10:13:38 259
原创 IDEA写JSP访问数据库 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driverat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)at org.apache.catalina.loader.WebappClassLoader.loadClass...
2018-10-08 16:58:20 592
原创 @Wannafly summer camp Day2 B: Utawarerumono (数学公式, 扩展欧几里得)
算术是为数不多的会让久远感到棘手的事情。通常她会找哈克帮忙,但是哈克已经被她派去买东西了。于是她向你寻求帮助。给出一个关于变量x,y的不定方程ax+by=c,显然这个方程可能有多个整数解。久远想知道如果有解,使得p2*x2+p1*x+q2*y2+q1*y最小的一组整数解是什么。为了方便,你只需要输出p2*x2+p1*x+q2*y2+q1*y的最小值。 输入第一行三个空格隔开的整数a,...
2018-10-08 10:15:22 162
原创 @Wannafly summer camp Day2 H:Princess Principal (栈模拟)
阿尔比恩王国(the Albion Kingdom)潜伏着一群代号“白鸽队(Team White Pigeon)”的间谍。在没有任务的时候,她们会进行各种各样的训练,比如快速判断一个文档有没有语法错误,这有助于她们鉴别写文档的人受教育程度。这次用于训练的是一个含有n个括号的文档。括号一共有mm种,每种括号都有左括号和右括号两种形式。我们定义用如下的方式定义一个合法的文档:1.一个空的字符串是一...
2018-10-08 10:04:15 215
原创 @NCPC2016 @ Exponial (欧拉降幂)
Illustration of exponial(3) (not to scale), Picture by C.M. de Talleyrand-Périgord via Wikimedia Commons Everybody loves big numbers (if you do not, you might want tostop reading at this point). The...
2018-10-07 11:45:29 245
原创 @ 2016GCPC Knapsack in a Globalized World (DP 完全背包)
Globalization stops at nothing, not even at the good old honest profession of a burglar. Nowadays it is not enough to break in somewhere, take everything you can carry and dart off. No! You have to be...
2018-10-06 21:40:22 277
原创 @2017-2018 ACM-ICPC, Asia Daejeon Regional Contest : Rectilinear Regions ( 细节处理题,模拟)
A rectilinear path connecting two points in the plane is a path consisting of only horizontal and vertical line segments. A rectilinear path is said to be monotone with respect to the x-axis (resp., y...
2018-10-06 21:00:22 299
原创 @2017-2018 ACM-ICPC, Asia Daejeon Regional Contest H; How Many to Be Happy? ( 最小割 dinic算法)
时间限制: 1 Sec 内存限制: 128 MB提交: 80 解决: 32[提交] [状态] [讨论版] [命题人:admin]题目描述Let G be a connected simple undirected graph where each edge has an associated weight. Let’s consider the popular MST (Mini...
2018-10-04 22:10:57 243
原创 @2017-2018 ACM-ICPC, Asia Daejeon Regional Contest @Gym 101667I Slot Machines (巧用KMP,next 求循环节)
题目描述Slot machines are popular game machines in casinos. The slot machine we are considering has six places where a figure appears. By combination of figures, one may earn or lose money. There ...
2018-10-04 20:17:13 374
原创 @2015ACM/ICPC亚洲区长春站-重现赛(感谢东北师大) @HDU5534 (Dp,完全背包)
题目描述In mathematics, and more specifically in graph theory, a tree is an undirected graph in which any two nodes are connected by exactly one path. In other words, any connected graph without simple ...
2018-10-04 11:11:00 226
原创 @HDU 5536 @2015ACM/ICPC亚洲区长春站-重现赛(感谢东北师大)(字典树Tire +贪心)
Chip FactoryTime Limit: 18000/9000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 5363 Accepted Submission(s): 2409 Problem DescriptionJohn is a manager...
2018-10-02 20:57:57 219
操作系统实验之请求分页系统页面淘汰算法
2018-05-24
计算机网络实验
2017-11-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人