大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?varn,i:integer;ch,monitor,west:char;na,k:string;max,total,s,paper,score1,score2:integer;beginread(n);for i:=1 to n dobegins:=0;na:='';read(ch);while(ch' ') dobeginna:=na+ch;read(ch);en

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 05:49:45
大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?varn,i:integer;ch,monitor,west:char;na,k:string;max,total,s,paper,score1,score2:integer;beginread(n);for i:=1 to n dobegins:=0;na:='';read(ch);while(ch' ') dobeginna:=na+ch;read(ch);en

大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?varn,i:integer;ch,monitor,west:char;na,k:string;max,total,s,paper,score1,score2:integer;beginread(n);for i:=1 to n dobegins:=0;na:='';read(ch);while(ch' ') dobeginna:=na+ch;read(ch);en
大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?
var
n,i:integer;
ch,monitor,west:char;
na,k:string;
max,total,s,paper,score1,score2:integer;
begin
read(n);
for i:=1 to n do
begin
s:=0;
na:='';
read(ch);
while(ch' ') do
begin
na:=na+ch;
read(ch);
end;
read(score1);
read(score2);
read(ch);
read(monitor);
read(ch);
read(west);
readln(paper);
if (score1>80)and(paper>=1)then s:=s+8000;
if (score1>85)and(score2>80)then s:=s+4000;
if (score1>90)then s:=s+2000;
if (score1>85)and(west='Y')then s:=s+1000;
if (score2>80)and(monitor='Y')then s:=s+850;
if s>max then begin
max:=s;
k:=na;
end;
total:=total+s;
end;
writeln(k);
writeln(max);
writeln(total);
end.

大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?varn,i:integer;ch,monitor,west:char;na,k:string;max,total,s,paper,score1,score2:integer;beginread(n);for i:=1 to n dobegins:=0;na:='';read(ch);while(ch' ') dobeginna:=na+ch;read(ch);en
应该用长整型将integer换成longint;

大牛们,NOIP2005第一题,我知道很简单,可究竟哪错了?varn,i:integer;ch,monitor,west:char;na,k:string;max,total,s,paper,score1,score2:integer;beginread(n);for i:=1 to n dobegins:=0;na:='';read(ch);while(ch' ') dobeginna:=na+ch;read(ch);en 一道pascal题目  又是一年秋季时,陶陶家的苹果树结了n个果子.陶陶又跑去摘苹果,这次她有一个a公分的椅子.当他手够不着时,他会站到椅子上再试试.  这次与NOIp2005普及组第一题不同的是 第一题我知道正确答案是a,但我不知道d为什么错了. 选择第一题,三角函数的,我要的是过程,这种不会做了,我知道其实很简单. />我要问的是第一小题,我想问的是怎么由可知道 第一题我不知道自己做的对不对所以求思路解答 第一 我知道是小于 其他我不明白 看照片就知道问题,只能发一张知道答案我给你后面的文章.第一题 循环  全国青少年信息学奥林匹克分区联赛 (NOIp) 竞赛原题NOIP2005普及组第四题乐乐是一个聪明而又勤奋好学的孩子.他总喜欢探求事物的规律.一天,他突然对数的正整数次幂产生了兴趣. 这题有人知道吗?第一题 第七题,第一小题不知道怎么写 1.在括号里填上意思相近的字()不()不2.紧张地()照顾()第一题...我知道很难...... 一道数学数列求和题第一问我知道 很简单 我想问的是第二问 别直接说用什么方法好吗 方法我也知道的 就是过程想不出来 第一小问我不知道怎么求的 求英文单词“第二”,我只知道第一是FIRST. 我报了校运会 我知道自己能拿第一 可我很紧张如题 其他人的成绩一般 我去年就拿过一次第一 今年也可以 可我一想到就很紧张 为什么?我要怎么办? 英语翻译qswbzdwszml,wyyydxizbgmygsn,ywzmyqdwdxzqwbxzycdshnl.我知道第一句是“其实我不知道我是怎么了” 第一题我不懂做.