- 博客(34)
- 资源 (14)
- 收藏
- 关注
原创 HDU 4725 The Shortest Path in Nya Graph(最短路 SPFA 建图)
HDU 4725 The Shortest Path in Nya Graph(最短路 SPFA 建图)
2014-12-12 22:06:21 2762 2
原创 Naive and Silly Muggles(计算几何 判断点是否在三点形成的最小圆内)
Naive and Silly Muggles(计算几何 判断点是否在三点形成的最小圆内)
2014-12-12 19:56:32 1537
原创 HDU 4716 A Computer Graphics Problem(模拟啊 )
HDU 4716 A Computer Graphics Problem(模拟啊 )
2014-12-11 22:01:32 1092
原创 CSU 1272 1272: Karma(几何 判断点是否在三角形内)
CSU 1272 1272: Karma(计算几何 判断点是否在三角形内)
2014-12-10 19:54:48 968
原创 CSU 1271: Brackets Sequence(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1271DescriptionLet us define a regular brackets sequence in the following way:1. Empty sequence is a regular sequence.2. If S is a regular sequenc...
2014-12-10 19:46:01 984
原创 CSU 1269: Morse Code Wristwatch(模拟啊 )
CSU 1269: Morse Code Wristwatch(模拟啊 )
2014-12-10 19:00:08 1201
原创 CSU 1268 1268: Pingpang Balls(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1268Description在双鱼的乒乓球上一般都会标有三星,二星,或者一星的字样,星级越高就表示球的质量越好。星级的评定和球的重量,直径,硬度等很多因素有关,不过在这里,我们只考虑球的重量对星级评定产生的影响。乒乓球有一个标准的重量S,如果球的重量和...
2014-12-10 18:53:48 1012
原创 CSU 1267: Operation
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1267Description现在有26个变量,分别用a~z表示,它们的初值均为0。接下来一共有N个操作,这些操作一共分为如下6类:(1) mov a,b :将变量b的值赋给a,相当于a = b,其中a、b泛指两个变量。(2) mov a,10 :将10...
2014-12-10 18:52:04 991
原创 CSU 1266: Divisible by 11 (数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1266Description对于一个整数x,记x的自右向左的各位分别为第1位,第2位,……如果x奇数位上的数字之和减去偶数位上的数字之和所得的结果能被11整除,那么x就能被11整除。Input输入数据的第一行包含一个整数T (1 <= T &l...
2014-12-10 18:43:26 1050
原创 CSU 1265: Dice (数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1265DescriptionAn example of a traditional dice is a rounded cube, with each of its six faces showing a different number of dots from 1 to ...
2014-12-10 18:40:30 993
转载 getline()函数详解
转自:http://www.cnblogs.com/overcode/p/4126799.html这篇文章我最早是发在新浪博客上的,当时随便写的居然有8000多点击,果断转过来给有需要的同学。学习C++的同学可能都会遇到一个getline()函数,譬如在C++premer中,标准string类型第二小节就是“用getline读取整行文本”。书上给的程序如下:int ma
2014-12-08 20:54:09 1914
原创 POJ 3422 Kaka's Matrix Travels(最大费用最大流 + 拆点)
POJ 3422 Kaka's Matrix Travels(最大费用最大流 + 拆点)
2014-12-08 19:40:43 1430
原创 POJ 2195 & HDU 1533 Going Home(最小费用最大流)
POJ 2195 & HDU 1533 Going Home(最小费用最大流)
2014-12-07 22:52:04 2246
原创 CSU 1410: 整数转换(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1410Description我们可以通过对一个整数A进行加1操作或者乘2操作使其转换为另一个整数B。给出两个整数X,Y,计算至少需要多少步才能将X转换为Y。.Input输入的第一行包含一个整数T(1≤T≤500),表示一共有T组测试数据。每组...
2014-12-07 20:14:38 1275
原创 CSU 1409: 集合的并(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1409Description给出两个由整数组成的集合A,B,计算A∪B中包含多少个整数。Input输入的第一行包含一个整数T(T>0),表示一共有T组测试数据。对于每组测试数据,第一行包含一个整数n(1≤n≤105)。第二行包含2...
2014-12-07 19:24:45 1186
原创 CSU 1408: 种植树苗(贪心)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1408Description如下图所示,我们在门前一条笔直的道路上栽了N棵树苗。但是,最近我们发现,如果两棵树苗的距离小于一个常数D,这两棵树苗的发育都会受到阻碍。因此我们决定移除一些树苗,从而使任意两棵树苗的距离都不小于D,并且我们希望留下的树苗越多越好。...
2014-12-07 18:37:49 1151
原创 CSU 1407: 最短距离(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1407Description两个点A, B均在做匀速直线运动。给出t = 0时刻A, B的坐标,以及A, B的速度,计算t ≥ 0时两个点的距离的最小值。Input输入的第一行包含一个整数T (1 ≤ T ≤ 200),表示一共有T组测试数据。对于每组测试数据,第一行包含4个整数xA, y...
2014-12-07 18:31:32 1183
原创 CSU 1507: 超大型LED显示屏(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1507DescriptionInput输入包含不超过100组数据。每组数据第一行为"START hh:mm:ss",表示比赛开始时刻为hh:mm:ss。最后一行为"END hh:mm:ss",即比赛结束时刻。二者之间至少会有一个SCORE信息,格式为"SC...
2014-12-06 19:23:27 1272
原创 CSU 1505: 酷酷的单词(数学)
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1505Description输入一些仅由小写字母组成的单词。你的任务是统计有多少个单词是“酷”的,即每种字母出现的次数都不同。比如ada是酷的,因为a出现2次,d出现1次,而1和2不同。再比如,banana也是酷的,因为a出现3次,n出现2次,b出现1次。但是,bbaccc...
2014-12-06 19:02:25 1743
原创 CSU 1506: Double Shortest Paths(最小费用最大流)
CSU 1506: Double Shortest Paths(最小费用最大流)
2014-12-06 18:46:49 1456
原创 FZU Problem 2111 Min Number (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2111Problem DescriptionNow you are given one non-negative integer n in 10-base notation, it will only contain digits ('0'-'9'). You are allowed to ...
2014-12-05 19:49:16 1091
原创 FZU Problem 2110 Star (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2110Problem DescriptionOverpower often go to the playground with classmates. They play and chat on the playground. One day, there are a lot of star...
2014-12-05 19:08:29 1028
原创 FZU Problem 2107 Hua Rong Dao (打表 dfs)
FZU Problem 2107 Hua Rong Dao (打表 dfs)
2014-12-05 18:54:48 1211
原创 FZU Problem 2104 Floor problem (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2104Problem DescriptionIn this problem, we have f(n,x)=Floor[n/x]. Here Floor[x] is the biggest integer such that no larger than x. For example, Floor[1.1]=F...
2014-12-04 22:18:00 1042
原创 FZU Problem 2102 Solve equation (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2102Problem DescriptionYou are given two positive integers A and B in Base C. For the equation:A=k*B+dWe know there always existing many ...
2014-12-04 22:13:28 930
原创 FZU Problem 2151 OOXX Game (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2151Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, there are N*M ...
2014-12-03 19:43:13 9032
原创 FZU Problem 2150 Fire Game (双起点BFS )
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2150Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each...
2014-12-03 19:21:56 1338
原创 FZU Problem 2147 A-B Game (数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2147Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game by two integers A and B. First Fat brother write an intege...
2014-12-03 18:39:50 1221
原创 FZU Problem 2146 Easy Game ( 数学)
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2146Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game on a string S. Now they would like to count the length of this string...
2014-12-03 18:26:16 1108
The Java EE 5 Tutorial 英文原版
2016-04-03
VC VS番茄助手Visual Assist官方下载+破解版
2014-07-26
Visual Assist X番茄助手
2014-07-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人