- 博客(34)
- 收藏
- 关注
转载 Jquery 切换
1、jQuery slideToggle() 表示简单的 slide panel 效果。 ? html> head> script type="text/javascript" src="jquery-1.7.1.min.js">script> script type="text/javascript"> $(document).ready(f
2016-10-27 13:14:36
419
原创 ASP.NET MVC中在Action获取提交的表单数据方法
/// /// 处理表单提交数据,方法1:使用传统的Request请求取值 /// /// public ActionResult HandleForm() { ViewData["name"] = Request["name"]; Vi
2016-10-27 12:19:10
2245
转载 Floyd
#include #include #include using namespace std; #define INFINITY 65535 #define MAX_VERTEX_NUM 10 typedef struct MGraph{ string vexs[10];//顶点信息 int arcs[10][10];//邻接矩阵 int vexnum, a
2015-07-28 11:36:12
356
原创 hdu1575 Tr A
Tr A Problem Description A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。 每组数据的第一行有n(2 Output 对应每组数据,输出Tr(A^k)%9973。 Sample
2015-04-10 09:37:26
361
原创 hdu 1754 I Hate It
////HDU 1754 I Hate It (线段树模板题)更新一点的值 询问区间最大值 #include #include #include #define MAXX 5001000 using namespace std; int A[MAXX] ; struct node { int l ; int r ; int value ; } nod
2015-01-16 11:14:27
317
原创 nyist 613 免费馅饼
免费馅饼 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不 掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,
2014-11-01 13:10:51
394
原创 nyist 860 又见01背包
又见01背包 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 有n个重量和价值分别为wi 和 vi 的 物品,从这些物品中选择总重量不超过 W 的物品,求所有挑选方案中物品价值总和的最大值。 1 1 1 1 输入多组测试数据。 每组测试数据第一行输入,n 和 W ,接下来有n行,每行输入两个数,代表
2014-10-29 21:01:54
375
原创 nyist 524 A-B Problem
描述 A+B问题早已经被大家所熟知了,是不是很无聊呢?现在大家来做一下A-B吧。 现在有两个实数A和B,聪明的你,能不能判断出A-B的值是否等于0呢? 输入有多组测试数据。每组数据包括两行,分别代表A和B。 它们的位数小于100,且每个数字前中可能包含+,- 号。 每个数字前面和后面都可能有多余的0。 每组测试数据后有一空行。 输出对于每组数据,输出一行。
2014-10-18 09:59:21
402
原创 求高精度幂
// 高精度乘法 #include #include #include #include #include #include using namespace std; string add(string a,string b) { string s; int i=0,j=0,l=0; int m,ans=0,k; while(a
2014-10-17 17:32:30
399
原创 浮点数的大数加法模板
// 浮点数大数加法 #include #include #include #include using namespace std; string b,b2,e,e2,b1,e1; string add(string a,string b) // 大数的加法 { reverse(a.begin(),a.end()); reverse(b.begin(),b.end())
2014-10-16 19:24:34
538
原创 大数乘法模板
#include #include #include #include #include #include using namespace std; string s1,s2; string add(string a,string b) { string s; int i=0,j=0,l=0; int m,ans=0,k; while(a[i]&&b[j
2014-10-11 16:06:14
314
原创 nyist 小M的因子和 (A^B的因子和)
小M的因子和 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描述 小M在上课时有些得意忘形,老师想出道题目难住他。小M听说是求因子和,还是非常得意,但是看完题目是求A的B次方的因子和,有些手足无措了,你能解决这个问题吗? 输入有多组测试样例 每行两个数 A ,B ,(1≤A,B≤10^9) 输出输出A的B次方的因子和,并对9901取余
2014-10-09 21:50:27
548
原创 dijkstra 最短路
#include #include #include #define INF 9999999 using namespace std; int MAP[110][110],dis[110],flag[110]; int MIN,n,i,j,m; void init() { // cout int a,b,c; for(i=1; i
2014-09-28 20:44:15
341
原创 nyist 12 喷水装置(二)
喷水装置(二) 时间限制:3000 ms | 内存限制:65535 KB 难度:4 描述 有一块草坪,横向长w,纵向长为h,在它的橫向中心线上不同位置处装有n(n<=10000)个点状的喷水装置,每个喷水装置i喷水的效果是让以它为中心半径为Ri的圆都被润湿。请在给出的喷水装置中选择尽量少的喷水装置,把整个草坪全部润湿。 输入第一行输入一个正整数N表示共有n次测试数据
2014-09-14 14:13:06
467
原创 nyist 891 找点
找点 时间限制:2000 ms | 内存限制:65535 KB 难度:2 描述 上数学课时,老师给了LYH一些闭区间,让他取尽量少的点,使得每个闭区间内至少有一个点。但是这几天LYH太忙了,你们帮帮他吗? 输入多组测试数据。 每组数据先输入一个N,表示有N个闭区间(N≤100)。 接下来N行,每行输入两个数a,b(0≤a≤b≤100),表示区间的两个端点。输
2014-09-13 18:46:06
546
原创 nyist 14 会场安排问题
会场安排问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 描述 学校的小礼堂每天都会有许多活动,有时间这些活动的计划时间会发生冲突,需要选择出一些活动进行举办。小刘的工作就是安排学校小礼堂的活动,每个时间最多安排一个活动。现在小刘有一些活动计划的时间表,他想尽可能的安排更多的活动,请问他该如何安排。 输入第一行是一个整型数m(m 每组测试数
2014-09-13 18:18:56
290
原创 hdu 2602 Bone Collector
A - Bone Collector Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description Many years ago , in Teddy’s hometown there was a man w
2014-07-30 08:08:45
345
原创 uva 270 Lining Up
C - Lining Up Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Lining Up ``How am I ever going to sol
2014-07-26 17:21:45
480
原创 uva 10132 - File Fragmentation
Question 2: File Fragmentation The Problem Your friend, a biochemistry major, tripped while carrying a tray of computer files through the lab. All of the files fell to the ground and broke. Your
2014-07-26 17:08:24
327
原创 uva 10905 Children's Game
A - Children's Game Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description 4thIIUCInter-University Programming Contest
2014-07-22 15:30:39
352
原创 uva 10183 How many Fibs?
Problem B: How many Fibs? Recall the definition of the Fibonacci numbers: f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n>=3) Given two numbers a and b, calculate how many Fibonacci numbers ar
2014-07-22 15:26:47
412
原创 poj 2251 Dungeon Master
Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16305 Accepted: 6323 Description You are trapped in a 3D dungeon and need to find the quic
2014-07-21 15:04:49
328
原创 hdu 1058 Humble Numbers
H - Humble Numbers Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Many of you heard about
2014-07-21 08:34:28
330
原创 Bicoloring
G - Bicoloring Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Bicoloring In 1976 the ``Four Color Map
2014-07-17 19:31:19
556
原创 Ordering Tasks
C - Ordering Tasks Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Problem F Ordering Tasks Input: standard input
2014-07-17 16:00:26
508
原创 Train Problem I
A - Train Problem I Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description As the new term comes, the Ignatius Train Station is
2014-07-17 15:55:38
331
原创 Knight Moves
D - Knight Moves Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description A friend of you is doing research on the Traveling Knight P
2014-07-17 15:45:07
340
原创 Oil Deposits
Oil Deposits The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a
2014-07-17 15:37:02
332
原创 Where is the Marble?
Where is the Marble? Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles o
2014-07-17 15:30:20
355
原创 大数阶乘
#include #include #include const int M = 40000; using namespace std; int f[M]; int main() { int n,i,j; while(scanf("%d",&n)!=EOF) { memset(f,0,sizeof(f)); f[0]=1; f
2014-07-17 15:14:47
310
原创 中序后序重建二叉树
B - Tree Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Tree You are to determine the value of the
2014-07-17 15:10:24
352
原创 大数减法
#include #include #include #include #include using namespace std; string jian(string a,string b) { string s; int i=0,ans=0,n; char m; while(a[i]&&b[i]) { a[i]=a[i]-(ans+'0
2014-07-17 14:56:52
311
原创 大数加法
#include #include #include #include using namespace std; string s1,s2; string add(string a,string b) { string s; int i=0,j=0,l=0; int m,ans=0,k; while(a[i]&&b[j]) { m=a[i]-
2014-07-17 14:54:55
328
原创 Birthday Cake
Problem G. Birthday Cake Background Lucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a Descartes coordinate
2014-07-17 14:51:16
472
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅