想了解少兒編程,機(jī)器人編程,C++,Python,信息學(xué)奧賽等詳細(xì)了解南京江寧淳化少兒信息學(xué)奧賽編程
1.請教一道信息學(xué)奧賽的pascal語言編程題
var name:array[1..100]of string; m:array[1..100]of longint; i,k,l,n,s1,s2:integer; max,sum:longint; ch1,ch2,ch:char; begin assign(input,'***.in'); reset(input); readln(n); for i:=1 to n do begin name[i]:='';m[i]:=0; repeat read(ch); if ch<>' ' then name[i]:=name[i]+ch; until ch=' '; read(s1,s2); read(ch1,ch1,ch2,ch2); readln(l); if (s1>80)and(l>=1) then m[i]:=m[i]+8000; if (s1>85)and(s2>80) then m[i]:=m[i]+4000; if s1>90 then m[i]:=m[i]+2000; if (s1>85)and(ch2='Y') then m[i]:=m[i]+1000; if (s2>80)and(ch1='Y') then m[i]:=m[i]+850; end; close(input); sum:=0;max:=0; for i:=1 to n do begin sum:=sum+m[i]; if max 想了解線上,線下課程,費(fèi)用,地址的詳細(xì)了解請教一道信息學(xué)奧賽的pascal語言編程題??