自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【hdu 5738】Eureka

题解:什么是最好的集合?至少有两个点是共线的。也考虑到了这一点,但是数集合的时候,数得并不完美。代码如下:#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> #include <iostream> #include <algorithm> #include <string>

2016-07-22 11:42:31 588

转载 hdu 2072 单词数

不同的单词数····不同······  int main(){ string s; mapMap; while(getline(cin,s)&&s!="#") { int a=0; string str; Map.clear(); int len=s.length(); for(int

2015-08-03 21:24:03 373

原创 POJ 3518

D - Prime Gap Time Limit:5000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3518 Description The sequence of n − 1 consecutive composite n

2015-03-29 18:49:27 339

转载 POJ 3273

POJ3273-Monthly Expense 分类: POJ解题报告2011-07-31 16:38 2577人阅读 评论(1) 收藏 举报 优化delete工具 转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1301655498   大致题意: 给出农夫在n天中每天的花费,要求把

2015-03-29 18:48:51 275

转载 poj 1905

POJ1905-Expanding Rods 分类: POJ解题报告2011-07-31 16:43 1734人阅读 评论(1) 收藏 举报 扩展inputc   转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1301845324   大致题意: 一根两端固定在两面墙上的杆 受热弯曲后变弯

2015-03-29 18:46:36 312

转载 POJ3122-Pie

 转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1301969415 大致题意: 就是公平地分披萨pie 我生日,买了n个pie,找来f个朋友,那么总人数共f+1人 每个pie都是高为1的圆柱体,输入这n个pie的每一个尺寸(半径),如果要公平地把pie分给每一个人(就是所有人得到的pie尺寸一致,但是形状可以不同),而

2015-03-28 21:59:03 317

转载 poj 1106

// 5为空格,排序输出#include #include #include #include #include using namespace std; string str; long long num[1005]; int main() { int i = 0; while (cin >> str) { memset(num, 0, size

2015-03-21 00:38:33 319

转载 poj3979 分数加减法

分数加减法 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10041   Accepted: 3241 Description 编写一个C程序,实现两个分数的加减法 Input 输入包含多行数据  每行数据是一个字符串,格式是"a/boc/d"。

2015-03-21 00:03:54 499

转载 poj 1995 快速幂

#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int f(int a,int n,int m) {

2015-03-20 23:40:32 265

转载 快速幂

下面是 m^n  % k 的快速幂: // m^n % k int quickpow(int m,int n,int k) {     int b = 1;     while (n > 0)     {           if (n & 1)              b = (b*m)%k;           n = n >> 1 ;           m = (

2015-03-20 23:31:02 266

空空如也

空空如也

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

TA关注的人

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