Search found 16 matches

by Rony
Mon May 02, 2005 9:35 am
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 23042

10130

Hi, I am getting RTE(SIG.) . Can any one tell me ,what's wrong ? Following is my code. #include<stdio.h> #define max 500 #define MAX 1005 #define MYMAX(x,y) ((x>y?x:y)); int main(){ int C[max][max],i,N,MW,w,Wi[MAX],Vi[MAX]; int tcase,T_cost=0,persons; //freopen("input.txt","r",stdin); scanf("%d",&tc...
by Rony
Tue Mar 29, 2005 9:14 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 32298

Re: WA 488

Hi Raj Ariyan,
I got Ac just replacing ges() and ssanf() function by scanf() function ,nothing else .Not checking also last line \n.
Thanks.

Regards.
Rony
[Depressed]
by Rony
Mon Mar 28, 2005 2:35 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 32298

WA 488

Hi,
Can any one check my code? I am getting WA continuousely. I think there is something silly mistake.Following is my code.

Code is removed after getting AC. If any one need any help mail me.

Regards
Rony.
by Rony
Wed Mar 23, 2005 1:11 pm
Forum: Volume 108 (10800-10899)
Topic: 10827 - Maximum sum on a torus
Replies: 52
Views: 27829

Re: WA 10827

Rony wrote:Hi,
Can any one check my code ? What,s wrong ? I am getting WA. Following
is my code .
Code is Removed.
Thanks.

Regards
Rony
[Depressed]
by Rony
Sun Mar 13, 2005 10:11 am
Forum: Volume 108 (10800-10899)
Topic: 10827 - Maximum sum on a torus
Replies: 52
Views: 27829

Cho wrote:hey hey, there are three threads on this topic now.
There is no way for your O(n^2) solution to get AC.
Do you know about Maximum Contiguous Subarray Problem?
Hi,
Cho, I dont know about Maximum Contiguous Subarray Problem. Can you
help me?


Regards
Rony.

Thanks.
by Rony
Thu Mar 10, 2005 3:03 pm
Forum: Volume 108 (10800-10899)
Topic: 10827 - Maximum sum on a torus
Replies: 52
Views: 27829

10827 - Maximum sum on a torus

Hi,
Can any one check my code ? What,s wrong ? I am getting WA. Following
is my code .
Code is removed.
[Thanks.

Regards
Rony
[Depressed]
by Rony
Sun Feb 27, 2005 8:34 am
Forum: Volume 102 (10200-10299)
Topic: 10203 - Snow Clearing
Replies: 21
Views: 4656

Hi,
Turjo . Thanks . At last i got Acc after 10 WA's . If any one need any help plz mail me.

Regards
Rony(rony15bg@yahoo.com).
[[*Depressed*]]
[/quote]
by Rony
Sat Feb 26, 2005 8:54 am
Forum: Volume 102 (10200-10299)
Topic: 10203 - Snow Clearing
Replies: 21
Views: 4656

[quote="
by Rony
Fri Feb 25, 2005 5:48 am
Forum: Volume 102 (10200-10299)
Topic: 10203 - Snow Clearing
Replies: 21
Views: 4656

10203

Hi, Can any one help me,what's wrong with the code that's why i am getting wrong answer ? Or, can any one give me some test cases? Here is my code. #include<stdio.h> #include<stdlib.h> #include<math.h> double x,y,a,b,c,d,r,sum,v,sec,min,hour,integer; int main(){ int tcase,n; v=50.0/9.0; //freopen("i...
by Rony
Mon Nov 08, 2004 11:19 am
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30617

WA Please

Hi Wanderley, Can you please find out my problem. Here is my code #include<stdio.h> #include<stdlib.h> #include<math.h> int array[105],query; int n,i,m,sum,j,d; long long t_num; int compare(const void *a,const void *b); int main(){ int tcase; tcase=1; while(1){ scanf("%d",&n); if(!n) break; for(i=0...
by Rony
Sat Nov 06, 2004 4:45 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 22473

333 ISBN numbers WA

Hi, Can any one help me ? Why I am getting wrong answer ? Can any one give me some inputs/outputs or check my code where is the problem. Code C: #include<stdio.h> #include<string.h> #include<ctype.h> char str[100]; int i,counter,len,s1,s2; void str_rev(char *s){ int i,j; char temp; len = strlen(str...
by Rony
Fri Nov 05, 2004 7:38 am
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30617

Hi Wanderley, Can you please find out my problem. Here is my code #include<stdio.h> #include<stdlib.h> #include<math.h> int array[105],query; int n,i,m,sum,j,d; long long t_num; int compare(const void *a,const void *b); int main(){ int tcase; tcase=1; while(1){ scanf("%d",&n); if(!n) break; for(i=0;...
by Rony
Tue Sep 28, 2004 6:28 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 23540

Hi,
Thanks a lot . I have got Acc with PE at last. You have done a lot for
me. Your algorithm is so easy which is very good . Carry on.
Who are u? Post some things about you and your UVA ID thats why
I can see your score. Again many many Thanks.

Regards
Rony 8)
by Rony
Sun Sep 26, 2004 10:48 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 23540

your question is not clear! if you ask about middle of an array then : int lenthofarray; //some how you know it float halfofarray; int halfofarrayint; halfofarray=lenthofarray/2.0; halfofarrayint= halfofarray; //one kind of type casting if(halfofarrayint == halfofarray) // then two middle print -- ...
by Rony
Sat Sep 25, 2004 9:17 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 23540

p-406

Hi, Anyone can give me algorithm to find the middle and print the list . Pleaseeeeeeeeeee Hi, A1, I think you have'nt understand my question . For prime cuts problem I want to know the algo to find out the mid point and print the result because i have tried so many times but failed . There is a cond...

Go to advanced search