| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
pow会有误差的In Reply To:有一个编译错误的问题,请教!! Posted by:sza at 2006-08-27 19:11:19
> 我的代码中有一段:
> for(i=1;i<=(int)pow(10,length)-1;i++){
> sta[cal(i)]++;
> }
> 用C++可以过,G++就是WA,
> 改成
> for(i=1;i<=getPOW(10,length)-1;i++){
> sta[cal(i)]++;
> }
> getPOW(10,length)是自己写的一个计算乘方的代码,就都过了,不知道为什么.
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator