自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

jxy859的专栏

Genius only means hardworking all one's life.

  • 博客(6)
  • 收藏
  • 关注

原创 高斯消元法

<br />历史  该方法以数学家高斯命名,但最早出现于中国古籍《九章算术》,成书于约公元前150年。 编辑本段例子<br />  高斯消元法可用来找出下列方程组的解或其解的限制: <br />  2x + y - z = 8 (L1) <br />  -3x - y + 2z = -11 (L2) <br />  -2x + y + 2z = -3 (L3) <br />  这个算法的原理是: <br />  首先,要将L1 以下的等式中的x 消除,然后再将L2 以下的等式中的y 消除。这样可使整毎方程组

2011-05-19 09:59:00 1022

原创 joj 2526: medic(dp 背包 )

<br />#include <iostream><br />#include <stdio.h><br />#include <memory.h><br />using namespace std;<br />const int  maxn=105;<br />int main

2011-05-05 23:30:00 488

原创 2529: Chorus (lis双向)

#include #include using namespace std;const int maxn=103;int main () //lis lcs 用OPT1存上升的,OPT2存下降的,则第I个人的最大不出列人数为OPT1[I]+OPT[I] -1{ int M,opt1[maxn],opt2[maxn]; while ( cin>> M) {  int c[maxn],i,j,ans=0;  for ( i=0 ; i   {    cin>>c[i];    opt1[i]=1;    opt

2011-05-05 22:40:00 601

原创 joj 1016: Degrees of separation(单词当点的最短路)

ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K1154477StandardFind out how many people separate one person from another.The number of people will be no more than 20.InputA positive integer representing the number of people in the following list.

2011-05-04 15:48:00 571

原创 [转]C++中的Vector的用法(

<br />C++中的vector使用范例<br />一、概述<br />vector是C++标准模板库中的部分内容,它是一个多功能的,能够操作多种数据结构和算法的模板类和函数库。vector是一个容器,它能够存放各种类型的对象,简单地说,vector是一个能够存放任意类型的动态数组,可以动态改变大小。<br />例如:<br />// c语言风格<br />int myHouse[100] ;<br />// 采用vector<br />vector<int> vecMyHouse(100);<br />

2011-05-01 22:59:00 508

原创 3505Yet Another Set of Numbers (数学模拟题)

Time Limit: 2 Seconds      Memory Limit: 65536 KB <br />You are given yet another set of numbers. The numbers in this set obey these rules: Each number will start with a non-zero digit. Each number contains at most N digits and only 0, 1, 2 and 3 are ava

2011-05-01 21:30:00 647

空空如也

空空如也

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

TA关注的人

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