#A0576. 初赛估分

初赛估分

Title Description

The preliminary round of CSP-J/S is about to begin, and 33DAI has conducted simulation tests.

33DAI solved xx points worth of questions in the simulation competition, and also guessed yy points worth of true/false questions and zz points worth of multiple-choice questions.

Assuming that all the scores obtained are correct, all the true/false questions guessed the answers exactly get half scores, and all the multiple choice questions guessed the answers exactly get quarterscores. The final score line is aa (those with a score greater than or equal to aa can advance), please ask if 33DAI can advance.

Input format

Four integers: x,y,z,ax, y, z, a .

Output format

If you can advance, output 'Yes', otherwise output' No '.

50 10 40 60
Yes

The final score for 33DAI is $50+\frac {10} {2}+\frac {40} {4}=$65.

0 20 80 30
Yes
0 20 80 31
No
90 5 5 93
Yes

The final score for 33DAI is 90+2.5+1.25=93.7590+2.5+1.25=93.75

Data scale and agreement

For data of 100%100 \%, ensure that x+y+z=100x+y+z=100 , 0x,y,z,a1000 \le x, y, z, a \le 100 .

  • Subtask 1 (30 points): Ensure a=25a=25 .
  • Subtask 2 (30 points): Ensure that yy is a multiple of 22 and zz is a multiple of 44 .
  • Subtask 3 (40 points): No special restrictions.

统计

相关

在下列比赛中:

基础小测验