Search found 2 matches

by tamjidahmed
Sat Oct 15, 2011 7:06 pm
Forum: Volume 112 (11200-11299)
Topic: 11207 - The easiest way
Replies: 27
Views: 13874

Re: 11207 - The Easiest Way

// HI I am tring this problem for 4 daye..... // can anybody help me...:( #include<stdio.h> int main() { long long pop,i,ans=0; double length,wide,temp,reqlength,maxwide; while(scanf("%lld",&pop)==1) { if(pop==0) break; ans=0; maxwide=0; reqlength=0; for(i=1; i<=pop; i++) { scanf("%lf %lf",&wide,&le...
by tamjidahmed
Tue Aug 09, 2011 8:45 pm
Forum: Volume 103 (10300-10399)
Topic: 10300 - Ecological Premium
Replies: 22
Views: 8625

10300 - Ecological Premium

I can't find why I am getting wrong answer...plz help me :( (I used C-language) #include<stdio.h> int main() { unsigned long int a,b,c,i,j,testcase,ans=0,farmer,sum; scanf("%lu",&testcase); for (i=0;i<testcase;i++) { scanf("%lu",&farmer); for (j=0;j<farmer;j++) { scanf("%lu",&a); scanf("%lu",&b); sc...

Go to advanced search