自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (1)
  • 收藏
  • 关注

原创 HDU 1003 Max Sum

//简单DP,状态转移方程:dp[i] = max( a[i], a[i]+dp[i-1] )#include #include #include using namespace std;int a[100005];int main(){ int t, n, cnt=0; cin >> t; while (t--) { cin >>

2013-06-17 19:39:58 546

原创 HDU 1010 Tempter of the Bone

#include #include #include using namespace std;char map[9][9];int n, m, t, di, dj;int dir[4][2] = {{0,-1}, {0, 1}, {1, 0}, {-1, 0}};//四个方向bool escape;void dfs(int si, int sj, int cnt){

2013-06-16 20:17:32 551

原创 HDU 2072 单词数

#include #include #include #include //使用stringstream需要用到的头文件using namespace std;string str;set article; //set中不会有重复的元素int main(){ while (getline(cin, str) && str != "#") //getline(ci

2013-06-16 15:39:19 708

原创 HDU 2080 夹角有多大

//好吧,水了。。。#include #include #define PI 3.1415926using namespace std;//返回值是弧度,需要转换成角度double angle(double x1, double y1, double x2, double y2){ double dtheta,theta1,theta2; theta1 = atan

2013-06-16 14:34:25 611

原创 HDU 1016 Prime Ring Problem

#include #include #include using namespace std; int n, visited[20], res[20]; int isPrime(int x) { int i; if (x <= 1) return 0; for (i=2; i<=sqrt(x); i++) if

2013-06-15 12:50:27 452

全国省级行政区代码 MySQL 语句

中国省级行政区代码,MySQL语句,纯手打。。。

2013-06-25

空空如也

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

TA关注的人

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