#include <stdio.h>#include<math.h>int main(){ int C,D,A,P; scanf("%d %d %d %d",&C,&D,&A,&P); if((70*C+120*D+30*A)<=P) { printf("Yes, he can buy all things.\n"); } else { printf("No, he can not buy all things.\n"); } return 0;}
No comments