UVA 12157 - Tariff Plan UVA • Sep 1, 2020 Problem PDFSolution:#include int main() { int t, n,m,j,a,i; scanf("%d",&t); for(i=1;i<=t;i++) { scanf("%d",&n); m=j=0; while(n--) { scanf("%d",&a); m+=(a+30)/30; j+=(a+60)/60; } m*=10; j*=15; if(mhttps://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/12157/12157.cpp Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read