vj1096 津津的储蓄计&a

Vj1096 津津的储蓄计&a

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

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //Ä£Äâ / const maxn=12; money=300; var g,f:integer; procedure main; var i,x:integer; begin for i:=1 to maxn do begin readln(x); inc(g,money-x); if g<0 then begin writeln(-i); exit; end;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2011 for the course CS 001 taught by Professor 001 during the Spring '11 term at Shandong University.

Ask a homework question - tutors are online