自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 UVa1225

#include<stdio.h>int main(){    int n,m;    scanf("%d",&n);    while(n--){      int a[10]={0};      scanf("%d",&m);      int temp;      for(int i=1;i<=m;i++){        temp=i;        wh...

2018-05-25 15:47:18 503

原创 UVa1586 Molar Mass

#include<stdio.h>#include<string.h>#include<map>#include<ctype.h>#define maxn 105using namespace std;int num(const char* s,int pos,int len){    int num=0;    int q=0;    int te...

2018-05-25 15:04:33 104

转载 匈牙利算法

核心代码:bool dfs(int x){ for(int y=1;y<=V2;y++) if(city[x][y]&&!vis[y]) {  vis[y]=true;  if(link[y]==0||dfs(link[y]))  { link[y]=x; return true;  } } return false;}void search()...

2018-04-07 17:49:30 109

原创 poj3259

#include <iostream>#define inf 9999999999using namespace std;int f;//农场的数量int n,m,w;//每个农场有n块地,m条路,w个虫洞int all;struct field{  int a;//起点  int b;//终点  int c;//权重}fie[5200];bool flag;int dis[100...

2018-03-27 15:08:06 123

原创 poj1573 time limited out

#include <iostream>using namespace std;const int MAX_LEN=12;int dir[4][2]={{1,0},{0,1},{-1,0},{0,-1}};bool vis[MAX_LEN][MAX_LEN];int cou[MAX_LEN][MAX_LEN];int s[MAX_LEN][MAX_LEN];int main(){    ...

2018-03-25 19:32:47 100

原创 poj3006

#include <iostream>#include <math.h>using namespace std;bool Primes[1000000];void isPrime(){    memset(Primes,true,sizeof(Primes));    Primes[1]=false;    for(int m=2;m<1000000;m++)    ...

2018-03-06 22:25:53 149

原创 poj2262

#include <iostream>#include <math.h>using namespace std;bool isPrime(int num){    if(num==2)      return true;    if(num%2==0)      return false;    for(int i=3;i<(int)sqrt((double)num)...

2018-03-05 20:22:45 182

原创 poj1083

#include<stdlib.h>#include<stdio.h>#include<string.h>int main(){    int corridor[200];    int case_num=0,tables=0,x,y,temp,begin,end;        scanf("%d",&case_num);    for(int i...

2018-03-05 14:17:15 162

原创 POJ2739

先附上自己写的代码#include <iostream>#include <math.h>using namespace std;const static int MAX_LEN=10001;bool boolPrimes[MAX_LEN];void findPrime();int main(){    int Primes[1229],j=0;    int sum=0,...

2018-03-04 23:11:27 129

转载 POJ2159 Ancient Cipher

#include <iostream>#include<algorithm>using namespace std;const static int MAX_LEN =101;const static int FRE_LEN=26;void CountFrequence(char *in_data,int *out_data);bool CompareFrequence(i...

2018-03-04 22:45:04 112

转载 POJ3299 Humidex

从今天开始刷POJ的题为考研机试做准备。#include <iostream>#include <string>#include<math.h>#include<iomanip>using namespace std;int main(){    char alpha;    double t=200,d=200,h=200;    while(1)...

2018-03-03 23:07:12 99

空空如也

空空如也

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

TA关注的人

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