#include <stdio.h>
int main(){
int a[5], t, s, st, i;
while(scanf("%d", &a[0]) == 1){
st = a[0] * 10 + 5;
s = 0;
for(i = 1; i != 5; ++i){
scanf("%d", &a[i]);
st += a[i] * 10 + 5;
}
for(i = 0; i != 5; ++i){
scanf("%d", &t);
s += t;;
}
if(s <= st) puts("No !");
else printf("Yes %d\n", s - st);
}
return 0;
}
转载于:https://www.cnblogs.com/changmu/p/3639773.html