我来我网
https://5come5.cn
您尚未
登录
注册
|
菠菜
|
软件站
|
音乐站
|
邮箱1
|
邮箱2
|
风格选择
|
更多 »
vista
鍙よ壊涔﹂
card
wind
绮夌孩濂抽儙
帮助
统计与排行
无图版
我来我网·5come5 Forum
»
电脑技术
»
程序员之家
»
菜鸟求助:一peking acm上的小题目,望达人帮忙
交 易
投 票
本页主题:
菜鸟求助:一peking acm上的小题目,望达人帮忙
显示签名
|
打印
|
加为IE收藏
|
收藏主题
|
上一主题
|
下一主题
lovebaby
∷
性别:
保密
∷
状态:
∷
等级:
品行端正
∷
发贴:
177
∷
威望:
0
∷
浮云:
1199
∷
在线等级:
∷
注册时间: 2006-02-18
∷
最后登陆: 2008-03-26
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
snow
/sn
ə
u/
n. 雪,下;vi. 下雪,发雪一般地落下
]
菜鸟求助:一peking acm上的小题目,望达人帮忙
Description
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.
This problem requires that you write a program to compute the exact value of Rn where R is a real number ( 0.0 < R < 99.999 ) and n is an integer such that 0 < n <= 25.
Input
The input will consist of a set of pairs of values for R and n. The R value will occupy columns 1 through 6, and the n value will be in columns 8 and 9.
Output
The output will consist of one line for each line of input giving the exact value of R^n. Leading zeros should be suppressed in the output. Insignificant trailing zeros must not be printed. Don't print the decimal point if the result is an integer.
Sample Input
95.123 12
0.4321 20
5.1234 15
6.7592 9
98.999 10
1.0100 12
Sample Output
548815620517731830194541.899025343415715973535967221869852721
.00000005148554641076956121994511276767154838481760200726351203835429763013462401
43992025569.928573701266488041146654993318703707511666295476720493953024
29448126.764121021618164430206909037173276672
90429072743629540498.107596019456651774561044010001
1.126825030131969720661201
Hint
If you don't know how to determine wheather encounted the end of input:
s is a string and n is an integer
#include <iostream.h>
main()
{
double r,t;
int n;
cin>>r>>n;
t=1;
while(n>0)
{t=t*r;
n--;
}
cout.precision(1000);
cout<<t<<"\n";
return 0;
兰色的是我写的,有点数据显示问题,望达人帮忙啊
[ 此贴被lovebaby在2007-03-24 18:39重新编辑 ]
Posted: 2007-03-24 17:46 |
[楼 主]
lovebaby
∷
性别:
保密
∷
状态:
∷
等级:
品行端正
∷
发贴:
177
∷
威望:
0
∷
浮云:
1199
∷
在线等级:
∷
注册时间: 2006-02-18
∷
最后登陆: 2008-03-26
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
educate
/'edju(:)keit/
vt. 教育,培养,训练
]
kangtalc太感谢楼主了
看来小第还有很多很多要学习的饿哈
Posted: 2007-03-27 18:46 |
[1 楼]
快速跳至
|- 站务管理
|- 惩罚,奖励公布区
|- 会员咨询意见区
|- 申请区
|- 已批准申请区
|- 威望和荣誉会员推荐区
|- 5come5名人堂·Hall of Fame
>> 休闲娱乐
|- 灌水乐园 大杂烩
|- 精水区
|- 幽默天地
|- 开怀大笑(精华区)
|- 灵异空间
|- 运动新时空·菠菜交流
|- 动之风.漫之舞
|- 新货上架
|- 古董挖挖
|- 唯美贴图
|- 创意&美化&设计
|- 5COME5头像及签名档图片引用专区
|- 艺术摄影
|- 音乐咖啡屋
|- 音道乐经
>> 热点讨论
|- 工作交流
|- 求职信息
|- 就业精华区
|- 同城联谊
|- 留学专版
|- 情感物语
|- 情感物语精华区
|- 带走一片银杏叶
|- 精华区
|- 新闻直通车
|- 众志成城,抗震救灾
|- 衣食住行
|- 跳蚤市场
|- 旅游出行
>> 学术交流
|- 学业有成
|- 智力考场
|- 考研专版
|- 外语乐园
|- 考试·毕业设计
|- 电子设计·数学建模
|- 学生工作·社团交流·RX
|- 电脑技术
|- 电脑F.A.Q.
|- 软件交流
|- 硬件·数码
|- 程序员之家
|- Linux专区
|- 舞文弄墨
|- 历史&文化
|- 军临天下
|- 军事精华区
|- 财经频道
>> 游戏新干线[电子竞技俱乐部]
|- Blizz@rd游戏特区
|- WarCraft III
|- 魔兽区档案库
|- 魔兽争霸3博彩专区
|- StarCraft(new)
|- 暗黑专区
|- 休闲游戏区
|- PC GAME综合讨论区
|- 实况足球专区
|- Counter-Strike专区
|- TV GAME& 模拟器
|- 网络游戏
>> 资源交流
|- 恋影部落
|- 连续剧天地
|- 综艺开心档
|- 书香小筑
|- 小说发布
|- 资源交流
|- 综艺、体育、游戏资源发布
|- 音乐资源发布区
|- 电影电视剧发布区
|- 字幕园地
我来我网·5come5 Forum
»
程序员之家
Total 0.013917(s) query 6, Time now is:07-15 09:17, Gzip enabled
Powered by PHPWind v5.3, Localized by
5come5 Tech Team
,
黔ICP备16009856号