/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/filling-jars * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include using namespace std; int main() { // You don't have to know how many candies are there exactly in a jar. Instead, we will only keep track the total number. int n,m; long long total=0; scanf("%d %d",&n,&m); for (int i=0;i