GFSSOC '17 J2 - Admission Average

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Authors:
Problem type

Ace is applying to University of Waterloo Software Engineering and he wants to know whether his top 6 average and Admission Information Form. Given his top six integer grades, (1 \le grade \le 100) and an integer AIF score (0 \le score \le 5), determine if he can get in. The average is the average of the top 6 grades plus the AIF score. Waterloo sets the minimum integer admission requirement (0 \le requirement \le 105). Output yes if Ace can make it. Otherwise, output no.

Input Specifications

The first six lines of input are his six integer marks.

The next line is the integer AIF score.

The final line is the integer admission requirement.

Output Specifications

yes if Ace can get into Waterloo Software Engineering, no if he cannot

Sample Input 1

95
96
92
88
98
94
5
96

Sample Output 1

yes

Sample Input 2

75
79
69
72
88
90
3
82

Sample Output 2

no

Comments


  • 1
    TypicalToxic  commented on Jan. 23, 2017, 11:08 a.m. edited

    gg racket :( mle on racket is such a painnn


    • 1
      Kirito  commented on Jan. 23, 2017, 3:40 p.m. edited

      EDIT: Limit raised to 64 MB for all languages


  • 6
    eric574  commented on Jan. 21, 2017, 12:26 p.m.

    The first sentence has an incomplete train of thought.