UVA 10300 - Ecological Premium

Problem PDF

Solution:

#include
int main()
{
long long a,t,n,b,c,i,j,s;
while(scanf("%lld",&t)==1)
    {
    for(i=0;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10300/10300.cpp