Created
March 3, 2012 08:22
-
-
Save hhc0null/1964977 to your computer and use it in GitHub Desktop.
CTPC-A-Average.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
int main() { | |
int a[4] = {0}; | |
int sum = 0, max = 0; | |
for(int i = 0; i < 4; i++) { | |
scanf("%d", &a[i]); | |
max = (max < a[i])? a[i]: max; | |
sum += a[i]; | |
} | |
if(((sum + max) / 5) >= 60) | |
printf("Yes\n"); | |
else | |
printf("No\n"); | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment