摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1166区间更新,区间求和// File Name: hdu1166.cpp// Author: bo_jwolf// Created Time: 2013年08月16日 星期五 11时27分03秒#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing n
阅读全文
posted @ 2013-08-16 19:10
风言枫语
阅读(150)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1754单点更新,区间求最值// File Name: hdu1754.cpp// Author: bo_jwolf// Created Time: 2013年08月16日 星期五 11点27分03秒#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing
阅读全文
posted @ 2013-08-16 19:08
风言枫语
阅读(119)
推荐(0)
摘要:
$myField_name = "my_new_field_name"; if(!field_info_field($myField_name)) // check if the field already exists. { $field = array( 'field_name' => $myField_name, 'type' => 'image', ); field_create_field($field); $field_instance = ar...
阅读全文
posted @ 2013-08-16 19:05
风言枫语
阅读(303)
推荐(0)
摘要:
Problem D: CandyAs a teacher of a kindergarten, you have many things to do during a day, one of which is to allot candies to all children in your class. Today you have N candies for the coming M children. Each child likes different candy, and as a teacher who know them well, you can describe how the
阅读全文
posted @ 2013-08-16 19:03
风言枫语
阅读(265)
推荐(0)
摘要:
开始画面游戏画面代码 plugin/title.jsfunction Title() { }Title.prototype = { Core: { }, Event: { }}function Window_Title(rpg, parent) { this.parent = Window; var h = 50; if (rpg.slotExist(1)) { h = 115; } this.parent(rpg, parent, 200, h);}var p = Window_Title.prototype = new Window();p.onLoad...
阅读全文
posted @ 2013-08-16 19:01
风言枫语
阅读(266)
推荐(0)
摘要:
小米相关的产品一向都很很受用户的欢迎,一个就是实惠,另一个就是配置还不错。近期小米推出的红米手机可谓是先声夺人,关注度异常火爆。今天刚抢的红米快递寄到了,来测试下红米手机的拍照表现,800万像素怎么样?下面就开始我们的小米红米手机拍照评测。红米手机号称采用了三星800万像素背照式摄像头,成像素质毋庸怀疑。拍摄功能上,保留了全景、HDR、声控快门、滤镜等功能,日常使用是没有问题的。从上面的取景图可以看出,红米手机没有像小米2A一样支持全屏取景,操作面积更直接。从以上功能界面对比发现,红米手机没有夜景防抖功能,夜间拍摄没有小米2A好用。先来看一组红米手机与小米2A在同样环境下的实拍对比,不难发现两
阅读全文
posted @ 2013-08-16 18:59
风言枫语
阅读(380)
推荐(0)
摘要:
题意:给n个圆和m个三角形,且保证互不相交,用一个篱笆把他们围起来,求最短的周长是多少。做法:--水过。。。把一个圆均匀的切割成500个点,然后求凸包。注意:求完凸包,在求周长的时候记得要把圆的那部分特殊求。sin(x) x=PI*(i/j);//度数表示的时候用PI;#include#include#include#include#define PI 3.1415926using namespace std;struct list{ double x; double y; int r; int pos;}point[500001],tu[500001],pp;int...
阅读全文
posted @ 2013-08-16 18:56
风言枫语
阅读(140)
推荐(0)
摘要:
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6762 Accepted Submission(s): 4284 Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black ...
阅读全文
posted @ 2013-08-16 18:54
风言枫语
阅读(275)
推荐(0)
摘要:
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8274 Accepted Submission(s): 4860 Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large...
阅读全文
posted @ 2013-08-16 18:52
风言枫语
阅读(196)
推荐(0)
摘要:
此工具用python2.7编写,用于发送QQ邮件,可以多个邮件一起发送 例如:邮件1;邮件2;也可以随机发送,目标是9位数的QQ邮箱缺点:发送到163邮箱好像会有乱码,不过发送的QQ邮箱可发附件,可发图片,内容需要用html编辑,可参考程序默认样本#-*- coding:utf-8 -*-import sys reload(sys) sys.setdefaultencoding('utf-8') import wx import time from email.mime.text import MIMEText from email.mime.multipart import
阅读全文
posted @ 2013-08-16 18:50
风言枫语
阅读(274)
推荐(0)