自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

G++

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

原创 poj 1005 I Think I Need a Houseboat(简单计算题)

题目链接:http://poj.org/problem?id=1005题意:密西西比河岸某处陆地因为河水侵蚀,每年陆地面积都在减少,每年减少50平方英里,减少的陆地面积呈半圆形,即该半圆形面积以每年50平方英里的速度增长。在第一年初时,该半圆形面积为0,半圆形的圆心坐标为(0,0),现在的任务是给定一个坐标,求出该坐标在哪一年年底会被河水侵蚀。假设给定的坐标到圆心的距离不会等于半圆的半径。

2013-02-02 19:28:48 297

原创 poj 1004 Financial Management(基础题)

题目链接:http://poj.org/problem?id=1004题意:给出12个数,求平均数题解:……#include int main() { float ans = 0 , a; for(int i=0;i<12;i++) { scanf("%f",&a); ans += a; } printf("$%

2013-02-02 19:15:13 222

原创 poj 1003 Hangover(简单计算题)

题目链接:http://poj.org/problem?id=1003题意:给出这样一张图,问最少需要几张卡使得卡能稳定的放在桌子上且其超出右边界的长度超过给定值。 题解:找规律。可以发现:第i块木板超出第(i+1)块木板的长度是1/(i+1),所以找到最小的k使得1/2+1/3+……+1/(k+1)>=给定值即可。#include int main() { floa

2013-02-02 19:07:53 325

原创 poj 1002 487-3279(基础模拟题)

题目链接:http://poj.org/problem?id=1002题意:每个英文字母都有其对应的数字,对于给定的带有英文字母或数字的电话号码,按其出现的次序输出出现次数大于1的所有数字电话号码和其出现的次数。题解:使用优先队列#include#include#include#include#includeusing namespace std;const int max

2013-02-02 18:54:45 212

原创 poj 1001 Exponentiation(模版题)

题目链接:http://poj.org/problem?id=1001题意:compute the exact value of Rn where R is a real number ( 0.0 题解:高精度实数乘法模版。#include #include #include #include using namespace std;const int maxn = 1010

2013-02-02 17:58:15 219

原创 poj 1000 A+B Problem(基础题)

题目链接:http://poj.org/problem?id=1000题意:Calculate a+b题解:计算出a+b,注意格式,输入的时候要些while(~scanf("%d%d",&a,&b)) {} 或 while(scanf("%d%d",&a,&b) != EOF)使得能接受一个文件的输入#include int main() { int a , b; w

2013-01-25 13:47:20 312

空空如也

空空如也

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

TA关注的人

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