vj1102 陶陶摘苹果

Vj1102 陶陶摘苹果

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: const maxn=10; var ans,h:integer; a:array[0..maxn] of integer; procedure main; var i:integer; begin for i:=1 to maxn do read(a[i]); read(h); for i:=1 to maxn do if h+30>=a[i] then inc(ans); writeln(ans); end; begin main; end. ...
View Full Document

Ask a homework question - tutors are online