vj1398 奖学金


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

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //¶à¹Ø¼ü×ÖÅÅÐò Ö»ÅÅÇ° 5 ¸ö / const maxn=300; type node=record c,m,e,n:integer; end; var n:integer; a:array[0. .maxn] of node; function check(x,y:integer):boolean; begin if a[x].c+a[x].m+a[x].e>a[y].c+a[y].m+a[y].e then exit(false); if a[x].c+a[x].m+a[x].e<a[y].c+a[y].m+a[y].e then exit(true); if a[x].c>a[y].c then exit(false); if a[x].c<a[y].c then exit(true); if a[x].n>a[y].n then exit(true);
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