| ||||||||||
| 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 | |||||||||
为什么这么简单的都没 accepted#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator