在机上测试通过为何0分?

#include

#include

using namespace std;

char mz[20],zh[20],xb,gb,q;

int fs,xfs,lw,jj,zjj,zdjj;

int ysj()

{if ((fs>80)&&(lw>=1)) return 8000;else return 0;}

int wsj()

{if ((fs>85)&&(xfs>80)) return 4000;else return 0;}

int cjj()

{if (fs>90) return 2000;else return 0;}

int xbj()

{if ((fs>85)&&(xb==89)) return 1000;else return 0;}

int bjj()

{if ((fs>80)&&(gb==89)) return 850;else return 0;}

main()

{

int a,i;zjj=0;zdjj=0;

cin>>a;

for (i=1;i>mz;

cin>>fs>>xfs>>gb>>xb>>lw;

jj=ysj()+wsj()+cjj()+xbj()+bjj();zjj=zjj+jj;

if (jj>zdjj)

{for(q=0;q

1 条评论

  • @ 2009-04-06 11:23:33

    同意.. 不过现在好象可以过了. 刚过了

  • 1

信息

ID
1001
难度
5
分类
模拟 点击显示
标签
递交数
39075
已通过
12714
通过率
33%
被复制
121
上传者