自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

转载 Jquery 切换

1、jQuery slideToggle() 表示简单的 slide panel 效果。?html>head>scripttype="text/javascript" src="jquery-1.7.1.min.js">script>scripttype="text/javascript"> $(document).ready(f

2016-10-27 13:14:36 353

原创 ASP.NET MVC中在Action获取提交的表单数据方法

///           /// 处理表单提交数据,方法1:使用传统的Request请求取值          ///           ///           public ActionResult HandleForm()          {              ViewData["name"] = Request["name"];              Vi

2016-10-27 12:19:10 2188

转载 Floyd

#include #include #include using namespace std;#define INFINITY 65535#define MAX_VERTEX_NUM 10typedef struct MGraph{string vexs[10];//顶点信息int arcs[10][10];//邻接矩阵int vexnum, a

2015-07-28 11:36:12 305

原创 hdu1575 Tr A

Tr AProblem DescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2  Output对应每组数据,输出Tr(A^k)%9973。 Sample

2015-04-10 09:37:26 315

原创 hdu 1754 I Hate It

////HDU 1754 I Hate It (线段树模板题)更新一点的值 询问区间最大值#include#include#include#define MAXX 5001000using namespace std;int A[MAXX] ;struct node{ int l ; int r ; int value ;} nod

2015-01-16 11:14:27 278

原创 nyist 613 免费馅饼

免费馅饼时间限制:1000 ms  |  内存限制:65535 KB难度:3描述都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不 掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,

2014-11-01 13:10:51 343

原创 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 326

原创 nyist 524 A-B Problem

描述A+B问题早已经被大家所熟知了,是不是很无聊呢?现在大家来做一下A-B吧。现在有两个实数A和B,聪明的你,能不能判断出A-B的值是否等于0呢?输入有多组测试数据。每组数据包括两行,分别代表A和B。它们的位数小于100,且每个数字前中可能包含+,- 号。每个数字前面和后面都可能有多余的0。每组测试数据后有一空行。输出对于每组数据,输出一行。

2014-10-18 09:59:21 342

原创 求高精度幂

// 高精度乘法#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 358

原创 浮点数的大数加法模板

// 浮点数大数加法#include#include#include#includeusing 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 478

原创 大数乘法模板

#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 270

原创 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 487

原创 dijkstra 最短路

#include #include#include#define INF 9999999using 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 298

原创 nyist 12 喷水装置(二)

喷水装置(二)时间限制:3000 ms  |  内存限制:65535 KB难度:4描述 有一块草坪,横向长w,纵向长为h,在它的橫向中心线上不同位置处装有n(n<=10000)个点状的喷水装置,每个喷水装置i喷水的效果是让以它为中心半径为Ri的圆都被润湿。请在给出的喷水装置中选择尽量少的喷水装置,把整个草坪全部润湿。输入第一行输入一个正整数N表示共有n次测试数据

2014-09-14 14:13:06 420

原创 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 497

原创 nyist 14 会场安排问题

会场安排问题时间限制:3000 ms  |  内存限制:65535 KB难度:4描述 学校的小礼堂每天都会有许多活动,有时间这些活动的计划时间会发生冲突,需要选择出一些活动进行举办。小刘的工作就是安排学校小礼堂的活动,每个时间最多安排一个活动。现在小刘有一些活动计划的时间表,他想尽可能的安排更多的活动,请问他该如何安排。输入第一行是一个整型数m(m每组测试数

2014-09-13 18:18:56 251

原创 hdu 2602 Bone Collector

A - Bone CollectorTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit StatusDescriptionMany years ago , in Teddy’s hometown there was a man w

2014-07-30 08:08:45 294

原创 uva 270 Lining Up

C - Lining UpTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription Lining Up ``How am I ever going to sol

2014-07-26 17:21:45 434

原创 uva 10132 - File Fragmentation

Question 2: File FragmentationThe ProblemYour 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 292

原创 uva 10905 Children's Game

A - Children's GameTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription4thIIUCInter-University Programming Contest

2014-07-22 15:30:39 307

原创 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 354

原创 poj 2251 Dungeon Master

Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16305 Accepted: 6323DescriptionYou are trapped in a 3D dungeon and need to find the quic

2014-07-21 15:04:49 290

原创 hdu 1058 Humble Numbers

H - Humble NumbersTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription     Many of you heard about

2014-07-21 08:34:28 289

原创 Bicoloring

G - BicoloringTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription  Bicoloring In 1976 the ``Four Color Map

2014-07-17 19:31:19 505

原创 Ordering Tasks

C - Ordering TasksTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescriptionProblem FOrdering TasksInput: standard input

2014-07-17 16:00:26 469

原创 Train Problem I

A - Train Problem ITime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit StatusDescriptionAs the new term comes, the Ignatius Train Station is

2014-07-17 15:55:38 291

原创 Knight Moves

D - Knight MovesTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription A friend of you is doing research on the Traveling Knight P

2014-07-17 15:45:07 299

原创 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 291

原创 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 311

原创 大数阶乘

#include#include#includeconst 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 280

原创 中序后序重建二叉树

B - TreeTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription  Tree You are to determine the value of the

2014-07-17 15:10:24 315

原创 大数减法

#include#include#include#include#includeusing 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 282

原创 大数加法

#include#include#include#includeusing 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 291

原创 Birthday Cake

 Problem G. Birthday Cake BackgroundLucy 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 425

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除