Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么这么简单的都没 accepted

Posted by qifeifei at 2009-10-12 20:41:17
#include "iostream"
using namespace std;
main()
{float a[12],p=0.0;
int i,m;
for(i=0;i<12;i++)
{cin>>a[i];p=p+a[i];}
m=(int)(p/12*100);
p=m/100.0;
 cout<<'$'; cout<<p;


在自己的电脑上可以运行准确的,交上去却错了,为什么啊,帮帮忙,谢谢。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator