@@ -0,0 +1,932 @@
+// http://codeforces.com/problemset/problem/448/A%0A%0Aimport java.util.Scanner;%0A%0Apublic class Solution %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Scanner read = new Scanner(System.in);%0A%0A%09%09// a1, a2, a3%0A%09%09int cupCount = 0;%0A%09%09for (int i = 0; i %3C 3; ++i) %7B%0A%09%09%09cupCount += read.nextInt();%0A%09%09%7D%0A%09%09int numberOfShelvesNeededForCups = cupCount / 5;%0A%09%09if (cupCount %25 5 != 0) %7B %0A%09%09%09numberOfShelvesNeededForCups++;%0A%09%09%7D%0A%09%09%0A%09%09// b1, b2, b3%0A%09%09int medalCount = 0;%0A%09%09for (int i = 0; i %3C 3; ++i) %7B%0A%09%09%09medalCount += read.nextInt();%0A%09%09%7D%0A%09%09int numberOfShelvesNeededForMedals = medalCount / 10;%0A%09%09if (medalCount %25 10 != 0) %7B %0A%09%09%09numberOfShelvesNeededForMedals++;%0A%09%09%7D%0A%09%09%0A%09%09// number of shelves available%0A%09%09int n = read.nextInt();%0A%09%09%0A%09%09// print end result%0A%09%09if (n %3E= (numberOfShelvesNeededForCups + numberOfShelvesNeededForMedals)) %7B%0A%09%09%09System.out.println(%22YES%22);%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09System.out.println(%22NO%22);%0A%09%09%7D%0A%09%09%0A%09%09// Close scanner%0A%09%09read.close();%0A%09%7D%0A%09%0A%7D%0A

Create Rewards.java