Search found 2 matches

by sumaiyyah
Sat Sep 29, 2012 3:02 pm
Forum: Volume 121 (12100-12199)
Topic: 12157 - Tariff Plan
Replies: 12
Views: 6224

Re: 12157

brianfry713 wrote:Doesn't match the sample I/O.
i solved it. :D
by sumaiyyah
Fri Sep 28, 2012 4:36 pm
Forum: Volume 121 (12100-12199)
Topic: 12157 - Tariff Plan
Replies: 12
Views: 6224

12157

i cant find my mistake. plz help. #include<stdio.h> #include<math.h> int main() { long int t,caze,mile,juice,sum2,sum1,n,i; double num; scanf("%ld",&caze); for(t=1;t<=caze;t++) { scanf("%ld",&n); sum1=0; sum2=0; for(i=0;i<n;i++) { scanf("%lf",&num); mile=ceil(num/30); mile*=10; sum1+=mile; juice=cei...

Go to advanced search